Solved

write a pdf using vb6.0

Posted on 2004-08-10
4
3,789 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article was inspired by a question here at Experts Exchange (http://www.experts-exchange.com/Software/Photos_Graphics/Images_and_Photos/Q_28629170.html). The requirements stated in that question are (1) reduce the file size of a large number of…
This article provides the solution to a question (http://www.experts-exchange.com/Software/Photos_Graphics/Images_and_Photos/Q_28674207.html) posed here at Experts Exchange. The asker of the question has many JPG images in many folders, and all of t…
This video is the first in a two-part series that discusses PaperPort's "Send To Bar" feature . This first video tutorial explains the purpose of the Send To Bar, how to use it, and how to hide unwanted items that are automatically created on it whe…
Microsoft Office Picture Manager is not included in Office 2013. This comes as quite a surprise to users upgrading from earlier versions of Office, such as 2007 and 2010, where Picture Manager was included as a standard application. This video expla…

762 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now