Report Class

This class does the work of creating a FixedDocment, accepting text lines and controlling the building and printing of pages.

Definition

Namespace: MbcsCentral
Assembly: MbcsCentral (in MbcsCentral.exe) Version: 2.0.1.15 (2.0.1.15)
C#
internal class Report : IDisposable
Inheritance
Object    Report
Implements
IDisposable

Constructors

Properties

Borderless 
BottomMargin Bottom Margin in device independent units
BottomOffset If non-zero adjusts actual last print line up (negative) or down(positive)
CurrentHeight The current page location
Document Returns the FixedDocument produced by this class.
Duplex 
FontBold 
FontColor 
FontSize 
FontUnderline 
HeaderLines Header lines to be used by PrintHeader method. Takes a two-dimensional object array: Dimension 1 = header text Dimension 2 - font to apply to that line, null to use base font
LastError 
LeftMargin Left Margin in device independent units
LeftMarginInches Left Margin in inches
LineHeight Height of each line in device indpendent units
LineHeightInches Height of each line in inches
LinesPerPage 
LinesPrinted Number of lines printed on currrent page
MaxPageHeight Maximum height of a printed page in device independent units. Generally set internally
PageNumber Current page number which can be specified in a print or header line by using the PAGE_TAG of pg>
PageOrientation Page Orientation. 0 = Portrait, 1 = Landscape
PageTag Read Only. Returns the PAGE_TAG
PageWidth 
PrinterChosen 
PrintFlag 
RightMargin Right Margin in device independent units
SetFont 
TopMargin Top Margin in device independent units
TopMarginInches Top Margin in inches
TotalLinesPrinted 

Methods

AddImage(Canvas, Boolean) 
AddImage(Image, Boolean) 
AddPageBackground 
AddPdf 
CanvasToPDF 
ChoosePrinter 
ConvertToXps Converts FixedDocument to XPS
CreateNewPage 
DisplayDocument Uses the frmReport window to display the document
DisposeReleases all resources used by the Report
DocToPdf(String) Creates specified pdf file from current document
DocToPdf(FixedDocument, String) Creates specified pdf file from passed fixed document
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
FinishDocument 
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetImage Loads image file
GetNextLinePostion 
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
NewDocument 
NewPage Adds the current page to the FixedDocument and creates a new page.
PrintDocument Prints the document
PrintFromXps 
PrintHeader Takes HeaderLines and places them in current page applying fonts, if present.
PrintImage Prints a Contorls.Image at specified location on Page
PrintLine(Double, Double, Brush, Boolean) Add a line to the page at the CurrentHeight then advance a line
PrintLine(Double, Double, Double, Double, Brush, Boolean, Brush) Add a line or box graphic to the page
PrintLineWithMargins Add a line or box graphic to the page using margin properties
PrintPageLine(String, Boolean) Adds a line to the current fixed page
PrintPageLine(String, Double, Double) Adds a line of text at a precise position
PrintPageLine(String, Font, Boolean) Adds a line to the current page applying a font
PrintPageLine(String, Boolean, Double) Takes an array of string values that can, optionally, contain tab values in the forms of "tab(n)" to precisely position the next value in the array.
PrintPageLine(String, Brush, Boolean) Takes an array of string values that can, optionally, contain tab values in the forms of "tab(n)" to precisely position the next value in the array.
PrintPageLine(String, Double, Double, Font, Boolean) Adds a line of text at a precise position
SaveRTBAsPNG 
SaveToPdf Saves an XPS MemoryStream to a PDF file
SetPrinter 
ToStringReturns a string that represents the current object.
(Inherited from Object)
Underline 

Fields

See Also