Solved

How to generate pdf files in MS Access 2007 in "silent mode"

Posted on 2010-09-02
3
520 Views
Last Modified: 2012-06-27
Hi,

I am using Access to generated reports in pdf files, but when it generates it keeps poping up the generation itself. Is there a possibility to hide this from the user experience?

Right now I have the following:
    DoCmd.OpenReport ReportName, acViewDesign
    Reports(ReportName).Filter = strFilter
    DoCmd.Close acReport, ReportName, acSaveYes
   
    DoCmd.OpenReport ReportName, acViewPreview, , strFilter
    DoCmd.OutputTo acOutputReport, "", acFormatPDF, Path & "\" & FileName, False
    DoCmd.Close acReport, ReportName

Thank you in advance.
0
Comment
Question by:DistillingExperts
3 Comments
 
LVL 14

Expert Comment

by:Bill Ross
Comment Utility
Hi,

You might try turning off the screen during the procedure.

DoCmd.Echo False

   run your print process...

DoCmd.Echo True
  me.repaint  <-If you're calling from a form.

Regards,

Bill
0
 

Author Comment

by:DistillingExperts
Comment Utility
Didn't work. Still showing while generating the pdfs.
0
 
LVL 10

Accepted Solution

by:
conagraman earned 500 total points
Comment Utility
DistillingExperts:

get rid of the ", False"

just use :
DoCmd.OutputTo acOutputReport, "", acFormatPDF, Path & "\" & FileName

hope this helps
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

744 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now