[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Print to a specific pdf printer and save the file to a fixed location

Posted on 2006-11-24
7
Medium Priority
?
206 Views
Last Modified: 2008-03-06
I have an event that currently opens a report in access. We then print this in pdf and save to a fixed loaction.

Can anyone advise on the code required to print this to a pdf printer (this is not my default printer) and to specify a network drive and save with date stamp.
0
Comment
Question by:Gallsey
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
7 Comments
 
LVL 34

Expert Comment

by:jefftwilley
ID: 18008636
0
 

Author Comment

by:Gallsey
ID: 18018236
Sorry this did not help
0
 
LVL 34

Expert Comment

by:jefftwilley
ID: 18019338
Here is a solution by puppydogbuddy that hinges on your requirements. How's your coding?

http://www.experts-exchange.com/Databases/MS_Access/Q_21764358.html?query=print+pdf+to+printer&topics=39
0
 

Author Comment

by:Gallsey
ID: 18083875
I tried what url but with no joy. Could you paste an example?

Thanks in advance
0
 
LVL 34

Accepted Solution

by:
jefftwilley earned 2000 total points
ID: 18084841
Are you wanting to change your printer designation at the time you print the report?
Were you not able to open the link above? Or coulen't follow the contents?

A docmd.openreport is used in VBA to open a report. The report can be opened either as a preview, or "normal..in which case it will go directly to your default printer. Below is an example of this.

DoCmd.OpenReport "rpt_exc_design_conagro_tasklist", acViewPreview, , "[Oper#WorkCenter] ='" & ctlComboBox.ItemData(i) & "'"
   
docmd.outputto is used by vba to direct where an object can be output and in what format. Below is an example of this.

    DoCmd.OutputTo acOutputReport, "rpt_exc_design_conagro_tasklist", acFormatSNP, "P:\Planning Engineers\Weekly Reports\" & ctlComboBox.ItemData(i) & ".snp", False
0

Featured Post

What’s Wrong with Your Cloud Strategy ?

Even as many CIOs are embracing a cloud-first strategy, the reality is that moving to the cloud is a lengthy process and the end-state is likely to be a blend of multiple clouds—public and private. Learn why multicloud solutions matter in this webinar by Nimble Storage.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
What we learned in Webroot's webinar on multi-vector protection.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question