Save as PDF

C

Chris641

G'day,

I was just wondering if there was a way to code a command button to save a
form/report as a PDF file?

Thanks in advance,

Chris
 
C

Chris641

Thanks Allen,

Would there be any way to perform the save via a command button though? Or
would it just have to be done manually through the Access menu?

Cheers
 
A

Arvin Meyer [MVP]

You could save a PDF printer as the specific printer for that report. Then
when the button was pushed that report would be created as a PDF. At one
time I experimented with changing printers in code, in response to an option
group, then changing it back to the default. I had it partially working, but
then the client started paying slowly, and I went on to other pursuits.

One other possibility is Steve Arbaugh's PDF and Mail Class, which can be
used to print or email PDFs:

http://www.groupacg.com/
 
B

Bob Quintal

Thanks Allen,

Would there be any way to perform the save via a command button
though? Or would it just have to be done manually through the
Access menu?

Cheers

Stephen Lebans' ReportToPDF utility can be called from a command
button with no problem.

Q
 
T

Tony Toews [MVP]

SQL Server Reporting Services supports this.
and it's free.

Note that Aaron's answer to just about every question is SQL Server
and ADPs. No matter how appropriate his answer.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
 
C

Chris641

I've downloaded Lebans' ReportToPDF system, how do I use this from within my
own database?
 
B

Bob Quintal

I've downloaded Lebans' ReportToPDF system, how do I use this from
within my own database?
Extract the files from the .zip into a directory.
double-click the .mdb file to open it.
double-click the READMEFIRST form and read that,
then double-click the HowToUse form to open that and read what it
says about how to use.........

Q
 
C

Chris641

Done all that but its still not working for me... keeps saying that the
ConvertReportToPDF function is not defined, but i copied the code straight
from Lebans' system so I cant see what the difference is.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top