C# Class BaconFeedback.PrintHandler

Class used to layout print documents prior to preview or printing.
Datei anzeigen Open project: Revelations/BaconApp Class Usage Examples

Public Methods

Method Description
ConstructPrintDocument ( System.Drawing.Printing.PrintPageEventArgs e ) : void

Builds a multi page print document for display in a print preview, or for printing directly. This will be called as many times as there are pages in the print document.

PrintHandler ( List files ) : System

Constructor accepting a single argument.

Private Methods

Method Description
ConstructSingleFeedback ( System.Drawing.Printing.PrintPageEventArgs e ) : void

Creates a print layout for a single feedback file.

Print ( System.Drawing.Printing.PrintPageEventArgs e, IEnumerable pairs ) : void
PrintBody ( System.Drawing.Printing.PrintPageEventArgs e, string body, int &yOffset, int xOffset ) : void
PrintEmptyLine ( System.Drawing.Printing.PrintPageEventArgs e, int &yOffset ) : void
PrintHead ( System.Drawing.Printing.PrintPageEventArgs e, string head, int &yOffset ) : void
PrintSingleColumn ( System.Drawing.Printing.PrintPageEventArgs e, string head, string body, int &yOffset ) : void
PrintTwoColumn ( System.Drawing.Printing.PrintPageEventArgs e, string head, string body, int &yOffset ) : void
SkeletonFile ( FeedbackFile file ) : IEnumerable>

Method Details

ConstructPrintDocument() public method

Builds a multi page print document for display in a print preview, or for printing directly. This will be called as many times as there are pages in the print document.
public ConstructPrintDocument ( System.Drawing.Printing.PrintPageEventArgs e ) : void
e System.Drawing.Printing.PrintPageEventArgs
return void

PrintHandler() public method

Constructor accepting a single argument.
public PrintHandler ( List files ) : System
files List List of feedback files requested for printing.
return System