OpenPetra
Free Administration Software for Non-Profits
Ict.Common.Printing.TPdfPrinter Class Reference

this printer uses PdfSharp to print to PDF. More...

Inheritance diagram for Ict.Common.Printing.TPdfPrinter:
Ict.Common.Printing.TGfxPrinter Ict.Common.Printing.TPrinter

Public Types

enum  ePrinterBehaviour { eReport , eFormLetter }
 we have some different behaviour when printing the columns of a report and when printing a form letter More...
 

Public Member Functions

 TPdfPrinter (ePrinterBehaviour APrinterBehaviour)
 constructor More...
 
override void SetPageFooterSpace (System.Int32 ANumberOfLines, eFont AFont)
 Set the space that is required by the page footer. ValidYPos will consider this value. More...
 
override float LineFeedToPageFooter ()
 Jump to the position where the page footer starts. SetPageFooterSpace is used to define the space reserved for the footer. More...
 
override Boolean PrintString (String ATxt, eFont AFont, eAlignment AAlign)
 prints into the current line, aligned x position More...
 
override Boolean PrintString (String ATxt, eFont AFont, float AXPos)
 prints into the current line, absolute x position More...
 
override Boolean PrintString (String ATxt, eFont AFont, float AXPos, float AWidth, eAlignment AAlign)
 prints into the current line, absolute x position with width and alignment More...
 
override Boolean DrawLine (float AXPos1, float AXPos2, eLinePosition ALinePosition, eFont AFont)
 Draws a line, either above or below the current text line the font is required to get the height of the row More...
 
override void DrawLine (Int32 APenPixels, float AXPos1, float AYPos1, float AXPos2, float AYPos2)
 Draws a line, at specified position More...
 
override void DrawRectangle (Int32 APenPixels, float AXPos, float AYPos, float AWidth, float AHeight)
 draw a rectangle More...
 
override void DrawBitmap (string APath, float AXPos, float AYPos)
 draw a bitmap at the given position; the current position is moved More...
 
override void DrawBitmap (string APath, float AXPos, float AYPos, float AWidth, float AHeight, float AWidthPercentage, float AHeightPercentage)
 draw a bitmap at the given position; the current position is moved More...
 
override float GetWidthString (String ATxt, eFont AFont)
 prints into the current line, into the given column More...
 
override void SaveState ()
 save the state More...
 
override void RestoreState ()
 restore the state More...
 
override void RotateAtTransform (double ADegrees, double XPos, double YPos)
 rotate the following output by some degrees, at the given position More...
 
override float LineFeed (eFont AFont)
 Line Feed; increases the current y position by the height of the given font More...
 
override float LineFeed ()
 Line Feed; increases the current y position by the height of the biggest last used font More...
 
override float LineSpaceFeed (eFont AFont)
 Line Feed, but not full line; increases the current y position by half the height of the given font More...
 
override float LineUnFeed (eFont AFont)
 Reverse Line Feed; decreases the current y position by the height of the given font More...
 
override void InsertDocument (string AFilename)
 insert another pdf into the current PDF More...
 
void SavePDF (string AFilename)
 store a pdf to file. will check for paper size using the PrinterLayout. By default A4 is chosen More...
 
void SavePDF (string AFilename, PaperKind APaperKind, Margins AMargins, float AWidthInPoint, float AHeightInPoint)
 store a pdf to a file. will call PrintPage automatically More...
 
override void Init (eOrientation AOrientation, TPrinterLayout APrinterLayout, eMarginType AMarginType)
 todoComment More...
 
override bool PrintStringWrap (String ATxt, eFont AFont, float AXPos, float AWidth, eAlignment AAlign)
 prints into the current line, absolute x position with width and alignment this method uses FCurrentXPos and FCurrentYPos to be able to continue a paragraph uses FCurrentXPos and FCurrentYPos to know where to start to print, and also sets valid values in those member variables More...
 
