C# Printing

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Meenakshi

    #1

    C# Printing

    Hello everyone
    Can anybody help me out. i want to print two pages per single sheet. a
    book like printing. that is first page as well as last page of the
    document print on same side of the single sheet. how can i do this
    thru C# language
    Thanks
    Regards
    Meenakshi
  • sridhar

    #2
    RE:C# Printing


    You can enable the user to change printer settings by
    performing the following steps.

    Create an instance of the
    System.Drawing. Printing.Printe rSettings class. For our
    form, add the following line of code:
    private PrinterSettings prtSettings = new PrinterSettings
    ();

    Set prtSettings to the PrinterSettings property of the
    PageSetupDialog :

    private void filePageSetupMe nuItem_Click(Ob ject sender ,
    EventArgs e)
    {
    PageSetupDialog pageSetupDialog = new PageSetupDialog
    ();
    pageSetupDialog .PageSettings = pgSettings;
    pageSetupDialog .PrinterSetting s = prtSettings;
    pageSetupDialog .AllowOrientati on = true;
    pageSetupDialog .AllowMargins = true;
    pageSetupDialog .ShowDialog();
    }

    Now the Printer button in the Page Setup dialog is
    enabled. If you click the Printer button, the Printer
    setting page will be displayed.


    Please check at
    Now, next, and beyond: Tracking need-to-know trends at the intersection of business and technology

    ml

    [color=blue]
    >-----Original Message-----
    >Hello everyone
    >Can anybody help me out. i want to print two pages per[/color]
    single sheet. a[color=blue]
    >book like printing. that is first page as well as last[/color]
    page of the[color=blue]
    >document print on same side of the single sheet. how can[/color]
    i do this[color=blue]
    >thru C# language
    >Thanks
    >Regards
    >Meenakshi
    >.
    >[/color]

    Comment

    Working...