Previous | Next | (P-PDF) Acrobat 6.0
Topic: Printing to a selected printer in VB6
Conf: (P-PDF) Acrobat 6.0, Msg: 127236
From: gazman2_be
Date: 2/6/2005 03:24 AM
Hello,
I use the following (VB6) code to print pdf files. It works OK, but print to the default printer of my computer.
Is there some way to select another printer attached to my computer ?
Thanks for your help
Gazman2_be
Dim gApp As Acrobat.CAcroApp
Dim gPDDoc As Acrobat.CAcroPDDoc
Dim gAVDoc As Acrobat.CAcroAVDoc
Set gApp = CreateObject("AcroExch.App")
Set gPDDoc = CreateObject("AcroExch.PDDoc")
Set gAVDoc = CreateObject("AcroExch.AVDoc")
gApp.Show
ret = gPDDoc.Open("c:\test.pdf")
Set gAVDoc = gPDDoc.OpenAVDoc("temp_titre")
nbr_pages = gPDDoc.GetNumPages
ret = gAVDoc.PrintPages(0, nbr_pages - 1, 2, True, True)
gPDDoc.Close
gApp.Exit