Click here to Skip to main content
15,885,985 members
Home / Discussions / C#
   

C#

 
GeneralRe: Request help for 2 newbie questions Pin
bouli30-Jan-04 5:06
bouli30-Jan-04 5:06 
GeneralRe: Request help for 2 newbie questions Pin
bouli30-Jan-04 5:10
bouli30-Jan-04 5:10 
GeneralRe: Request help for 2 newbie questions Pin
Heath Stewart30-Jan-04 5:24
protectorHeath Stewart30-Jan-04 5:24 
GeneralRe: Request help for 2 newbie questions Pin
bouli30-Jan-04 5:28
bouli30-Jan-04 5:28 
GeneralRe: Request help for 2 newbie questions Pin
TuringTest13-Feb-04 22:55
TuringTest13-Feb-04 22:55 
GeneralRe: Request help for 2 newbie questions Pin
Heath Stewart4-Feb-04 3:35
protectorHeath Stewart4-Feb-04 3:35 
Generalpdf printing Pin
amadeonMk30-Jan-04 2:41
amadeonMk30-Jan-04 2:41 
GeneralRe: pdf printing Pin
Heath Stewart30-Jan-04 4:47
protectorHeath Stewart30-Jan-04 4:47 
You can't just send a raw file to the printer (unless it's text or postscript and the driver is setup to recognize it correctly)! While a PDF is mostly PS, it is also compressed and mangled.

You need to have a program or library to print PDFs correctly. There is no support for this in the .NET base class library (has nothing to do with C#, which is only a language that targets the CLR), nor should there be (too specialized).

If Adobe Acrobat (including Reader) is installed, you can customize your Toolbox in VS.NET, click the COM tab, and add the Acrobat Control for ActiveX (which creates a couple interop assemblies and references them automatically). You can then use the LoadFile method to load a PDF then call the Print method. The out-of-process server for Acrobat (not Reader) doesn't appear to easily expose this type of access to the object model.

There are also libraries out there for .NET that can generate and print PDFs. Just http://www.google.com/search?&q=print+pdf+C%23[^]. One library that popuped up was http://itextsharp.sourceforge.net/[^].

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: pdf printing Pin
amadeonMk30-Jan-04 8:02
amadeonMk30-Jan-04 8:02 
GeneralRe: pdf printing Pin
Heath Stewart30-Jan-04 9:39
protectorHeath Stewart30-Jan-04 9:39 
QuestionWhere should I start studying for Managed DirectX if I'm a n00b? Pin
C# n00b30-Jan-04 1:27
C# n00b30-Jan-04 1:27 
AnswerRe: Where should I start studying for Managed DirectX if I'm a n00b? Pin
Mazdak30-Jan-04 1:35
Mazdak30-Jan-04 1:35 
GeneralRe: Where should I start studying for Managed DirectX if I'm a n00b? Pin
C# n00b30-Jan-04 1:42
C# n00b30-Jan-04 1:42 
GeneralRe: Where should I start studying for Managed DirectX if I'm a n00b? Pin
Mazdak30-Jan-04 1:54
Mazdak30-Jan-04 1:54 
GeneralPrinting Problem Pin
cjengler30-Jan-04 1:13
cjengler30-Jan-04 1:13 
GeneralWell now I'm convinced Pin
Rob Manderson29-Jan-04 22:41
protectorRob Manderson29-Jan-04 22:41 
GeneralRe: Well now I'm convinced Pin
Stephane Rodriguez.29-Jan-04 23:24
Stephane Rodriguez.29-Jan-04 23:24 
GeneralRe: Well now I'm convinced Pin
Brian Delahunty30-Jan-04 3:12
Brian Delahunty30-Jan-04 3:12 
GeneralRe: Well now I'm convinced Pin
Stephane Rodriguez.30-Jan-04 4:49
Stephane Rodriguez.30-Jan-04 4:49 
GeneralRe: Well now I'm convinced Pin
Brian Delahunty30-Jan-04 5:45
Brian Delahunty30-Jan-04 5:45 
GeneralRe: Well now I'm convinced Pin
Stephane Rodriguez.30-Jan-04 6:08
Stephane Rodriguez.30-Jan-04 6:08 
GeneralGDI+ problem (tough!) Pin
r929-Jan-04 22:38
r929-Jan-04 22:38 
GeneralRe: GDI+ problem (tough!) Pin
r929-Jan-04 22:39
r929-Jan-04 22:39 
GeneralRe: GDI+ problem (tough!) Pin
Shree30-Jan-04 0:44
Shree30-Jan-04 0:44 
GeneralRe: GDI+ problem (tough!) Pin
r930-Jan-04 1:56
r930-Jan-04 1:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.