Trying to stop output going to default printer

This Forum is for the use of Clarion For Windows - Software Developers requiring help and assistance for Tracker Software's PDF-XChange Printer Drivers SDK (only) - Please use the PDF-Tools SDK Forum for Library DLL assistance.

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Chris - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software, Tracker - Clarion Support, John - Tracker Supp, Support Staff, moderators

Post Reply
griffo
User
Posts: 18
Joined: Wed Oct 05, 2005 3:39 pm
Location: DownUnder

Trying to stop output going to default printer

Post by griffo » Mon Jun 05, 2006 3:09 am

I am trying to silently print a MS-Word RTF doc to a PDF file using
the 3.5 Printer Driver API for Clarion.

This did work earlier today in the proc I am developing but stopped
working silently and now insists on popping up a "Save As" window
requiring folder selection and click of [OK]

It is sneding the output to the Default printer when I invoke

PDFPrinter.Run(szRTFDoc,SW_HIDE)

If I set my default printer to my HP Laserjet, output goes direct to printer.
If I set my default printer to my installed "PDF Exchange printer
3.0", then I get the popup.

I copied the provided code from the HTMLtoPDF silent print example.
I set these values to try force silent print...

SaveInfo.FullFileName = szPDFDoc ! Full Drive\Path\Filename.pdf
SaveInfo.ShowSaveDialog = 0 ! No saveDialogue please
SaveInfo.App_Run = 0 ! I want SILENT Print
SaveInfo.App_Params = '' !0 ! I want SILENT Print

Does having the separate "PDF Exchange Printer 3.0" installed conflict
with trying to print to a PDF with the Drivers API?

Should I be setting a PrinterName somewhere to force the .Run output
to go via the API drivers?

John Griffiths

griffo
User
Posts: 18
Joined: Wed Oct 05, 2005 3:39 pm
Location: DownUnder

Re: Trying to stop output going to default printer

Post by griffo » Mon Jun 05, 2006 4:13 am

griffo wrote:I am trying to silently print a MS-Word RTF doc to a PDF file using
the 3.5 Printer Driver API for Clarion.

This did work earlier today in the proc I am developing but stopped
working silently and now insists on popping up a "Save As" window
requiring folder selection and click of [OK]
Fixed! :) Seems I was closing the active Window too quickly. I removed a POST(Event:CloseWindow) from my subroutine and controlled the window close within a TIMER.

John Griffiths

John - Tracker Supp
Site Admin
Posts: 8202
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Mon Jun 05, 2006 6:31 am

Pleased you got there John,

Please do come back if you have any problems.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

Post Reply

Return to “PDF-XChange Drivers (only) API SDK - For Clarion For Windows Developers only Please”