Commands
Previous Top Next


The detailed list To [print] in demand at Winprint is not necessary because it is implicit!
 
{|| <condition<}
 
Execute the single line if condition .t.
 
Ex.
{||(LAST_pag=.T.)} (eline-1) 2 (eline-1) m->maxcol LINE

Now DEFINE FONT is supported but not necessary
  
IF (<Condition>)
 
Execute the line if condition .t.   ( ) are required!
 
Ex.
IF (LAST_pag=.T.)
   (eline-1) 2 (eline-1) m->maxcol LINE
Else
   (eline-1) 2 SAY [BYE BYE] FONT ARIAL SIZE 8
Endif
ElseIf
 
not supported

All Hbprinter colors are supported but RGB definitions needs double bracket Ex. {255,0,124}
DEBUG_ON
 
Activate a minidebugger
DEBUG_OFF
 
Deactivate a minidebugger
SET DEBUG
 
 
 
LINE
Activate a minidebugger (Currency line by line)
 
OFF
Deactivate debugger
 
STEP
Activate a minidebugger (Evaluates each command line)


ADDLINE Increase the current line print

SUBLINE Decrease the current line print

  
SET SPLASH TO
 
Show  or hide the splash window.
 
Ex.
Set splash to [...Wait...] 
Set splash to 
Will show the splash ...Wailt...
Disable the splash window

SET DUPLEX duplex enable modes

SET QUALITY
Print qualities

SET COLORMODE colormode

SET JOB NAME [YourFilename]  IMPORTANT: REQUIRED FOR PDFPRINT

Example :SET JOBNAME <var > as  SET JOBNAME [Fantasy Print demo]

is equivalent to (Hbprn:docname:="Fantasy Print demo")  for HBPRN DRIVER.

SET PREVIEW <var> If <var> is different from OFF or .F. or 0,F it empowers its preview

SET CLOSEPREVIEW <var> If <var> is different from OFF or .F. or 0,F close preview after print

START DOC

START PAGE

END PAGE

END DOC

Sets the name of Document listed in Print spooler as  "Fantasy Print demo"

ENABLE THUMBNAILS

SET THUMBNAILS <var> If <var> is different from OFF or .F. or 0,F it empowers it

SET PREVIEW RECT <row> <col> <row2> <col2>

SET PREVIEW SCALE <scale>

SET PAGE [ORIENTATION <orient>] [PAPERSIZE <psize>] [FONT <cfont>]

SET ORIENTATION <var> If <var> is different from  "LAND"=Lanscape otherwise=Portrait

SET PAPERSIZE <
Papersize>

SET USER PAPERSIZE WIDTH  <width> HEIGHT  <height>

SET BIN
BIN SELECTION

SET TEXTCOLOR <color>

GET TEXTCOLOR [TO] <clr> where<clr>must be an existing variable

SET BACKCOLOR <
color>

GET BACKCOLOR [TO] <clr> where<clr>must be an existing variable

SET BKMODE <mode> where mode = TRANSPARENT,OPAQUE

GET BKMODE [TO] <mode>

SET PRINT MARGINS [TOP <lm>] [LEFT <rm>]

DEFINE BRUSH <cbrush> [STYLE <
style>] [COLOR <color>] [HATCH hatch modes ]
Every option has PRECISE value checkable in the appendix A and it can be
in a different order from the presented one.

CHANGE BRUSH <cbrush> [STYLE <
style>] [COLOR <color>] [HATCH hatch modes ]
Every option has PRECISE value checkable in the appendix A and it can be
in a different order from the presented one.

SELECT BRUSH
Brush

DEFINE PEN <cpen> [STYLE <style>] [WIDTH <width>] [COLOR <color>]
Every option has PRECISE value checkable in the appendix A and it can be
in a different order from the presented one.

CHANGE PEN <cpen> [STYLE <style>] [WIDTH <width>] [COLOR <
color>]
Every option has PRECISE value checkable in the appendix A and it can be
in a different order from the presented one.

SELECT PEN <cpen>

DEFINE FONT <cfont> [NAME <cface>] [SIZE <size>] [WIDTH <width>] [ANGLE <angle>]

CHANGE FONT <cfont> [NAME <cface>] [SIZE <size>] [WIDTH <width>] [ANGLE <angle>]
[BOLD] [NOBOLD] [ITALIC] [NOITALIC] [UNDERLINE] [NOUNDERLINE>]
[STRIKEOUT] [NOSTRIKEOUT]

SELECT FONT <cfont>

SET CHARSET <charset>

<row> <col> <row2> <col2> DRAW TEXT <txt> [STYLE <style>] [FONT <cfont>]

