Class PrintOutText
Assembly: Reportman.Drawing.dll
Syntax
public class PrintOutText : PrintOut, IDisposable
Constructors
PrintOutText()
Constructo and initialization
Declaration
Fields
DEFAULT_LINESPERINCH
Declaration
public const int DEFAULT_LINESPERINCH = 6
Field Value
FPageHeight
Declaration
Field Value
FPageWidth
Declaration
Field Value
FPrinterDriver
Declaration
public string FPrinterDriver
Field Value
ForceDriverName
Declaration
public string ForceDriverName
Field Value
FullPlain
Declaration
Field Value
OverrideOemConvert
Declaration
public PrintOutText.OemConvertOverride OverrideOemConvert
Field Value
PrintResultStream
Declaration
public MemoryStream PrintResultStream
Field Value
blacklines
Declaration
Field Value
whitelines
Declaration
Field Value
Properties
PrintResult
Declaration
public string PrintResult { get; }
Property Value
Methods
CalcCharWidth(char, PrintStepType)
Declaration
public double CalcCharWidth(char charcode, PrintStepType step)
Parameters
Returns
CalculateTextExtent(string, ref Rectangle, bool, bool, PrintStepType, bool)
Declaration
public void CalculateTextExtent(string text, ref Rectangle rect, bool wordbreak, bool singleline, PrintStepType fontstep, bool doclip)
Parameters
CalculateTextExtent2(string, ref Rectangle, bool, bool, PrintStepType)
Declaration
public void CalculateTextExtent2(string text, ref Rectangle rect, bool WordBreak, bool singleline, PrintStepType fontstep)
Parameters
DoTextOut(int, int, string, int, PrintStepType, bool, int, bool)
Declaration
public void DoTextOut(int x, int y, string text, int linewidth, PrintStepType fontstep, bool rightoleft, int fontstyle, bool red)
Parameters
DrawObject(MetaFile, MetaPage, MetaObject)
Declaration
public void DrawObject(MetaFile meta, MetaPage page, MetaObject aobj)
Parameters
DrawPage(MetaFile, MetaPage)
Draw all objects of the page to current PDF file page
Declaration
public override void DrawPage(MetaFile meta, MetaPage page)
Parameters
| Type |
Name |
Description |
| MetaFile |
meta |
MetaFile containing the page
|
| MetaPage |
page |
MetaPage to be drawn
|
Overrides
EncodeLine(PrintLine, int, bool)
Declaration
public byte[] EncodeLine(PrintLine Line, int index, bool plain)
Parameters
Returns
EndDocument(MetaFile)
The driver should do cleanup here, a print driver should finish print document.
Declaration
public override void EndDocument(MetaFile meta)
Parameters
Overrides
EndPage(MetaFile)
The driver should end current page
Declaration
public override void EndPage(MetaFile meta)
Parameters
Overrides
FillEscapes()
Declaration
public void FillEscapes()
FontSizeToStep(short, PrintStepType)
Declaration
public static PrintStepType FontSizeToStep(short FontSize, PrintStepType select)
Parameters
Returns
GetBlankLine(PrintStepType)
Declaration
public string GetBlankLine(PrintStepType fontstep)
Parameters
Returns
GetColumnNumber(int, PrintStepType)
Declaration
public int GetColumnNumber(int posx, PrintStepType fontstep)
Parameters
Returns
GetEscape(PrinterRawOperation)
Declaration
public byte[] GetEscape(PrinterRawOperation op)
Parameters
Returns
GetFontStepEscape(PrintStepType)
Declaration
public byte[] GetFontStepEscape(PrintStepType nstep)
Parameters
Returns
GetLineIndex(int)
Declaration
public int GetLineIndex(int posy)
Parameters
| Type |
Name |
Description |
| int |
posy |
|
Returns
GetPageSize(out int)
The driver must return the default page size
Declaration
public override Point GetPageSize(out int indexqt)
Parameters
| Type |
Name |
Description |
| int |
indexqt |
|
Returns
Overrides
GraphicExtent(MemoryStream, Point, int)
The driver must return the image extent in twips
Declaration
public override Point GraphicExtent(MemoryStream astream, Point extent, int dpi)
Parameters
Returns
Overrides
NearestFontStep(PrintStepType)
Declaration
public PrintStepType NearestFontStep(PrintStepType fontstep)
Parameters
Returns
NewDocument(MetaFile)
The driver should do initialization here, a print driver should start a print document,
while a preview driver should initialize a bitmap
Declaration
public override void NewDocument(MetaFile meta)
Parameters
Overrides
NewPage(MetaFile, MetaPage)
The driver should start a new page
Declaration
public override void NewPage(MetaFile meta, MetaPage page)
Parameters
Overrides
Print(MetaFile)
Print method, it the PreparePrint, the driver should override this to perform additional
actions
Declaration
public override bool Print(MetaFile meta)
Parameters
Returns
Overrides
RecalcSize()
Declaration
SetPageSize(PageSizeDetail)
The driver must set a new page size
Declaration
public override Point SetPageSize(PageSizeDetail psize)
Parameters
Returns
Overrides
StepToTwips(PrintStepType)
Declaration
public double StepToTwips(PrintStepType step)
Parameters
Returns
TextExtent(TextObjectStruct, Point)
The driver must return the text extent in twips
Declaration
public override Point TextExtent(TextObjectStruct aobj, Point extent)
Parameters
Returns
Overrides
TextRect(Rectangle, string, int, bool, bool, bool, PrintStepType, int, bool)
Declaration
public void TextRect(Rectangle arect, string text, int alignment, bool clipping, bool wordbreak, bool righttoleft, PrintStepType fontstep, int fontstyle, bool red)
Parameters
WriteCurrentPage(bool)
Declaration
public void WriteCurrentPage(bool cutclearlines)
Parameters
| Type |
Name |
Description |
| bool |
cutclearlines |
|
WriteInit()
Declaration
WriteInterLine()
Declaration
public void WriteInterLine()
WritePageSize()
Declaration
public void WritePageSize()
Implements