Sep 26th, 2004, 08:02 PM
#1
Thread Starter
New Member
[SOVLED] Export a report as a PDF file from access
Anyone know how to do it?
I've been searching everywhere, and all i can find is code that explains how to do it with acrobat 5.
I've got VBA code that can change the default printer to the Adobe PDF driver, and back to the previous driver.
But it still comes up with the thing that asks what filename you want to export it to, which i can't figure out.
Any ideas?
Last edited by ChrisChubs; Oct 7th, 2004 at 08:50 PM .
Sep 27th, 2004, 06:52 AM
#2
PowerPoster
Here is some code from one of my systems. It exports to a PDF file.
Set Report = crxApplication.OpenReport("Z:\DAD\CertificateofComplianceB.rpt", 1)
For Each crxDatabaseTable In Report.Database.Tables
crxDatabaseTable.ConnectionProperties("user id") = "sa"
crxDatabaseTable.ConnectionProperties("Password") = myPasswordTechniSQL
Next crxDatabaseTable
Report.ExportOptions.FormatType = crEFTPortableDocFormat
Report.ExportOptions.DiskFileName "C:\Certificate_of_Compliance_" & jobinx & ".pdf"
Report.ExportOptions.DestinationType = crEDTDiskFile
Report.Export False
Sep 27th, 2004, 06:28 PM
#3
Thread Starter
New Member
Your code is for crystal reports. I'm using access, unfortunately.
Anyone?
Oct 4th, 2004, 06:08 PM
#4
Frenzied Member
You have to have Acrobat Writer inorder to do this.
I'll Be Back!
T-1000
Microsoft .Net 2005
Microsoft Visual Basic 6
Prefer using API
Oct 4th, 2004, 06:44 PM
#5
Thread Starter
New Member
I have got acrobat writer, its just i need to be able to set it to save to a filename i choose from code, instead of prompting the user to choose its filename.
Oct 5th, 2004, 11:26 PM
#6
You may want to try the Developer or Newsgroups on
the Adobe website. You can sign up for free to gain access, but to
get to the advanced stuff you need to subscribe for $$$.
Acrobat support
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Oct 7th, 2004, 08:49 PM
#7
Thread Starter
New Member
I figured out how to do it.
The trick is to forget about the acrobat PDF writer, its junk.
Download pdfFactory and use its printer driver and registry entries to export to a specific file. It also is a LOT faster than acrobat, and less buggy. Seriously adobe get your butt in gear.
Is anyone interested in how i coded it all in access?
Oct 7th, 2004, 11:32 PM
#8
Sure post the code!
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Oct 8th, 2004, 01:02 AM
#9
Thread Starter
New Member
Here it is (in the first post)
Oct 8th, 2004, 01:04 AM
#10
Thread Starter
New Member
Here it is (attached) - its an access 2000 file.
You need to download and install PDFFactory from here, as well:
http://www.fineprint.com/
Only costs $50us, and in my opinion works a million times better (less buggy, faster) than adobe.
Attached Files
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width