The file is printed using an Adobe Actobat control dimmed in code. Here is
the snippet.
CType(avDoc, Acrobat.CAcroAV Doc).Open(strFi leName, "")
pdDoc = CType(avDoc, Acrobat.CAcroAV Doc).GetPDDoc
nbrPages = CType(pdDoc, Acrobat.CAcroPD Doc).GetNumPage s()
CType(avDoc, Acrobat.CAcroAV Doc).PrintPages (0, nbrPages - 1, 1, 1, 1)
CType(avDoc, Acrobat.CAcroAV Doc).Close(0)
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:Og******** ******@TK2MSFTN GP10.phx.gbl...
* "Rick R" <No****@whocare s.com> scripsit: We need to change the paper size for the default printer before printing
a PDF file from within a VB.Net application.
How do you print that file?
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>