Spread Windows Forms 17
Spread Windows Forms 17.0 Product Documentation / Developer's Guide / Printing / Specifying What to Print / Printing in Duplex Mode
In This Topic
    Printing in Duplex Mode
    In This Topic

    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.

    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)
    
    Note: Duplex printing mode is not supported if a user tries to print to a PDF file.
    See Also