How do I
create PDF-XChange Viewer SDK server applications that can perform unattended printing?

Question

How do I create PDF-XChange Viewer SDK server applications that can perform unattended printing?

Please note that a developer asked this question in the Tracker Software forum. The product that they were developing was a server-type application, which required the functionality to be unattended and without previews/dialog boxes. They wanted it to be available when there was nobody logged in on the machine (i.e. invoked by a Windows Service).

Answer:

The correct method depends on which SDK is being used:

If the Simple DLL SDK is being used then it is simply a matter of drawing the pages (page by page) onto the printer's DC directly. There are extensive instructions on the MSDN website about how to achieve this. It is available here.

If the ActiveX SDK is being used then it is necessary to specify the option 'AX_NoUI' flag to set printing outside of the user interface. Alternatively, JavaScript can be used.