override Boolean PrintStringAndFits (String ATxt, eFont AFont, float AXPos, float AWidth, eAlignment AAlign)
 This function uses the normal DrawString function to print into a given space. It will return whether the text did fit that space or not. More...
 
float LineFeed (float height)
 Line Feed; increases the current y position by the given height More...
 
override Boolean ValidXPos (float APosition)
 Is the given position still on the page? More...
 
override Boolean ValidYPos ()
 Is the current line still on the page? More...
 
override void SetHasMorePages (bool AHasMorePages)
 Tell the printer, that there are more pages coming More...
 
override bool HasMorePages ()
 more pages are coming More...
 
override float Cm (float AValueInCm)
 Converts the given value in cm to the currently used measurement unit More...
 
override float PixelHorizontal (float AWidth)
 convert pixels to inches or other unit used for output More...
 
override float PixelVertical (float AHeight)
 convert pixels to inches or other unit used for output More...
 
void StartSimulatePrinting ()
 start the simulation of printing; nothing is actually printed, but the CurrentYPos is increased More...
 
void FinishSimulatePrinting ()
 finish the simulation of printing; the actual CurrentYPos is restored More...
 
void PushCurrentState ()
 store the current printer state (font size etc) More...
 
void PopCurrentState ()
 return to previous printer state; this is used for printing table cells More...
 
void PopCurrentStateApartFromYPosition ()
 return to previous printer state; but keep the new y position (used eg. for printing the page header) More...
 
float Inch (float AValueInInch)
 Converts the given value in inch to the currently used measurement unit; uses Inch2Cm and Cm More...
 
virtual float PrintTable (float AXPos, float AWidthAvailable, List< TTableRowGfx >rows, out Int32 ARowsFittingOnPage)
 renders a table at the current FCurrentYPos does not support rowspan at the moment colspan might be implemented in the generation of the TTableRowGfx structure does not care about fitting on page etc. More...
 

Static Public Member Functions

static void ResetStaticVariables ()
 reset the static variables for each Web Request call. More...
 
static float Cm2Inch (float AValueInCm)
 Converts the given value in cm to the equivalent value in inches More...
 
static float Inch2Cm (float AValueInInch)
 Converts the given value in inches to the equivalent value in centimeters More...
 

Public Attributes

XFont FXDefaultFont
 todoComment More...
 
XFont FXDefaultBoldFont
 todoComment More...
 
XFont FXHeadingFont
 todoComment More...
 
XFont FXSmallPrintFont
 todoComment More...
 
XFont FXBarCodeFont
 for printing bar codes More...
 
XFont FXBiggestLastUsedFont
 todoComment More...
 
ePrinterBehaviour FPrinterBehaviour = ePrinterBehaviour.eReport
 we have some different behaviour when printing the columns of a report (can make text fit) and when printing a form letter More...
 
float FPageXPos
 printing should be started at this position for each line More...
 
float FPageWidthAvailable
 space available for printing More...
 

Static Public Attributes

const Int32 DEFAULTPRINTERRESOLUTION = 300
 default printer resolution More...
 

Protected Member Functions

override bool UpdateBiggestLastUsedFont (eFont AFont)
 update the biggest last used font for the next line feed More...
 
void PrintPage ()
 print the page to PDF More...
 
String GetFittedText (String ATxt, eFont AFont, float AWidth)
 Check if the text will fit into the given width. If yes, the text will be returned. If no, the text will be shortened and a "..." will be added to indicate that some text is missing. More...
 
String CutTextToLength (String ATxt, eFont AFont, float AWidth)
 Cuts a given text so it will not extend the given width. More...
 
Int32 GetTextLengthThatWillFit (String ATxt, eFont AFont, float AWidth)
 word wrap text, return the number of characters that fit the line width; if the first word does not fit the space available, wrap the word in itself More...
 

Protected Attributes

