Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Generation of PDF report from VB.

Status
Not open for further replies.

vbSun

Programmer
Dec 9, 2002
504
US
I have an application that outputs MS word files. I have now a request to update it so that it can output PDF files as well. I dont know how to do this with VB. Is there anything that we can use from inside the application and which can be redistributed?

waiting for your responses.
Sunil

------------------------------------------
The faulty interface lies between the chair and the keyboard.
 

There are several PDF print drivers out there including the ones by adobe. A couple of them are free but I do not know about their quality. So the easiest way is to install a PDF print driver, create you word file, use shellexecute(ex) with the print verb to print it to the PDF driver (it will actually take a bit more than this but it is a starting place for you.).

Good Luck

 
VB5, thanks for that response. I tried a couple of printer drivers, and some at office thinks that is messing up with the users computer as all the drivers we tried set the PDF printer as the default printer. Even though we manage to automatically setup the driver by bundling it with our setup, the printer settings will change, and that will not be something that any user will appreciate..

------------------------------------------
The faulty interface lies between the chair and the keyboard.
 
THanks VB5, am sorry i took a long time to respond. What i was looking for was some sort of controls/dll/code that can generate PDF without Acrobat or a printer driver being installed.

Pls give me a suggestion.

Thanks,
Sunil

------------------------------------------
The faulty interface lies between the chair and the keyboard.
 

I'm sorry vbSun but there are very few 3rd party applications out there that can create PDF's without being setup as a PDF print driver. However, there are tons of addins for adobe and command line programs that will alter PDF's. There may be something out there that you can use. Start off with Appligent tools. You will have to do lots of web searches to find something close to what you are trying to do.

The only other suggestion is to learn C and become a member of the adobe community and get their SDK which is no longer free, so I have been told.

Good Luck

 
Hello VB5,

I was not trying to find a fault, and i always appreciate you as one of the top "tip masters".. I had found one source code at planetsourcecode.com, which can write PDF files sans the graphic. I will do some more search so that i can get some info back to you.

Sunil.

------------------------------------------
The faulty interface lies between the chair and the keyboard.
 
did you find out more about this, vbSun? Can you link me to the code or share it?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top