473,756 Members | 8,174 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_US ER\Software\Ado be\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.OpenRep ort sReport,
acViewNormal".
- Closing the report by issuing the command ".DoCmd.Clo se 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_U SER\Software\Ad obe\Acrobat
PDFMaker). However, I ran into a host of problems:
- It does not recognize the filename in the string type sub key
"PDFFilenam e" 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 "PDFFilenam e" 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 1924

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

Similar topics

10
2623
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 adobe.acrobat.windows. no response and seemingly no interest.
8
12587
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 "Exception from HRESULT 0x80131019" Thanks Chris
1
6575
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 stumped?! ;) This code is in the middle of a large module in an ADP that takes web data and ports it to an MS Word form that is dynamically generated based on the data. Near the end, the Word doc needs to print to PDF and save both the Word...
6
5269
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 file we are downloading "cannot be opened by the default program. It is either corrupted or it has an incorrect file type." We had no problem until our upgrade, but our IT department says there's no fix. My question is concerning Adobe Acrobat....
1
1983
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... http://partners.adobe.com/public/developer/en/acrobat/sdk/pdf/intro_to_sdk/DeveloperFAQ.pdf Every once in a while, I get a generic "document failed to print" dialog from acrobat.
1
1116
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
5894
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 driver, I get correct formatting but the text is gibberish. I am using ev.Graphics.DrawString(line, printFont, Brushes.Black, leftMargin, yPos, New StringFormat) , where line is the text that I wish to print on each line, to print the text. ...
3
9844
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 problem. When I want to move the file, I get an error stating: System.IO.IOException: The process cannot access the file "x:\VF\2006-01\CVF-06000007.pdf" because it is being used by another process.
1
1990
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 I do so, Visual studio will create an interop assembly - wrapper and use acrobat.tlb itself. Unlike interop assemblies (which is made by Visual Studio while referring an x86 assembly in .Net), PIAs are signed by the publisher and using a PIA is the...
0
9384
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9212
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9779
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9645
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7186
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6473
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5069
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3276
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2612
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.