Stack< XGraphicsState > FGraphicsStateStack = new Stack <XGraphicsState>()
 remember the rotation and transformation More...
 
float FLinesPerPage
 these values are set by PrintPage More...
 
eOrientation FOrientation
 todoComment More...
 
eMarginType FMarginType
 use printable area or default margins More...
 
Int32 FNumberOfPages
 todoComment More...
 
float FPageFooterSpace
 how much space is needed for the footer lines; footerspace = font.height number of lines More...
 
float FLeftMargin
 todoComment More...
 
float FTopMargin
 todoComment More...
 
float FRightMargin
 todoComment More...
 
float FBottomMargin
 todoComment More...
 
float FWidth
 todoComment More...
 
float FHeight
 todoComment More...
 
TPrinterLayout FPrinterLayout
 todoComment More...
 
TPrinterState FCurrentState = new TPrinterState()
 current state of printer More...
 
PrintAction FprintAction
 I can check whether I'm printing to a preview or a real printer. More...
 

Properties

System.Int32 CurrentPageNr [get, set]
 todoComment More...
 
System.Int32 CurrentDocumentNr [get, set]
 a document can consist of several pages; a document is one body element More...
 
System.Int32 NumberOfPages [get, set]
 this only has a valid value after the first rendering of the report More...
 
float CurrentYPos [get, set]
 todoComment More...
 
float CurrentXPos [get, set]
 todoComment More...
 
float AnchorXPos [get, set]
 other elements can be positioned relative to this position More...
 
float AnchorYPos [get, set]
 other elements can be positioned relative to this position More...
 
float LeftMargin [get]
 todoComment More...
 
float RightMargin [get]
 todoComment More...
 
eFont CurrentFont [get, set]
 todoComment More...
 
float CurrentLineHeight [get, set]
 1 is the normal height of the font, CurrentLineHeight is multiplied with the height of the font More...
 
float CurrentRelativeFontSize [get, set]
 the relative font size; 0 is default size More...
 
eAlignment CurrentAlignment [get, set]
 todoComment More...
 
ePrintingMode PrintingMode [get, set]
 this is about simulation or printing More...
 
float Width [get]
 todoComment More...
 
float PageFooterSpace [get]
 todoComment More...
 

Detailed Description

this printer uses PdfSharp to print to PDF.

Member Enumeration Documentation

◆ ePrinterBehaviour

we have some different behaviour when printing the columns of a report and when printing a form letter

Enumerator
eReport 

printing the columns of a report, we can make text fit

eFormLetter 

printing a form letter, we need to print everything, comma is not a whitespace

Constructor & Destructor Documentation

◆ TPdfPrinter()

Ict.Common.Printing.TPdfPrinter.TPdfPrinter ( ePrinterBehaviour  APrinterBehaviour)
inline

constructor

Member Function Documentation

◆ Cm()

override float Ict.Common.Printing.TGfxPrinter.Cm ( float  AValueInCm)
inlinevirtualinherited

Converts the given value in cm to the currently used measurement unit

Returns
void

Implements Ict.Common.Printing.TPrinter.

◆ Cm2Inch()

static float Ict.Common.Printing.TPrinter.Cm2Inch ( float  AValueInCm)
inlinestaticinherited

Converts the given value in cm to the equivalent value in inches

Returns
void

◆ CutTextToLength()

String Ict.Common.Printing.TGfxPrinter.CutTextToLength ( String  ATxt,
eFont  AFont,
float  AWidth 
)
inlineprotectedinherited

Cuts a given text so it will not extend the given width.

Parameters
ATxtThe text to cut
AFontThe font used
AWidthThe available length for the text in cm.
Returns
The maximum part of the text that will not extend the width.

◆ DrawBitmap() [1/2]

override void Ict.Common.Printing.TPdfPrinter.DrawBitmap ( string  APath,
float  AXPos,
float  AYPos 
)
inlinevirtual

draw a bitmap at the given position; the current position is moved

