cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any way to open the file which is saved in print manager through PowerBuilder code ?

Former Member
0 Kudos

I don't want to open the print manager to print the file.I want to open the file through code once it is printed.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi  Arunkumar;

  Are you trying to use a printer set to Print to File feature and then open up the resulting print file?

Regards ... Chris

Former Member
0 Kudos

Yes Chris..

Former Member
0 Kudos

    OK ... Yes, you can open it and read the contents via PB's FileReadEx() method. However, your probably not going to do much with it as it will be either be in  PostScript or in binary format.

    The only exception would be if you declare a Text Printer to File. However, your printing options would be limited to using the very basic print("") commands vs using the DataWindow.print() command.

   What might help here is telling us what end result that you wish to accomplish. From there, we might be able to give you more suggestions.