Hi
Up to now, In Net Express, and Visual Cobol indeed, we have been able to print directly to Adobe PDF by setting the default printer to Adobe PDF and using the PC_PRINTER... routines. We would typically call PC_PRINTER_OPEN with flags set to 4 or 8 to define orientation. A dialog box "Save PDF File As..." is displayed and we press the Save button and the PDF file is created and Adobe is opened and that is all fine.
Now, in Visual Cobol we are looking at using the System.Drawing.Printing.PrintDocument class and the Print() method to make use of better pormatting. This works fine when the default printer is an actual physical printer. With the default printer set to Adobe PDF the process just hangs when the Print() method is called, a message box appears saying it is printing page 1 of the document but the PrintPage event handler is never executed. Changing PrinterSettings::PrinterName in code has the same results.
It what I am trying not possible or am I missing something? Any ideas?
Thank you
Brendan



