Printdocument to pdf files VB 2008 HELP
Printdocument to pdf files VB 2008 HELP
Printdocument to pdf files VB 2008 HELP
Printdocument to pdf files VB 2008 HELP
Printdocument to pdf files VB 2008 HELP
Printdocument to pdf files VB 2008 HELP Printdocument to pdf files VB 2008 HELP Printdocument to pdf files VB 2008 HELP Printdocument to pdf files VB 2008 HELP Printdocument to pdf files VB 2008 HELP Printdocument to pdf files VB 2008 HELP Printdocument to pdf files VB 2008 HELP Printdocument to pdf files VB 2008 HELP
Printdocument to pdf files VB 2008 HELP Printdocument to pdf files VB 2008 HELP
Printdocument to pdf files VB 2008 HELP
Go Back  Xtreme Visual Basic Talk > > > Printdocument to pdf files VB 2008 HELP


Reply
 
Thread Tools Display Modes
  #1  
Old 02-20-2009, 09:22 AM
Bevans6224 Bevans6224 is offline
Newcomer
 
Join Date: Feb 2009
Posts: 1
Unhappy Printdocument to pdf files VB 2008 HELP


Hi Guys

I'm facing a problem. I create some reports or documents in my vb 2008 application using the Printing.printdocument object.
I have no problem when i print to a printer but I also need to print directly to a PDF file, and specify the filename in the code. I don't want to have any interaction with the filename dialog box. It must be totally transparent to the user.
Does anyone have an idea to help me? I don't find anything on the net?

Thank you
Reply With Quote
  #2  
Old 02-20-2009, 09:50 AM
AtmaWeapon's Avatar
AtmaWeaponPrintdocument to pdf files VB 2008 HELP AtmaWeapon is offline
Fabulous Florist

Forum Leader
* Guru *
 
Join Date: Feb 2004
Location: Austin, TX
Posts: 9,500
Default

Sounds like you need a third-party PDF component; .NET has no built-in PDF support (I speculate because Adobe would sue the pants off of Microsoft for trying; they whined a lot when MS tried to add PDF support to Office.)

If the computer happens to have a PDF printer installed, you can use the printing classes to select that printer and print the document on it. This is going to be hard to do in a general manner because everyone's machine might have a different PDF printer with a different name, and the computer can't tell the difference between a normal printer and a PDF printer. Your best bet in this case is to ask the user to select the printer.
__________________
.NET Resources
My FAQ threads | Tutor's Corner | Code Library
I would bet money 2/3 of .NET questions are already answered in one of these three places.
Reply With Quote
  #3  
Old 02-20-2009, 10:47 AM
Merrion's Avatar
MerrionPrintdocument to pdf files VB 2008 HELP Merrion is offline
Ultimate Contributor

* Guru *
 
Join Date: Sep 2001
Location: Dublin, Ireland
Posts: 1,828
Default

We use Zetadocs to do that - but it is a commercial product.
Reply With Quote
  #4  
Old 02-20-2009, 01:49 PM
piggybank1974's Avatar
piggybank1974 piggybank1974 is offline
Ultimate Contributor
 
Join Date: Mar 2002
Location: weston-super-mare(UK)
Posts: 1,795
Default

There is CutePDF which is free for all, if i remember it a form of printer driver, it works great as we use it at work.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Printdocument to pdf files VB 2008 HELP
Printdocument to pdf files VB 2008 HELP
Printdocument to pdf files VB 2008 HELP Printdocument to pdf files VB 2008 HELP
Printdocument to pdf files VB 2008 HELP
Printdocument to pdf files VB 2008 HELP
Printdocument to pdf files VB 2008 HELP Printdocument to pdf files VB 2008 HELP Printdocument to pdf files VB 2008 HELP Printdocument to pdf files VB 2008 HELP Printdocument to pdf files VB 2008 HELP Printdocument to pdf files VB 2008 HELP Printdocument to pdf files VB 2008 HELP
Printdocument to pdf files VB 2008 HELP
Printdocument to pdf files VB 2008 HELP
 
Printdocument to pdf files VB 2008 HELP
Printdocument to pdf files VB 2008 HELP
 
-->