Duplex printing

K

Karl Castellanos

I have code to print a document from a module. But I want
to have the document print 2 sided. I am not sure what
code to add. Please see my current code.

Sub Test()

Dim AVDoc As Acrobat.CAcroAVDoc
Dim PDDoc As Acrobat.CAcroPDDoc

Set AVDoc = CreateObject("AcroExch.AVDoc")
Dim iNumPages As Integer

AVDoc.Open "C:\Data\Adobe\010664202g2.pdf", ""
Set PDDoc = AVDoc.GetPDDoc
iNumPages = PDDoc.GetNumPages
AVDoc.PrintPages 0, iNumPages - 1, 1, True, False

Set AVDoc = Nothing
Set PDDoc = Nothing

End Sub
 
T

Terry

Karl,

If I want something printed duplex I specify the printer
(as a lot of printers won't duplex) and set the properties
to duplex long edge.

In design view for your report go to page setup "page" tab
and use a specific printer. The properties can be set here
and will be stored with your report.

HTH,

Terry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top