celestialspring Posted September 3, 2009 Share Posted September 3, 2009 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 More sharing options...
99ojo Posted September 3, 2009 Share Posted September 3, 2009 (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 September 3, 2009 by 99ojo Link to comment Share on other sites More sharing options...
celestialspring Posted September 3, 2009 Author Share Posted September 3, 2009 Hi,try this:Instead ofRun("C:\Program Files\Adobe\Acrobat 5.0\Acrobat\Acrobat.exe" & " /t" & $ourfile)Adding blank behind /tRun("C:\Program Files\Adobe\Acrobat 5.0\Acrobat\Acrobat.exe" & "/t " & $ourfile)orShellexecute ("C:\Program Files\Adobe\Acrobat 5.0\Acrobat\Acrobat.exe", "/t " & $ourfile)orShellexecute ("C:\Program Files\Adobe\Acrobat 5.0\Acrobat\Acrobat.exe", "/t " & $ourfile, "", "print");-))StefanThanks, mate. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now