Jump to content

Printing a PDF file without dialog prompt


Recommended Posts

Hi Guys,

Can someone please tell me what am I doing wrong? The file opens but doesn't print.

This one is for Adobe Acrobat 5.0 (not reader).

Thanks, CS

Func Printme()
;----------declaring variables-----------------------;


;$dateinputread=GUICtrlRead($Dateinput)
$custcodeinputread="Customer name" ;guictrlread($Custcodeinput)
;$comboread= GUICtrlRead($Combo)

;----------Printing the file-----------------------;


$ourfile="c:" & "\" & "Statements\" & "My file" & $custcodeinputread & ".pdf"


Run("C:\Program Files\Adobe\Acrobat 5.0\Acrobat\Acrobat.exe" & " /t" & $ourfile)




EndFunc


call("printme")
Link to comment
Share on other sites

Hi Guys,

Can someone please tell me what am I doing wrong? The file opens but doesn't print.

This one is for Adobe Acrobat 5.0 (not reader).

Thanks, CS

Func Printme()
;----------declaring variables-----------------------;


;$dateinputread=GUICtrlRead($Dateinput)
$custcodeinputread="Customer name" ;guictrlread($Custcodeinput)
;$comboread= GUICtrlRead($Combo)

;----------Printing the file-----------------------;


$ourfile="c:" & "\" & "Statements\" & "My file" & $custcodeinputread & ".pdf"


Run("C:\Program Files\Adobe\Acrobat 5.0\Acrobat\Acrobat.exe" & " /t" & $ourfile)




EndFunc


call("printme")

Hi,

try this:

Instead of

Run("C:\Program Files\Adobe\Acrobat 5.0\Acrobat\Acrobat.exe" & " /t" & $ourfile)

Adding blank behind /t

Run("C:\Program Files\Adobe\Acrobat 5.0\Acrobat\Acrobat.exe" & "/t " & $ourfile)

or

Shellexecute ("C:\Program Files\Adobe\Acrobat 5.0\Acrobat\Acrobat.exe", "/t " & $ourfile)

or

Shellexecute ("C:\Program Files\Adobe\Acrobat 5.0\Acrobat\Acrobat.exe", "/t " & $ourfile, "", "print")

;-))

Stefan

Edited by 99ojo
Link to comment
Share on other sites

Hi,

try this:

Instead of

Run("C:\Program Files\Adobe\Acrobat 5.0\Acrobat\Acrobat.exe" & " /t" & $ourfile)

Adding blank behind /t

Run("C:\Program Files\Adobe\Acrobat 5.0\Acrobat\Acrobat.exe" & "/t " & $ourfile)

or

Shellexecute ("C:\Program Files\Adobe\Acrobat 5.0\Acrobat\Acrobat.exe", "/t " & $ourfile)

or

Shellexecute ("C:\Program Files\Adobe\Acrobat 5.0\Acrobat\Acrobat.exe", "/t " & $ourfile, "", "print")

;-))

Stefan

Thanks, mate.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...