print file

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

    #1

    print file

    Hi!!
    I'm new in c#
    I have this:
    PrintDocument pd = new PrintDocument() ;
    pd.PrintPage += new
    PrintPageEventH andler(this.Pri ntPageEvent);
    pd.Print();
    And i have a file myFile.somethin g
    How do i print this file ?
  • Ignacio Machin ( .NET/ C# MVP )

    #2
    Re: print file

    On Jun 26, 11:38 am, Nortas <norta...@gmail .comwrote:
    Hi!!
    I'm new in c#
    I have this:
                    PrintDocument pd = new PrintDocument() ;
                    pd.PrintPage += new
    PrintPageEventH andler(this.Pri ntPageEvent);
                    pd.Print();
    And i have a file    myFile.somethin g
    How do i print this file ?

    what kind of file?
    using PrintDocument you take care of ALL the printing logic, you have
    to take care of the pagination, etc

    Comment

    Working...