Parameters
APath
AXPos
AYPos

Reimplemented from Ict.Common.Printing.TGfxPrinter.

◆ DrawBitmap() [2/2]

override void Ict.Common.Printing.TPdfPrinter.DrawBitmap ( string  APath,
float  AXPos,
float  AYPos,
float  AWidth,
float  AHeight,
float  AWidthPercentage,
float  AHeightPercentage 
)
inlinevirtual

draw a bitmap at the given position; the current position is moved

Either Width or WidthPercentage should be unequals 0, but only one should have a value. Same applies to Height

Reimplemented from Ict.Common.Printing.TGfxPrinter.

◆ DrawLine() [1/2]

override Boolean Ict.Common.Printing.TPdfPrinter.DrawLine ( float  AXPos1,
float  AXPos2,
eLinePosition  ALinePosition,
eFont  AFont 
)
inlinevirtual

Draws a line, either above or below the current text line the font is required to get the height of the row

Parameters
AXPos1
AXPos2
ALinePosition
AFont
Returns

Reimplemented from Ict.Common.Printing.TGfxPrinter.

◆ DrawLine() [2/2]

override void Ict.Common.Printing.TPdfPrinter.DrawLine ( Int32  APenPixels,
float  AXPos1,
float  AYPos1,
float  AXPos2,
float  AYPos2 
)
inlinevirtual

Draws a line, at specified position

Reimplemented from Ict.Common.Printing.TGfxPrinter.

◆ DrawRectangle()

override void Ict.Common.Printing.TPdfPrinter.DrawRectangle ( Int32  APenPixels,
float  AXPos,
float  AYPos,
float  AWidth,
float  AHeight 
)
inlinevirtual

draw a rectangle

Parameters
APenPixels
AXPos
AYPos
AWidth
AHeight

Reimplemented from Ict.Common.Printing.TGfxPrinter.

◆ FinishSimulatePrinting()

void Ict.Common.Printing.TPrinter.FinishSimulatePrinting ( )
inlineinherited

finish the simulation of printing; the actual CurrentYPos is restored

Returns
void

◆ GetFittedText()

String Ict.Common.Printing.TGfxPrinter.GetFittedText ( String  ATxt,
eFont  AFont,
float  AWidth 
)
inlineprotectedinherited

Check if the text will fit into the given width. If yes, the text will be returned. If no, the text will be shortened and a "..." will be added to indicate that some text is missing.

Parameters
ATxtthe original text
AFontthe font
AWidththe space available for the text in cm
Returns
The input text. Either unmodified or shortened.

◆ GetTextLengthThatWillFit()

Int32 Ict.Common.Printing.TGfxPrinter.GetTextLengthThatWillFit ( String  ATxt,
eFont  AFont,
float  AWidth 
)
inlineprotectedinherited

word wrap text, return the number of characters that fit the line width; if the first word does not fit the space available, wrap the word in itself

Parameters
ATxt
AFont
AWidth
Returns
returns the length of the first word; this is needed if even the first word does not fit

◆ GetWidthString()

override float Ict.Common.Printing.TPdfPrinter.GetWidthString ( String  ATxt,
eFont  AFont 
)
inlinevirtual

prints into the current line, into the given column

Parameters
ATxt
AFont
Returns
Return the width of the string, if it was printed in one line, using the given Font

Reimplemented from Ict.Common.Printing.TGfxPrinter.

◆ HasMorePages()

override bool Ict.Common.Printing.TGfxPrinter.HasMorePages ( )
inlinevirtualinherited

more pages are coming

Returns

Implements Ict.Common.Printing.TPrinter.

◆ Inch()

float Ict.Common.Printing.TPrinter.Inch ( float  AValueInInch)
inlineinherited

Converts the given value in inch to the currently used measurement unit; uses Inch2Cm and Cm

Returns
void

◆ Inch2Cm()

