Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Reports / Printing / September 2006

Tip: Looking for answers? Try searching our database.

ReportToPDF - Access 2003

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
nwulf@smbsc.com - 29 Sep 2006 17:46 GMT
Currently we output reports to pdf using a different product, and would
like to change it because some of the issues we are having.  I came
across ReportToPDF by lebans.com and would like to try and use this
instead.

I'm using Access 2003 and some of my reports that I create require a
parameter sent to the report via OpenArgs of the docmd.openreport
event.  Is it possible to send a parameter when outputting to a
snapshot file?

Looking through the help, etc, I don't see anything for this.

Some reports the users don't see a preview...it automatically outputs
to a pdf.  I dont' want them to select snapshot when in preview...i
want to do it for them.

Any ideas?  Thanks for the help.

Nick
Stephen Lebans - 29 Sep 2006 20:15 GMT
Albert just posted a solution to this issue:

Just open the report *first* with the restrictions...and *then* send to
pdf...

eg:

   DoCmd.OpenReport strReportName, acViewPreview, , strWhere
   Reports(strReportName).Visible = False

   Call ConvertReportToPDF(strReportName, , strDocPDFName, False, False)

   DoCmd.Close acReport, strReportName

*very* important to CLOSE the reprot after the above.....

Signature

Albert D. Kallal    (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal@msn.com

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.

> Currently we output reports to pdf using a different product, and would
> like to change it because some of the issues we are having.  I came
[quoted text clipped - 15 lines]
>
> Nick
nwulf@smbsc.com - 29 Sep 2006 21:43 GMT
Very good.  I will give that a try...makes perfect sense.

Nick
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.