Solved

write a pdf using vb6.0

Posted on 2004-08-10
4
3,807 Views
Last Modified: 2013-12-02
I got a task to write  a pdf file using Adobe 5.0 writer in visual basic 6.0.   In this plz tell me what code i should write for generating the shape ,gif , and data value. in vb
0
Comment
Question by:nitin_hbtik
4 Comments
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 500 total points
ID: 11770939
You cannot do this with VB and Acrobat. You need to use a 3rd party library to create PDFs. There are several libraries available. Take a look at PDFLib (http://www.pdflib.com). You can try it for free.
The only way you can use Acrobat (and btw, there is no product named "Adobe Writer". The name of this product is just "Adobe Acrobat"), you need to write PostScript files that describe your pages and then use Distiller (which comes with the full version of Acrobat) to convert the PostScript to PDF. PostScript is a programming language, and it's much easier to hand create it than PDF. But, if you have something like the PDFLib, you don't have to use a second format.
0
 

Expert Comment

by:secuteamers
ID: 12873904
You can write pdffiles from VB6 with Adobe Acrobat PDFWriter and throughout a third app. This really exists. As in Acrobat 4 it was standard installed but from Acrobat 5 and up, u have to do a custom install. The code use got to use, by example from excel, is the following:

ActiveWindow.SelectedSheets.PrintOut Copies:=1, ActivePrinter:= _
"Acrobat PDFWriter", PrToFileName:=yourfilename

But to instantly write to a pdf from VB6, is indeed from a plugin as khkremer said.
It's a long way, but usefull if u dont have the plugin and want to use a lot of excell functionality.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Office Picture Manager is not included in Office 2013. This comes as a shock to users upgrading from earlier versions of Office, such as 2007 and 2010, where Picture Manager was included as a standard application. This article explains how…
Inserting page numbers in Portable Document Files not only enhances manageability but also makes them look professional. With numbered pages, the file appears more organized and it becomes easier to search for a particular page. The size and the vol…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Sometimes we receive PDF files that are in the wrong orientation. They may be sideways or even upside down. This most commonly happens with scanned or faxed documents. It is possible to rotate the view of these PDFs with the free Adobe Reader produc…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question