Sign in to follow this  
Followers 0
celestialspring

Printing a PDF file without dialog prompt

3 posts in this topic

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")

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Share this post


Link to post
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.

Share this post


Link to post
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
Sign in to follow this  
Followers 0