473,395 Members | 1,554 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Programatically printing Access reports from pdf995 using VBA

I want to Programatically generate Access reports in the pdf format
using some tool and then email them to people in the same code. Right
now I am trying to do this with pdf995 using VBA (emailing is a
separate issue, which pdf995 does not addresses).

I downloaded pdf995. It controls printing via pdf995.ini file. In the
VBA code, I have DoCmd.OpenReport "Report2", acViewNormal. I am having
the following problems right now.

(a) I do not understand how the .ini file is used with printing.
Specifically, when I issue the command DoCmd.OpenReport "Report2",
acViewNormal
what should I expect? Right now, all this command does is send the
report to the printer, which this line of code would do, WITHOUT
pdf995. In the e:\temp folder, pdf995 does not generate anything.

(b) I want to avoid sending reports to the printer. How will I
accomplish this?

(c) No dialog boxes of any kind (Save as etc.)

I have already looked at FAQs and Developers FAQs at pdf995 web site.
Yes, there is a VB sample. But it does not address the problems I am
having.

I have looked at other postings. Immediately after the above command,
people say to use CopyFile_TSB function (to copy the output generated
by the execution of the DoCmd.OpenReport command to the filename you
want). My problem is which command (could somebody give me an example)
generates the pdf file using pdf995?

Here is my pdf995.ini file.

[Parameters]
Output File=SAMEASDOCUMENT
Output Folder=e:\temp
Autolaunch=0
[Debug]
EndDocPort1=1
EndDocPort2=1
EndDocPort3=1

Help appreciated.

If somebody has a better method, please advise.

Thanks
Nov 13 '05 #1
3 10413
The Acrobat SDK has some sample code to do this (at least the v5.0 one
did, and I am sure v6.0 does as well)
http://partners.adobe.com/asn/acrobat/download.jsp

- Robert
On 23 Jun 2004 08:35:23 -0700, gu*****@yahoo.com (gudia) wrote:
I want to Programatically generate Access reports in the pdf format
using some tool and then email them to people in the same code. Right
now I am trying to do this with pdf995 using VBA (emailing is a
separate issue, which pdf995 does not addresses).

I downloaded pdf995. It controls printing via pdf995.ini file. In the
VBA code, I have DoCmd.OpenReport "Report2", acViewNormal. I am having
the following problems right now.

(a) I do not understand how the .ini file is used with printing.
Specifically, when I issue the command DoCmd.OpenReport "Report2",
acViewNormal
what should I expect? Right now, all this command does is send the
report to the printer, which this line of code would do, WITHOUT
pdf995. In the e:\temp folder, pdf995 does not generate anything.

(b) I want to avoid sending reports to the printer. How will I
accomplish this?

(c) No dialog boxes of any kind (Save as etc.)

I have already looked at FAQs and Developers FAQs at pdf995 web site.
Yes, there is a VB sample. But it does not address the problems I am
having.

I have looked at other postings. Immediately after the above command,
people say to use CopyFile_TSB function (to copy the output generated
by the execution of the DoCmd.OpenReport command to the filename you
want). My problem is which command (could somebody give me an example)
generates the pdf file using pdf995?

Here is my pdf995.ini file.

[Parameters]
Output File=SAMEASDOCUMENT
Output Folder=e:\temp
Autolaunch=0
[Debug]
EndDocPort1=1
EndDocPort2=1
EndDocPort3=1

Help appreciated.

If somebody has a better method, please advise.

Thanks


Nov 13 '05 #2
If it helps....

I use PDF995 and PDF995 Edit. I set the Edit application to
automatically save and name the report. I then set the report to print
specifically to the PDF995 using the Page Setup options. When I use
the DoCmd.OpenReport "rpt..." it creates the pdf file using the
Caption Title of the report. I then issue an email command to send the
pdf.

Not sure whether this is a solution for you but if it is let me know
at an****@asg-solutions.co.uk
Nov 13 '05 #3
I use the PDF class from Attac Consulting. It was well worth the money.
http://ourworld.compuserve.com/homep...cg/acgsoft.htm

an****@asg-solutions.co.uk (Antony Garnett) wrote in message news:<fa**************************@posting.google. com>...
If it helps....

I use PDF995 and PDF995 Edit. I set the Edit application to
automatically save and name the report. I then set the report to print
specifically to the PDF995 using the Page Setup options. When I use
the DoCmd.OpenReport "rpt..." it creates the pdf file using the
Caption Title of the report. I then issue an email command to send the
pdf.

Not sure whether this is a solution for you but if it is let me know
at an****@asg-solutions.co.uk

Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Hank Reed | last post by:
For about a year I have been printing pdf files from Access 2000 using the ShellExecute Me.hWnd, "print", FileName, "", 0, SW_SHOWNORMAL We normally print, from 1 to 100 engineering documents in...
5
by: Lumpierbritches | last post by:
Thank you in advance for any and all assistance. It is GREATLY appreciated. Is there a way to create a PDF report from within Access 97? If so, How?
2
by: Joe Wilke | last post by:
I have a database with reports I would like to send via fax. I have the reports set to the specific printer FAX but when I print of course I get the Fax wizard. Can anyone tell me how to avoid the...
10
by: John Smith | last post by:
Is there anyway to convert/export/copy an Access report into a Powerpoint slide? I know I can publish via Excel/Word but these remove formatting etc and therefore always require some degree of...
16
by: cyranoVR | last post by:
This is the approach I used to automate printing of Microsoft Access reports to PDF format i.e. unattended and without annoying "Save As..." dialogs, and - more importantly - without having to use...
2
by: sanditaylor | last post by:
Hi There, I'm quite new to access & to VB. I'm working with a database which through a form, you can generate a pdf report (using pdf995). Choose the report from a dropdown box, and then click...
13
by: salad | last post by:
Hi Guys: I was stuck. I needed to send a report to a file. My beautiful report(s) in Access were going to require loss of formatting with RTFs, a PITA in WordMailMerge, sending it as a text...
1
by: Gilberto | last post by:
pks00 Expert 280 Posts April 16th, 2007 01:08 PM Re: How to print MS Access 2000 report to PDF995 printer by VBA Code Sweet, your using pdf995, makes answering this question that much...
13
by: boliches | last post by:
I am trying to alert a user , by using a message box, to state the various missing data.This works OK except when all data is entered as appropriate I still get the "Warning Message" for missing...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.