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]" <hirf-spam-me-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> * "Rick R" <(E-Mail Removed)> 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/>
|