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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print external PDF files in PB

Status
Not open for further replies.

fum

Technical User
Dec 14, 2004
1
CH
Does anyone know, how to print external PDF files in Powerbuilder? (e.g. OLE Automation, ...?)
 
You can use the OLE control, Adobe Acrobat Control (pdf.ocx in your Adobe Acrobat Reader directory, C:\Program Files\Adobe\Acrobat 6.0\Reader\ActiveX)

And then use the print functions:
procedure printPages(none from, to: Integer) [dispid $00000015]; stdcall;
procedure printPagesFit(none from, to: Integer; none shrinkToFit: WordBool) [dispid $00000016]; stdcall;
procedure printAll [dispid $00000017]; stdcall;
procedure printAllFit(none shrinkToFit: WordBool) [dispid $00000018]; stdcall;

Greetings
J. Cura
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top