static float Ict.Common.Printing.TPrinter.Inch2Cm ( float  AValueInInch)
inlinestaticinherited

Converts the given value in inches to the equivalent value in centimeters

Returns
void

◆ Init()

override void Ict.Common.Printing.TGfxPrinter.Init ( eOrientation  AOrientation,
TPrinterLayout  APrinterLayout,
eMarginType  AMarginType 
)
inlinevirtualinherited

todoComment

Reimplemented from Ict.Common.Printing.TPrinter.

◆ InsertDocument()

override void Ict.Common.Printing.TPdfPrinter.InsertDocument ( string  AFilename)
inlinevirtual

insert another pdf into the current PDF

Parameters
AFilename

Reimplemented from Ict.Common.Printing.TPrinter.

◆ LineFeed() [1/3]

override float Ict.Common.Printing.TPdfPrinter.LineFeed ( )
inlinevirtual

Line Feed; increases the current y position by the height of the biggest last used font

Returns
the new current line

Reimplemented from Ict.Common.Printing.TGfxPrinter.

◆ LineFeed() [2/3]

override float Ict.Common.Printing.TPdfPrinter.LineFeed ( eFont  AFont)
inlinevirtual

Line Feed; increases the current y position by the height of the given font

Returns
the new current line

Reimplemented from Ict.Common.Printing.TGfxPrinter.

◆ LineFeed() [3/3]

float Ict.Common.Printing.TPrinter.LineFeed ( float  height)
inlineinherited

Line Feed; increases the current y position by the given height

Returns
the new current line

◆ LineFeedToPageFooter()

override float Ict.Common.Printing.TPdfPrinter.LineFeedToPageFooter ( )
inlinevirtual

Jump to the position where the page footer starts. SetPageFooterSpace is used to define the space reserved for the footer.

Returns
void

Reimplemented from Ict.Common.Printing.TGfxPrinter.

◆ LineSpaceFeed()

override float Ict.Common.Printing.TPdfPrinter.LineSpaceFeed ( eFont  AFont)
inlinevirtual

Line Feed, but not full line; increases the current y position by half the height of the given font

Returns
the new current line

Reimplemented from Ict.Common.Printing.TGfxPrinter.

◆ LineUnFeed()

override float Ict.Common.Printing.TPdfPrinter.LineUnFeed ( eFont  AFont)
inlinevirtual

Reverse Line Feed; decreases the current y position by the height of the given font

Returns
the new current line

Reimplemented from Ict.Common.Printing.TGfxPrinter.

◆ PixelHorizontal()

override float Ict.Common.Printing.TGfxPrinter.PixelHorizontal ( float  AWidth)
inlinevirtualinherited

convert pixels to inches or other unit used for output

Parameters
AWidth
Returns

Implements Ict.Common.Printing.TPrinter.

◆ PixelVertical()

override float Ict.Common.Printing.TGfxPrinter.PixelVertical ( float  AHeight)
inlinevirtualinherited

convert pixels to inches or other unit used for output

Implements Ict.Common.Printing.TPrinter.

◆ PopCurrentState()

void Ict.Common.Printing.TPrinter.PopCurrentState ( )
inlineinherited

return to previous printer state; this is used for printing table cells

◆ PopCurrentStateApartFromYPosition()

void Ict.Common.Printing.TPrinter.PopCurrentStateApartFromYPosition ( )
inlineinherited

return to previous printer state; but keep the new y position (used eg. for printing the page header)

◆ PrintPage()

void Ict.Common.Printing.TPdfPrinter.PrintPage ( )
inlineprotected

print the page to PDF

◆ PrintString() [1/3]

override Boolean Ict.Common.Printing.TPdfPrinter.PrintString ( String  ATxt,
eFont  AFont,
eAlignment  AAlign 
)
inlinevirtual

prints into the current line, aligned x position

Reimplemented from Ict.Common.Printing.TGfxPrinter.

