Silent printing

152 views
Skip to first unread message

SalvaMalaga

unread,
Nov 26, 2009, 4:07:35 AM11/26/09
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting, r...@clublacosta.com
Hello my problem is that i am using a PDF printer to convert an html
to PDF. I got it but i still have the last problem. Befor printing
the .PS file, i am getting the "choose printer screen" waiting for
accepting the printing. I would like to skip this process and print
ahead.

The code i am using is:

Process printProcess = new Process();

printProcess.StartInfo.FileName = file;
//printProcess.StartInfo.Verb = "print";
printProcess.StartInfo.Verb = "printto";
printProcess.StartInfo.Arguments = "\"Ghostscript PDF\"";
printProcess.StartInfo.WindowStyle =
ProcessWindowStyle.Hidden;
printProcess.StartInfo.CreateNoWindow = true;
printProcess.StartInfo.UseShellExecute = true;

printProcess.Start();

As you can see i am using a command line process (printto). So the
solution would be do some kind of silent printing...maybe i am missing
any argument???

Thabks in advance

Budi Sentosa

unread,
Nov 27, 2009, 1:12:58 AM11/27/09
to dotnetde...@googlegroups.com

Try Google for itextsharp

SalvaMalaga

unread,
Nov 27, 2009, 5:52:43 AM11/27/09
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
ItextSharp is very strict. I have not very complex html files but,
still, many of the tags dont appear. I have many different files to
print that are changing cointinuosly so i cannot grant that all the
info is appearing. I tried with a pdf printer using ghostscript but i
still have the "asking for confirmation" step that does not allow me
to automatically print the file. So i am running out of ideas. the
last thing is using a php page that uses itext to pass from html to
pdf.

If you have any ohter idea, please let me know

Raghupathi Kamuni

unread,
Nov 30, 2009, 2:31:57 AM11/30/09
to dotnetde...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages