Solved

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

Posted on 2010-09-02
3
538 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
ID: 33585286
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
ID: 33585441
Didn't work. Still showing while generating the pdfs.
0
 
LVL 10

Accepted Solution

by:
conagraman earned 500 total points
ID: 33617629
DistillingExperts:

get rid of the ", False"

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

hope this helps
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

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…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

861 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