◆ PrintString() [2/3]

override Boolean Ict.Common.Printing.TPdfPrinter.PrintString ( String  ATxt,
eFont  AFont,
float  AXPos 
)
inlinevirtual

prints into the current line, absolute x position

Reimplemented from Ict.Common.Printing.TGfxPrinter.

◆ PrintString() [3/3]

override Boolean Ict.Common.Printing.TPdfPrinter.PrintString ( String  ATxt,
eFont  AFont,
float  AXPos,
float  AWidth,
eAlignment  AAlign 
)
inlinevirtual

prints into the current line, absolute x position with width and alignment

Returns
true if something was printed

Reimplemented from Ict.Common.Printing.TGfxPrinter.

◆ PrintStringAndFits()

override Boolean Ict.Common.Printing.TGfxPrinter.PrintStringAndFits ( String  ATxt,
eFont  AFont,
float  AXPos,
float  AWidth,
eAlignment  AAlign 
)
inlinevirtualinherited

This function uses the normal DrawString function to print into a given space. It will return whether the text did fit that space or not.

Parameters
ATxt
AFont
AXPos
AWidth
AAlign
Returns

Implements Ict.Common.Printing.TPrinter.

◆ PrintStringWrap()

override bool Ict.Common.Printing.TGfxPrinter.PrintStringWrap ( String  ATxt,
eFont  AFont,
float  AXPos,
float  AWidth,
eAlignment  AAlign 
)
inlinevirtualinherited

prints into the current line, absolute x position with width and alignment this method uses FCurrentXPos and FCurrentYPos to be able to continue a paragraph uses FCurrentXPos and FCurrentYPos to know where to start to print, and also sets valid values in those member variables

Returns
true if any text was printed

Reimplemented from Ict.Common.Printing.TPrinter.

◆ PrintTable()

virtual float Ict.Common.Printing.TPrinter.PrintTable ( float  AXPos,
float  AWidthAvailable,
List< TTableRowGfx rows,
out Int32  ARowsFittingOnPage 
)
inlinevirtualinherited

renders a table at the current FCurrentYPos does not support rowspan at the moment colspan might be implemented in the generation of the TTableRowGfx structure does not care about fitting on page etc.

Parameters
AXPosthe X position to start the table
AWidthAvailableAWidthAvailable
rows
ARowsFittingOnPagenumber of rows that fitted on the page
Returns
height of table

◆ PushCurrentState()

void Ict.Common.Printing.TPrinter.PushCurrentState ( )
inlineinherited

store the current printer state (font size etc)

◆ ResetStaticVariables()

static void Ict.Common.Printing.TPdfPrinter.ResetStaticVariables ( )
inlinestatic

reset the static variables for each Web Request call.

◆ RestoreState()

override void Ict.Common.Printing.TPdfPrinter.RestoreState ( )
inlinevirtual

restore the state

Reimplemented from Ict.Common.Printing.TPrinter.

◆ RotateAtTransform()

override void Ict.Common.Printing.TPdfPrinter.RotateAtTransform ( double  ADegrees,
double  XPos,
double  YPos 
)
inlinevirtual

rotate the following output by some degrees, at the given position

Reimplemented from Ict.Common.Printing.TPrinter.

◆ SavePDF() [1/2]

void Ict.Common.Printing.TPdfPrinter.SavePDF ( string  AFilename)
inline

store a pdf to file. will check for paper size using the PrinterLayout. By default A4 is chosen

Parameters
AFilename

◆ SavePDF() [2/2]

void Ict.Common.Printing.TPdfPrinter.SavePDF ( string  AFilename,
PaperKind  APaperKind,
Margins  AMargins,
float  AWidthInPoint,
float  AHeightInPoint 
)
inline

store a pdf to a file. will call PrintPage automatically

◆ SaveState()

override void Ict.Common.Printing.TPdfPrinter.SaveState ( )
inlinevirtual

