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

No printing job in the spooler when printing via OLE Acrobat Exchange

Status
Not open for further replies.

hlpha

Programmer
Jan 8, 2004
1
CH
Hi,
sometimes, I have this kind of problem. When I print pdf document via the OLE AcroExch.AVDoc, the function returns a success code but there is no job in the spooler.

These are the steps in my C++ prog :
m_pAcroAVDoc->CreateDispatch("AcroExch.AVDoc",&objOleErr)
...
m_pAcroAVDoc->Open(documentName, NULL);
...
m_pAcroAVDoc->PrintPagesSilent(0, ...)

We use Acrobat 6.
When we print the document on a specified printer, we have to set it as the default printer and we set also the default paper bin and then, we print.

After printing, we restore the old settings for the printer.

Do you have any idea about this problem ?
Thanks a lot for your help.
 
Did you get an answer to your question? I'm looking for how to print a PDF from VFP silently.

Thanks.
 
Would the Acrobat 6.0 "printParams" JavaScript object be of any help?



Thomas D. Greer
Providing PostScript & PDF
Training, Development & Consulting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top