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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access to .PDF works great but Sendkeys is stopping

Status
Not open for further replies.

Dirtbike

IS-IT--Management
Dec 9, 2002
81
US
I have cutePDF writer installed. I do a
Me.Refresh
DoCmd.OpenReport "Customer", acViewPreview, , "Key = " & Me.Key
SendKeys "%FPcute{ENTER}"

It goes to a "Save As" prompt but I cannot go any further with SendKey. I guess it's because Access has lost focus?? I would like to enter a filename and then eventually run the .PDF and E-mail...thanks for all your help here.

Scott in Charlotte, NC
 
Hi

Not familiar with cutePDF writer , but I have done similar things with otehr pdf software, is the way to go not to (in code) switch the default printer to be the pdf writer, run the report, switch the default printer back again?

You may be able to manipulate the settings within cutePDF writer from the VBA code via registry or some such, you certainly can do this with the pdf writers I have seen

forget Sendkeys, it is not reliable

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Hi
I'm having the same issues with CutePDF. I can set the filesave name in the registry but cannot suppress the print dialog box. Did you ever find a solution?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top