save the state

Reimplemented from Ict.Common.Printing.TPrinter.

◆ SetHasMorePages()

override void Ict.Common.Printing.TGfxPrinter.SetHasMorePages ( bool  AHasMorePages)
inlinevirtualinherited

Tell the printer, that there are more pages coming

Returns
void

Implements Ict.Common.Printing.TPrinter.

◆ SetPageFooterSpace()

override void Ict.Common.Printing.TPdfPrinter.SetPageFooterSpace ( System.Int32  ANumberOfLines,
eFont  AFont 
)
inlinevirtual

Set the space that is required by the page footer. ValidYPos will consider this value.

Returns
void

Reimplemented from Ict.Common.Printing.TGfxPrinter.

◆ StartSimulatePrinting()

void Ict.Common.Printing.TPrinter.StartSimulatePrinting ( )
inlineinherited

start the simulation of printing; nothing is actually printed, but the CurrentYPos is increased

Returns
void

◆ UpdateBiggestLastUsedFont()

override bool Ict.Common.Printing.TPdfPrinter.UpdateBiggestLastUsedFont ( eFont  AFont)
inlineprotectedvirtual

update the biggest last used font for the next line feed

Parameters
AFont

Reimplemented from Ict.Common.Printing.TGfxPrinter.

◆ ValidXPos()

override Boolean Ict.Common.Printing.TGfxPrinter.ValidXPos ( float  APosition)
inlinevirtualinherited

Is the given position still on the page?

Returns
void

Implements Ict.Common.Printing.TPrinter.

◆ ValidYPos()

override Boolean Ict.Common.Printing.TGfxPrinter.ValidYPos ( )
inlinevirtualinherited

Is the current line still on the page?

Returns
void

Implements Ict.Common.Printing.TPrinter.

Member Data Documentation

◆ DEFAULTPRINTERRESOLUTION

const Int32 Ict.Common.Printing.TGfxPrinter.DEFAULTPRINTERRESOLUTION = 300
staticinherited

default printer resolution

◆ FBottomMargin

float Ict.Common.Printing.TPrinter.FBottomMargin
protectedinherited

todoComment

◆ FCurrentState

TPrinterState Ict.Common.Printing.TPrinter.FCurrentState = new TPrinterState()
protectedinherited

current state of printer

◆ FGraphicsStateStack

Stack<XGraphicsState> Ict.Common.Printing.TPdfPrinter.FGraphicsStateStack = new Stack <XGraphicsState>()
protected

remember the rotation and transformation

◆ FHeight

float Ict.Common.Printing.TPrinter.FHeight
protectedinherited

todoComment

◆ FLeftMargin

float Ict.Common.Printing.TPrinter.FLeftMargin
protectedinherited

todoComment

◆ FLinesPerPage

float Ict.Common.Printing.TGfxPrinter.FLinesPerPage
protectedinherited

these values are set by PrintPage

◆ FMarginType

eMarginType Ict.Common.Printing.TPrinter.FMarginType
protectedinherited

use printable area or default margins

◆ FNumberOfPages

Int32 Ict.Common.Printing.TPrinter.FNumberOfPages
protectedinherited

todoComment

◆ FOrientation

eOrientation Ict.Common.Printing.TPrinter.FOrientation
protectedinherited

todoComment

◆ FPageFooterSpace

float Ict.Common.Printing.TPrinter.FPageFooterSpace
protectedinherited

how much space is needed for the footer lines; footerspace = font.height number of lines

◆ FPageWidthAvailable

float Ict.Common.Printing.TGfxPrinter.FPageWidthAvailable
inherited

space available for printing

◆ FPageXPos

float Ict.Common.Printing.TGfxPrinter.FPageXPos
inherited

printing should be started at this position for each line

◆ FprintAction

PrintAction Ict.Common.Printing.TPrinter.FprintAction
protectedinherited

I can check whether I'm printing to a preview or a real printer.

