Hello.
I have posted the same probelm in the VB Win32(API) forum -
thread711-918192 - and had no joy. Perhaps a crystal approach is more appropriate.
I am trying to print to a PRN file from Crystal.
I have set up a PCL printer (HP Laserjet 5 PCL) with FILE: as the port.
I have selected this printer in my Crystal template.
When I print it, a "Print to File" dialog box appears.
I am trying to programmatically add the OuputFile name and click OK.
I found some code on FreeVBCode.com .( to intercept this dialog box, populate it and click OK, but I have not been able to get it to work. Details of this problem can be found on thread711-918192.
Does anybody have any other suggestion of how to print to a PCL file programmatically from a Crystal Template.
Is there another way apart from intercepting the dialog box?
Is there a way of setting the FILE port with a file name in windows?
Thanks
Jackie
I have posted the same probelm in the VB Win32(API) forum -
thread711-918192 - and had no joy. Perhaps a crystal approach is more appropriate.
I am trying to print to a PRN file from Crystal.
I have set up a PCL printer (HP Laserjet 5 PCL) with FILE: as the port.
I have selected this printer in my Crystal template.
When I print it, a "Print to File" dialog box appears.
I am trying to programmatically add the OuputFile name and click OK.
I found some code on FreeVBCode.com .( to intercept this dialog box, populate it and click OK, but I have not been able to get it to work. Details of this problem can be found on thread711-918192.
Does anybody have any other suggestion of how to print to a PCL file programmatically from a Crystal Template.
Is there another way apart from intercepting the dialog box?
Is there a way of setting the FILE port with a file name in windows?
Thanks
Jackie