Previous Section  < Day Day Up >  Next Section

Chapter 9

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


    Previous Section  < Day Day Up >  Next Section