Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using JavaScript in Abobe 5

Status
Not open for further replies.

DougP

MIS
Dec 13, 1999
5,985
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top