Vouch32 ActiveX

32 ActiveX Server

 

Object Vouch32PrintServer()
   
Properties The following properties can be set/retrieved for Vouch32..Server()
 
ncPrinter  
cDocTitle  
nOrientation  
nCopies  
lPreview  
cDftFont  
nDftSize  
nDftWidth  
nZoom  
nPrnQuality  
nPaperLength  
nPaperWidth  
nDuplex  
lMono  
nPaperSource  
nPrintDlg  
lPrnDlg  
   
Methods The following methods are supported by Vouch32..Server()
 

BeginDoc( ncPrinter, cDocTitle, nOrientatin, nCopies, lPreview, cDftFont, nDftSize, nDftWidth, nZoom, nPrnQuality, nPaperLength, nPaperWidth, nDuples, lMono, nPaperSource, nPrintDlg, lPrnDlg )

 
   
StartDoc()  
NewPage()  
EndDoc()  
   
TextOut( nRow, nCol, xValue, cPic, nAlign, cFont, nStyle, nSize, nTextColor, nBackColor, nAngle, nCharSet )  
TextBox( nRow, nCol, nRowTo, nColTo, cText, nAlign, cFont, nStyle, nSize, nTextColor, nFillColor, nThickOutline, nCharSet )  
DrawLine( nRow, nCol, nRowTo, nColTo, nThick, nColor, nStyle )  
DrawFrame( nRow, nCol, nRowTo, nColTo, nThick, nBorderColor, nFillColor, nPattern, nRoundR, nRoundC )  
DrawEllipse( nRow, nCol, nRowTo, nColTo, nThick, nBorderColor, nFillColor, nPattern )  
DrawBitmap( nRow, nCol, nRowTo, nColTo, cBmpFile, nTransColor )  
DrawPicture( nRow, nCol, nRowTo, nColTo, cPictureFile )  
DrawMetaFile( nRow, nCol, nRowTo, nColTo, cMetaFile )  
DrawBarCode( nRow, nCol, cCode, nHeight, nThick, lPrintCode, nType, nAngle, nColor )  
DrawGraph( nRow, nCol, nRowTo, nColTo, aData, aLabels, aLegends, aColors, nType, cTitle, cTitleY, xTitle, cBitmap, l3d, lSpace, lStacked, lGridX, lGridY, lLegends, lXLabels, lYLabels, lLines, lData, nLeft, nTop, nWidth, nHeight, nBgColor )  
DrawTable( nTop, nLeft, nRowsToOccupy, nColsToOccupy, aRowsDetail, aColsDetail, nBorderThickness, nBorderColor, nLineStyle, nFillColor, nPattern )  
DrawGrid( nTop, nLeft, nRowsToOcuupy, nColsToOccupy, aData, aColAttribs, aHeadings, aLinesAttribs, aColColors, aRowColors )  
DrawShadedRect( nRow, nCol, nRowTo, nColTo, nVertOrHorz, aVertA, aVertB )  
   
SetUnit( nUnit )  
SetRowCol( nRows, nCols )  
SetFont( cFont, nStyle, nPointSize, nFontColor, nBackColor, nCharSet )  
SetFill( nColor, nPattern )  
SetBorder( nThick, nColor )  
SetJustify( nJustify )  
SetDuplex( nNewDuplex )  
SetBin( nPaperSource )  
SetPrnQuality( nPrnQuality )  
SetMonoPrint( lMonoYes )  
SetPageSize( nLength, nWidth )  
   
Usage Local oServer, oObj

oServer := CreateObject( 'Vouch32.Vouch.1' )
oObj := oServer:Vouch32PrintServer()

oObj:nPrinter := 'FinePrint'
oObj:cDocTitle := 'My First Document'
oObj:nOrient := V32_PORTRAIT
oObj:lPreview := TRUE
oObj:nZoom := 1.4

oObj:Create()
if oObj:lInitialized
   oObj:TextOut( 10,10, 'Vouch32X', , , 'Ariel', , 72 )
   oObj:EndDoc()
endif
oObj:Destroy()  

   
Output
 
   

Www

http://www.vouch32.com   

Support

http://www.vouch.ws/Vouch32 

MailTo: pritpal@vouchcac.com