Skip to Content
avatar image
Former Member

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

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Apr 14, 2016 at 12:51 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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.