The file is printed using an Adobe Actobat control dimmed in code. Here is
the snippet.
CType(avDoc, Acrobat.CAcroAVDoc).Open(strFileName, "")
pdDoc = CType(avDoc, Acrobat.CAcroAVDoc).GetPDDoc
nbrPages = CType(pdDoc, Acrobat.CAcroPDDoc).GetNumPages()
CType(avDoc, Acrobat.CAcroAVDoc).PrintPages(0, nbrPages - 1, 1, 1, 1)
CType(avDoc, Acrobat.CAcroAVDoc).Close(0)
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:Og**************@TK2MSFTNGP10.phx.gbl...
* "Rick R" <No****@whocares.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/>