[]
        
(Showing Draft Content)

Printing in Duplex Mode

Printing in duplex mode allows you to print on both sides of the paper.

Using Code

Use the Duplex property of the PrintInfo class to print in duplex mode.

Example

This example shows how to print on both sides of the paper.

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);
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)

!type=note

Note: Duplex printing mode is not supported if a user tries to print to a PDF file.

See Also

Printing an Entire Sheet

Printing to PDF

Printing a Child View of a Hierarchical Display

Printing Particular Pages

Printing the Portion of the Sheet with Data

Printing a Range of Cells on a Sheet

Printing an Area of the Sheet

Printing a Sheet with Cell Notes

Printing a Sheet with Shapes