I’m not sure how to feed PCL commands (i.e. “Ec&l1S”) thru the
PrinterSettings() function, but we have been successfully using the
PrinterSetting() properties and methods to successfully call on most of the
printer’s properties.
Our understanding was that by using the correct combination of “.Landscape”
and “.Duplex.Horizontal” properties, we would be able to accomplish the “flip
pages up”, in which the report is printed in landscape mode, printed on both
sides, and printed in a notebook layout (back side flipped up).
We can’t get this to work properly. We can get the report to
programmatically print landscape and duplex, but the call to flip pages up is
NOT working.
Below is the snippet of code we’re using.
(We have tried various combinations of landscape, portrait, horizontal and
vertical, in the printersettings and printdocument objects in this code).
Any suggestions on this would be greatly appreciated.
//******************************************
PrinterSettings printerSettings = new PrinterSettings();
printerSettings.PrinterName = printerName;
printerSettings.DefaultPageSettings.Landscape=blnL andscape;
printerSettings.Duplex = System.Drawing.Printing.Duplex.Horizontal;
PrintDocument pd = new PrintDocument();
pd.DefaultPageSettings.Landscape= blnLandscape;
pd.DefaultPageSettings.PrinterSettings.Duplex=Syst em.Drawing.Printing.Duplex.Horizontal;
pd.PrinterSettings = printerSettings;
pd.PrintPage += new PrintPageEventHandler(this.pd_PrintPage);
pd.Print();
//******************************************