I need to print a acrobat document from VB, how would I go about doing that (for now I add component acrobat reader but it's a hassle, is there a way to do it through set object or something???)
This works but I am running a full edition of Acrobat (if you need help; select Acrobat as a reference through the VBE 'Tools>References' Menu and then you can browse its functions through F2(Object Browser))
Set pdDoc = CreateObject("AcroExch.AVDoc"
Call pdDoc.Open("MyFile.pdf", szTarget)
bOK = pdDoc.PrintPages(nFirstPage As Long, nLastPage As Long, nPSLevel As Long, bBinaryOk As Boolean, bShrinkToFit As Boolean) As Boolean
Sorry for the delay, I can't find any way to alter the Acrobat printer through VBa so you may just have to ensure that the Acrobat PrintSettings are correct before running your code.
Thanx for trying to help, when I set it for Acrobat, can I set default printer only for Acrobat and leave default printer of the cpu to what it was. Ex:
Printer uses as default: LaserJet 5
Can I configure Acrobat on that station to use 'Lightning FAX' (driver for fax server) but leave LaserJet 5 for all other applications?
...and I thought we'd got the hard bit out of the way...
The only way I can find to do this is to set your WIndows default printer to 'Lightning FAX' so that Acrobat prints to it and use VBA to alter the Excel printer programtically (Application.CurrentPrinter = "MyPrinter"
Actually that's how I have it setup... but the agents complain when they always have to look out for the printer???(They print from other stuff like print screens and such) I was only trying to make it easier on them.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.