I using Visual Basic to Print pages out of Adobe 5
Does anyone know which method I use to get to the Doc Object's Print property?
here is the syntax from javascript Help.
----------------------------------------
print
Parameters: [bUI], [nStart], [nEnd], [bSilent], [bShrinkToFit], [bPrintAsImage],
[bReverse], [bAnnotations]
Returns: Nothing
Use this function to print all or a specific number of pages of the document.
-----------------------------
here is a VB sample
-----------------------
Dim gApp As Acrobat.CAcroApp
Dim gPDDoc As Acrobat.CAcroPDDoc
Dim jso As Object
Dim PrintWhat As String
Set gApp = CreateObject("AcroExch.App"
Set gPDDoc = CreateObject("AcroExch.PDDoc"
If gPDDoc.Open("c:\adobe.pdf" Then
Set jso = gPDDoc.GetJSObject
jso.console.Show
jso.console.Clear
PrintWhat = "Printing manual " & Me![Manuals subform].Form!FilePath
jso.console.println (PrintWhat)
gApp.Show
End If
-----------------------
TIA
DougP, MCP
Visit my WEB site to see how Bar-codes can help you be more productive
Does anyone know which method I use to get to the Doc Object's Print property?
here is the syntax from javascript Help.
----------------------------------------
Parameters: [bUI], [nStart], [nEnd], [bSilent], [bShrinkToFit], [bPrintAsImage],
[bReverse], [bAnnotations]
Returns: Nothing
Use this function to print all or a specific number of pages of the document.
-----------------------------
here is a VB sample
-----------------------
Dim gApp As Acrobat.CAcroApp
Dim gPDDoc As Acrobat.CAcroPDDoc
Dim jso As Object
Dim PrintWhat As String
Set gApp = CreateObject("AcroExch.App"
Set gPDDoc = CreateObject("AcroExch.PDDoc"
If gPDDoc.Open("c:\adobe.pdf" Then
Set jso = gPDDoc.GetJSObject
jso.console.Show
jso.console.Clear
PrintWhat = "Printing manual " & Me![Manuals subform].Form!FilePath
jso.console.println (PrintWhat)
gApp.Show
End If
-----------------------
TIA
DougP, MCP
Visit my WEB site to see how Bar-codes can help you be more productive