G
Guest
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=blnLandscape;
printerSettings.Duplex = System.Drawing.Printing.Duplex.Horizontal;
PrintDocument pd = new PrintDocument();
pd.DefaultPageSettings.Landscape= blnLandscape;
pd.DefaultPageSettings.PrinterSettings.Duplex=System.Drawing.Printing.Duplex.Horizontal;
pd.PrinterSettings = printerSettings;
pd.PrintPage += new PrintPageEventHandler(this.pd_PrintPage);
pd.Print();
//******************************************
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=blnLandscape;
printerSettings.Duplex = System.Drawing.Printing.Duplex.Horizontal;
PrintDocument pd = new PrintDocument();
pd.DefaultPageSettings.Landscape= blnLandscape;
pd.DefaultPageSettings.PrinterSettings.Duplex=System.Drawing.Printing.Duplex.Horizontal;
pd.PrinterSettings = printerSettings;
pd.PrintPage += new PrintPageEventHandler(this.pd_PrintPage);
pd.Print();
//******************************************