Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2004-09-16 : 12:15:33
|
hi everyone!does anyone know ho do to this in C#:i have a file i want to print. it can be whatever (xls, jpeg, pdf, doc... ). i use Process class to do that:System.Diagnostics.Process proc = new System.Diagnostics.Process();proc.EnableRaisingEvents = false;proc.StartInfo.FileName = "order_sample.pdf";proc.StartInfo.Verb = "print";proc.StartInfo.CreateNoWindow = true;proc.Start(); but as printing is just drawing to different device, i'd like to intercept the file, manipulate its graphics and then send the modified file to print.i like to intercept the file because then the format of the file is irrelevant. its just another graphic...any ideas?Go with the flow & have fun! Else fight the flow  |
|
|
|
|