Printing in duplex mode allows you to print on both sides of the paper.
Use the Duplex property of the PrintInfo class to print in duplex mode.
This example shows how to print on both sides of the paper.
C# |
Copy Code
|
---|---|
fpSpread1.ActiveSheet.Cells[1, 1].Value = "1,1"; fpSpread1.ActiveSheet.Cells[10, 10].Value = "10,10"; fpSpread1.ActiveSheet.PrintInfo.Duplex = System.Drawing.Printing.Duplex.Default; fpSpread1.ActiveSheet.PrintInfo.Preview = true; fpSpread1.PrintSheet(fpSpread1.ActiveSheet); |
VB |
Copy Code
|
---|---|
fpSpread1.ActiveSheet.Cells(1, 1).Value = "1,1" fpSpread1.ActiveSheet.Cells(10, 10).Value = "10,10" fpSpread1.ActiveSheet.PrintInfo.Duplex = System.Drawing.Printing.Duplex.[Default] fpSpread1.ActiveSheet.PrintInfo.Preview = True fpSpread1.PrintSheet(fpSpread1.ActiveSheet) |