DEFINE IMAGELIST <cimglist> PICTURE <cpicture> [ICONCOUNT <nicons>]

<row>,<col>,<row2>,<col2> DRAW IMAGELIST <cimglist> ICON <nicon> [NORMAL] [BACKGROUND <color>]

<row>,<col>,<row2>,<col2> DRAW IMAGELIST <cimglist> ICON <nicon> BLEND25 [BACKGROUND <color>]

<row>,<col>,<row2>,<col2> DRAW IMAGELIST <cimglist> ICON <nicon> BLEND50 [BACKGROUND <color>]

<row>,<col>,<row2>,<col2> DRAW IMAGELIST <cimglist> ICON <nicon> MASK [BACKGROUND <color>]

<row> <col> TEXTOUT <txt> [FONT <cfont>]

<row> <col> SAY <txt> [FONT <cfont>] [ALIGN <align>] [COLOR <
color>]

(The position of the options is not binding )

Ie. <NLINE 15 SAY Field->code FONT AB8 align right COLOR [0,255,0]>

it obtains the same result of :
<NLINE 15 SAY Field->code
align right FONT AB8 COLOR [0,255,0]>

<row> <col> BARCODE  <txt> TYPE <type> HEIGHT <h> WIDTH <w> [SUBTITLE] [INTERNAL] [FLAG <flag>]

<row> <col> <row2> <col2> RECTANGLE [PEN <cpen>] [BRUSH <cbrush>]

<row> <col> <row2> <col2> FILLRECT [BRUSH <cbrush>]

<row> <col> <row2> <col2> ROUNDRECT [ROUNDR <tor>] [ROUNDC <toc>] [PEN <cpen>] [BRUSH <cbrush>]

<row> <col> <row2> <col2> FRAMERECT [BRUSH <cbrush>]

<row> <col> <row2> <col2> INVERTRECT

<row> <col> <row2> <col2> ELLIPSE [PEN <cpen>] [BRUSH <cbrush>]

<row> <col> <row2> <col2> ARC RADIAL1 <row3> <col3> RADIAL2 <row4> <col4> [PEN <cpen>]

<row> <col> ARCTO RADIAL1 <row3> <col3> RADIAL2 <row4> <col4> [PEN <cpen>]

<row> <col> <row2> <col2> CHORD RADIAL1 <row3> <col3> RADIAL2 <row4> <col4> [PEN <cpen>] [BRUSH <cbrush>]

<row> <col> <row2> <col2> PIE RADIAL1 <row3>,<col3> RADIAL2 <row4> <col4> [PEN <cpen>] [BRUSH <cbrush>]

POLYGON <apoints> [PEN <cpen>] [BRUSH <cbrush>] [STYLE <style>]

POLYBEZIER <aPoints> [PEN <cpen>]

POLYBEZIERTO <aPoints> [PEN <cpen>]

SET UNITS <var> where var= [ROWCOL],MM,INCHES,PIXEL

 FOR PDF OUTPUT SET UNITS MM IS REQUIRED!

DEFINE RECT REGION <creg> AT <row> <col> <row2> <col2>

DEFINE POLYGON REGION <creg> VERTEX <apoints> [STYLE <style>]

DEFINE ELLIPTIC REGION <creg> AT <row> <col> <row2> <col2>

DEFINE ROUNDRECT REGION <creg> AT <row> <col> <row2> <col2> ELLIPSE <ewidth> <eheight>

COMBINE REGIONS <creg1> <creg2> TO <creg> [STYLE <style>]

SELECT CLIP REGION <creg>

DELETE CLIP REGION

SET POLYFILL <var> where var is = [MODE <
polyfill>]

GET POLYFILL MODE TO <mode>

SET VIEWPORTORG <row> <col>

GET VIEWPORTORG TO <aviewport>

SET RGB <red> <green> <blue> TO <nrgb>

SET TEXTCHAR EXTRA <col>

GET TEXTCHAR EXTRA TO <col>

SET TEXT JUSTIFICATION <col>

GET TEXT JUSTIFICATION TO <col>

SET TEXT ALIGN <style> dove STYLE = [TA_]LEFT, [TA_]RIGHT, [TA_]CENTER

GET TEXT ALIGN TO <style>

<row> <col> PICTURE <cpic> SIZE <row2> <col2> [EXTEND <row3> <col3>]

<row> <col> <row2> <col2> LINE [PEN <cpen>]

<row> <col> LINETO [PEN <cpen>]

GET TEXT EXTENT <txt> [FONT <cfont>] TO <asize>


Continued on page Functions and commands