How to print the pdf in Landscape orientation?
Posted: Mon Sep 03, 2007 3:25 pm
Hi,
I am using the latest version 8.x of PDFPrinter in my .Net C# coding its working fine for protrite bot not working for Landscape. Even i change the orient option in differentway, its alway printing in portrite.
my code is
int numberOfCopies = 1;
string printerName = @"\\Printmagic\ECMP1";
string pdfFileName = @"C:\test.pdf";
string GhostScriptPath = c:\gs\gs8.56\bin\gswin32c
System.Diagnostics.ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.Arguments = " -dPrinted -dBATCH -dNOPROMPT -dNOPAUSE -dORIENT1=false -dNOSAFER -q -dNumCopies=" + Convert.ToString(numberOfCopies) + " -sDEVICE=ljet4 -sOutputFile=\"\\\\spool\\" + printerName + "\" \"" + pdfFileName + "\"";
startInfo.FileName = @GhostScriptPath;
startInfo.UseShellExecute = false;
System.Diagnostics.Process process = Process.Start(startInfo);
Please any can help to me....
Thanks in adv..
Adhi.D
I am using the latest version 8.x of PDFPrinter in my .Net C# coding its working fine for protrite bot not working for Landscape. Even i change the orient option in differentway, its alway printing in portrite.
my code is
int numberOfCopies = 1;
string printerName = @"\\Printmagic\ECMP1";
string pdfFileName = @"C:\test.pdf";
string GhostScriptPath = c:\gs\gs8.56\bin\gswin32c
System.Diagnostics.ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.Arguments = " -dPrinted -dBATCH -dNOPROMPT -dNOPAUSE -dORIENT1=false -dNOSAFER -q -dNumCopies=" + Convert.ToString(numberOfCopies) + " -sDEVICE=ljet4 -sOutputFile=\"\\\\spool\\" + printerName + "\" \"" + pdfFileName + "\"";
startInfo.FileName = @GhostScriptPath;
startInfo.UseShellExecute = false;
System.Diagnostics.Process process = Process.Start(startInfo);
Please any can help to me....
Thanks in adv..
Adhi.D