Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print to PCL from Crystal - set filename from code

Status
Not open for further replies.

jackied

Programmer
Mar 15, 2001
18
GB
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top