◆ FPrinterBehaviour

ePrinterBehaviour Ict.Common.Printing.TGfxPrinter.FPrinterBehaviour = ePrinterBehaviour.eReport
inherited

we have some different behaviour when printing the columns of a report (can make text fit) and when printing a form letter

◆ FPrinterLayout

TPrinterLayout Ict.Common.Printing.TPrinter.FPrinterLayout
protectedinherited

todoComment

◆ FRightMargin

float Ict.Common.Printing.TPrinter.FRightMargin
protectedinherited

todoComment

◆ FTopMargin

float Ict.Common.Printing.TPrinter.FTopMargin
protectedinherited

todoComment

◆ FWidth

float Ict.Common.Printing.TPrinter.FWidth
protectedinherited

todoComment

◆ FXBarCodeFont

XFont Ict.Common.Printing.TPdfPrinter.FXBarCodeFont

for printing bar codes

◆ FXBiggestLastUsedFont

XFont Ict.Common.Printing.TPdfPrinter.FXBiggestLastUsedFont

todoComment

◆ FXDefaultBoldFont

XFont Ict.Common.Printing.TPdfPrinter.FXDefaultBoldFont

todoComment

◆ FXDefaultFont

XFont Ict.Common.Printing.TPdfPrinter.FXDefaultFont

todoComment

◆ FXHeadingFont

XFont Ict.Common.Printing.TPdfPrinter.FXHeadingFont

todoComment

◆ FXSmallPrintFont

XFont Ict.Common.Printing.TPdfPrinter.FXSmallPrintFont

todoComment

Property Documentation

◆ AnchorXPos

float Ict.Common.Printing.TPrinter.AnchorXPos
getsetinherited

other elements can be positioned relative to this position

◆ AnchorYPos

float Ict.Common.Printing.TPrinter.AnchorYPos
getsetinherited

other elements can be positioned relative to this position

◆ CurrentAlignment

eAlignment Ict.Common.Printing.TPrinter.CurrentAlignment
getsetinherited

todoComment

◆ CurrentDocumentNr

System.Int32 Ict.Common.Printing.TPrinter.CurrentDocumentNr
getsetinherited

a document can consist of several pages; a document is one body element

◆ CurrentFont

eFont Ict.Common.Printing.TPrinter.CurrentFont
getsetinherited

todoComment

◆ CurrentLineHeight

float Ict.Common.Printing.TPrinter.CurrentLineHeight
getsetinherited

1 is the normal height of the font, CurrentLineHeight is multiplied with the height of the font

◆ CurrentPageNr

System.Int32 Ict.Common.Printing.TPrinter.CurrentPageNr
getsetinherited

todoComment

◆ CurrentRelativeFontSize

float Ict.Common.Printing.TPrinter.CurrentRelativeFontSize
getsetinherited

the relative font size; 0 is default size

◆ CurrentXPos

float Ict.Common.Printing.TPrinter.CurrentXPos
getsetinherited

todoComment

◆ CurrentYPos

float Ict.Common.Printing.TPrinter.CurrentYPos
getsetinherited

todoComment

◆ LeftMargin

float Ict.Common.Printing.TPrinter.LeftMargin
getinherited

todoComment

◆ NumberOfPages

System.Int32 Ict.Common.Printing.TPrinter.NumberOfPages
getsetinherited

this only has a valid value after the first rendering of the report

◆ PageFooterSpace

float Ict.Common.Printing.TPrinter.PageFooterSpace
getinherited

todoComment

◆ PrintingMode

ePrintingMode Ict.Common.Printing.TPrinter.PrintingMode
getsetinherited

this is about simulation or printing

◆ RightMargin

float Ict.Common.Printing.TPrinter.RightMargin
getinherited

todoComment

◆ Width

float Ict.Common.Printing.TPrinter.Width
getinherited

todoComment


The documentation for this class was generated from the following file: