Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prevent (acrobat) Print Options dialogue when OLE printing ???

Status
Not open for further replies.

bobgee

Programmer
Oct 16, 2000
1
GB
I am submitting an OLE print job from a Delphi application to automatically print .PDF acrobat file(s). The problem is this is supposed to be a completely automated process such as can be achieved using Ms Word, Write etc however .... when the OLE function is excuted, acrobat Reader always pops up a print options dialogue which means a user needs to be around to hit the OK button before the print job starts !!
The application uses a standard ShellExecute function (which works Ok for word (.DOC) files etc) with the call ....

ShellExecute (windowsHandle, 'print', 'FilePath + PDFFileName, '', '', 0);

Does anyone know of a way to prevent this print options dialogue from being presented by program OR command line ??? I Would be grateful for any ideas. [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top