1. shoaib siddiqui
  2. PowerBuilder
  3. Thursday, 7 November 2019 19:15 PM UTC

hello all,

New SaveAs PDF is really great new feature. But we have printing functionality other than
just data windows reports,  such as printing Xcel sheet from PB, we use DocukDesk and default printer programmatically and set filename and path in DocuDesk option file and able to print anything silently
without user interaction. Unfortunately, DocuDesk is going away too.

Windows 10 has built-in "print to PDF" too, but it cannot be automated or controlled programmatically from PowerBuilder, I saw some code for PrintertObject in C# but I don't know how to implement in PowerScript.

Does Appeon provide PDF generator or separate installer so it can be set as default printer?





Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 7 November 2019 21:10 PM UTC
  2. PowerBuilder
  3. # 1

Hi Shoaib;

   Unfortunately, the new "Native PDF" feature does not have a "direct to printer" option. That would be a "kool" enhancement though. What I do in my PB Apps is to create the PDF file using the new "Native" PDF feature and then launch the App User's web browser with that PDF file using PB's iNET object. From there, the App User can print the document.

   Taking the web browser option further, you could direct an OLE session with the Internet Explorer web browser to open and print the PDF file using OLE commands. In PB2019 R2, you will even now have a native (built-in) Web Browser Control where you could load the PDF into and command it to print.

   The last option that I have used is a 3rd party product like "QuickPDF" (as one example). You can use this in your PB Apps like an ActiveX and to not only produce a PDF but print it as well under App control.

FYI:  https://www.debenu.com/products/development/debenu-pdf-library/


Regards .... Chris

  1. shoaib siddiqui
  2. Friday, 8 November 2019 15:12 PM UTC
Thanks Chris,

My issue is to print other objects than just Datawindows, i.e. Xcel sheet from OLE control, for example:

I set the default printer to Acrobat or Docudesk as the default printer, set some flags in option files to suppress filename dialogue, then...


this saves my PDF file with a name automatically.

I guess I am looking for similar tool as Acrobat or Docudesk, that can be set as PDF default Printer with ability to suppress

"Save File Name" Dialogue box.

  1. Helpful
There are no comments made yet.
  • Page :
  • 1

There are no replies made for this question yet.
However, you are not allowed to reply to this question.