KeithAtWork
asked on
SendKeys or SendMessage??
I have a simple program which sends text to the user's default printer. The default printer is set to an Acrobat PDF writer. The problem is that when the data is sent to the printer, the printer prompts for an file name to save the file as. The default file name is fine. The only problem I am having is that I am unable to SendKeys or SendMessage to Acrobat's save dialog box to simply accept the default name by passing the ENTER key (or ALT-S would work too).
Please help as soon as possible.
Thank you,
-Keith
Please help as soon as possible.
Thank you,
-Keith
are there any settings you can send with your call to the printer? like pdfprinter.print "filenamehere" ? I am not familiar with the pdf writer, but i would bet that there are values you can pass to it to save to a certain place and not have it ask you where
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
obviously you don't need to msgbox hWnd and lRes (for your testing, hWnd should be non-zero and lRes should be 0
hearing...
Update to version 4.0.5.0
I did this with OK results:
' Using pdf.ocx
Private Sub Form_Click()
With Pdf1
.LoadFile "d:\iFtpSvc\ftpserv.pdf"
.printWithDialog
End With
SendKeys "{ENTER}"
End Sub
I did this with OK results:
' Using pdf.ocx
Private Sub Form_Click()
With Pdf1
.LoadFile "d:\iFtpSvc\ftpserv.pdf"
.printWithDialog
End With
SendKeys "{ENTER}"
End Sub
ASKER
Thanks for your quick response and help!
-Keith
-Keith