473,387 Members | 1,863 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,387 software developers and data experts.

Acrobat 6.0: Print PDF by VB Application.

My VB Application opens an Access Report and has an option to generate the
report in PDF once the report is closed. This is accomplished by:
- Switching over to the Acrobat Printer ( i.e. PDFWriter ) from the default
printer.
- Setting a string type sub key ( PDFFilename ) in the registry
HKEY_CURRENT_USER\Software\Adobe\Acrobat PDFWriter ) to store the PDF in
a user selected directory with a filename that's determined by VB codes.
- Generate the PDF by issuing the command ".DoCmd.OpenReport sReport,
acViewNormal".
- Closing the report by issuing the command ".DoCmd.Close acReport,
ReportName, acSaveNo".
- Resetting to the default printer from Acrobat Printer "PDFWriter".

This works fine with Acrobat 5.0. When I recently installed Acrobat 6.0, I
managed to set the directory and name of the PDF into a string type sub key
( PDFFilename ) in the registry (HKEY_CURRENT_USER\Software\Adobe\Acrobat
PDFMaker). However, I ran into a host of problems:
- It does not recognize the filename in the string type sub key
"PDFFilename" in the registry. Instead, it uses its own default filename to
save the PDF.
- It does not recognize the user selected directory in the string type sub
key "PDFFilename" in the registry. Instead, it saves the PDF in the "My
Documents" directory even though I left the "Location" textbox blank in the
printing preference property of Acrobat 6.0 printer "Adobe PDF" in Window's
printer setting.

Can you please show me the proper procedures to make the automatic PDF
generation work in Acrobat 6.0?
Is there something different that I must do with "PDFMaker"?

The methods that I used in Acrobat 5.0 to set up PDFWriter does not seem to
work with Acrobat 6.0 and PDFMaker.

Your help is greatly appreciated.
Thank you
Andrew


Nov 12 '05 #1
0 1898

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

Similar topics

10
by: stevo1 | last post by:
Site under discussion http://www.sturgood.com/dna/index.html illustration of problem http://www.sturgood.com/dna/scrnshots/screen_problems.html I have posted and searched in...
8
by: Chris | last post by:
Hello all, I wish to automate printing of PDF documents in a C# application. Is there an Adobe .net object? I tried to create a reference to the COM Object Adobe Type Library, but I get error...
1
by: Nicole | last post by:
Like many before me, I am tearing my hair out trying to get Acrobat 6.0 to work with VBA. I am getting close, and the error I am getting now seems like it should be easy to surmount. So why am I...
6
by: jdph40 | last post by:
We recently had to upgrade the computers in our company. Now our office's website on our company intranet no longer recognizes reports saved in snapshot format. We get an error message that the...
1
by: TD | last post by:
I'm using iText in an app to create and print documents to network printers. I launch acrobat via the command line as shown on this page... ...
1
by: Steve Lang | last post by:
Hi All, What I want to do from a VB/VB.NET application (the steps are appropriate to Acrobat 6.0): 1. Open a specified PDF file.
4
by: William LaMartin | last post by:
I have a vb.net win form where I want to output some text to a printer. Everything works fine when printing to my laser or inkjet printers. However when I print to the Acrobat PDFWriter printer...
3
by: Joris De Groote | last post by:
Hi, I use Adobe Acrobat to read tekst from PDF files. After that the file has been read, I move the file in a folder (using the date I got from the text I got from Acrobat). Now here is my...
1
by: sajithamol | last post by:
I have to open up a PDF file and then print it, from a .Net project. I could easily add the type library acrobat.tlb and use CreateObject("AcroExch.AVDoc") for accessing acrobat application. But if...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.