Enhanced Printing
From CometWiki
Windows Printer Mnemonics
Text and font functions
| Mnemonic | Description |
|---|---|
| <a href="getbkcolor.htm">(GetBkColor)</a> | Returns the current background color |
| <a href="getbkmode.htm">(GetBkMode)</a> | Returns the current background mode |
| <a href="getfontinfo.htm">(GetFontInfo = item-code)</a> | Returns font information |
| <a href="getfuncresult.htm">(GetFuncResult)</a> | Requests the 4-byte result of the last printer function |
| <a href="gettextalign.htm">(GetTextAlign)</a> | Returns the current text alignment mode |
| <a href="gettextcolor.htm">(GetTextColor)</a> | Returns the current text color |
| <a href="gettextextent.htm">(GetTextExtent); printable-text</a> | Measures the size (width and height) of the specified text |
| <a href="popfont.htm">(Pop Font)</a> | |
| <a href="pushfont.htm">(Push Font)</a> | |
| <a href="rectangle.htm">(Rectangle=left, top, right, bottom)</a> | Draws a rectangle |
| <a href="roundrect.htm">(RoundRect=left, top, right, bottom, corner-width, corner-height)</a> | Draws a rectangle with rounded corners |
| <a href="selectfont.htm">(SelectFont); log-font-data</a> | Selects the specified font |
| <a href="selectsysfont.htm">(SelectSysFont=font-number)</a> | Selects the specified SYSTEM font |
| <a href="setbkcolor.htm">(SetBkColor=red, green, blue)</a> | Sets the current background color |
| <a href="setbkmode.htm">(SetBkMode=mode)</a> | Sets the background mode |
| <a href="settextalign.htm">(SetTextAlign=flags)</a> | Sets the text alignment mode |
| <a href="settextcolor.htm">(SetTextColor=red, green, blue)</a> | Sets the current text color |
| <a href="textout.htm">(TextOut = X, Y); printable-text</a> | Prints the specified text at the specified location |
Graphics and drawing functions
| Mnemonic | Description |
|---|---|
| <a href="drawbitmap.htm">(Draw Bit Map=left, top, right, bottom, scaleX, scaleY, flags); filename</a> | Draws a bitmap graphic contained in the specified filename (.BMP/.JPG) at the specified
location, using the specified format codes and scaling factors |
| <a href="drawimage.htm">(Draw Image=left, top, right, bottom, scaleX, scaleY, flags, filename)</a> | Draws a bitmap graphic contained in the specified filename (.BMP/.JPG) at the specified
location, using the specified format codes and scaling factors |
| <a href="drawtext.htm">(Draw Text=left, top, right, bottom, flags); printable-text</a> | Prints the specified text into the rectangle at the specified location,
using the specified format codes |
| <a href="ellipse.htm">(Ellipse=left, top, right, bottom)</a> | Draws an ellipse |
| <a href="lineto.htm">(Line To = X, Y)</a> | Draws a line using the currently selected pen from the current
location pointer to the location specified |
| <a href="moveto.htm">(Move To = X, Y)</a> | Moves the current location pointer to the specified location |
| <a href="selecthatchbrush.htm">(SelectHatchBrush=style, red, green, blue)</a> | Selects the hatched brush |
| <a href="selectpen.htm">(SelectPen=style, width, red, green, blue)</a> | Selects the specified pen |
| <a href="selectsolidbrush.htm">(SelectSolidBrush=red, green, blue)</a> | Selects the solid brush |
Printer control functions
| Mnemonic | Description |
|---|---|
| <a href="getpageinfo.htm">(GetPageInfo = item-code)</a> | Returns page information |
| <a href="setorientation.htm">(SetOrientation=mode)</a> | Sets the paper orientation |
| <a href="setpapersize.htm">(SetPaperSize)</a> | Sets the paper size |
| <a href="setprinterinfo.htm">(SetPrinterInfo)</a> | Sets printer information |
| <a href="linespacing.htm">(LineSpacing=LinesPerInch)</a> | Overrides the default font-based line spacing to the desired lines-per-inch |
| <a href="autocron.htm">(AutoCrOn)</a> | Turns on extra CR/LF added by CosP to the end of each line not followed by (TR). |
| <a href="autocroff.htm">(AutoCrOff)</a> | Turns off extra CR/LF added by CosP to the end of each line not followed by (TR). |