Chapter 9

 < Day Day Up > 

A1:

Typeface

A2:

Point is the default measurement for a font. It is 1/72nd of an inch.

A3:

Graphics.DrawString method is used. It is passed a StringFormat object that has its Alignment property set to StringAlignment.Far.

A4:

The third column begins at x coordinate of 310 (usually in 1/100ths of an inch). The tab numbers are cumulative.

A5:

The BeginPrint event is fired when PrintDocument.Print is executed.

A6:

The PrintPageEventArgs parameter has a MarginBounds property that represents the margins.

A7:

To preview a document on the screen, you must create a PrintPreviewDialog object, set its Document property to the PrintDocument, and then call ShowDialog to display the preview:

 PrintPreviewDialog prvDialog = new PrintPreviewDialog(); PrvDialog.Document = pd; PrvDialog.ShowDialog();  // Show preview 

     < Day Day Up > 


    Core C# and  .NET
    Core C# and .NET
    ISBN: 131472275
    EAN: N/A
    Year: 2005
    Pages: 219

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net