Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print to PDF
Message
From
13/07/2011 09:33:24
 
General information
Forum:
ASP.NET
Category:
Pictures and Image processing
Title:
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01518063
Message ID:
01518064
Views:
52
>Hi All, I have a print screen class which accepts a parameter of type "Form" and then does what it says on the tin. One of my users has asked me if it's possible to print it to a pdf - no problem thinks I - I installed a print driver called CutePDF and set that as the default printer - print to pdf - then set the default printer back to what it was - THE GOTCHA - The print driver pops up a "SaveAsDialog" which I have no control over - I want to save the pdf in a specific place depending on what is on the printed form. I've tried Directory.SetCurrentFolder(myfolder) before calling the Print() method but it is ignored - anyone know of a product that will fit the bill ( client will buy if neccessary ) ?


Pete,

Have only used this with a dll in foxpro, but there is a .net interface

http://www.bullzip.com/products/pdf/info.php

Look here for API .Net interface http://www.biopdf.com/guide/

There's also a command line interface http://www.biopdf.com/guide/exe_interface.php

Seems that if you change something it is best to reset if after printing
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform