Construct_Object()
- Date
Today - Date
RptTodayshould use built in DF function CurrentDateTime()
- RptTotal : Array
- Boolean
AutoOutput_StateIf true, report is output upon completion. Either preview
or printer depending on output_device_mode
- Integer
Print_ColumnsWhen a new page is created (DFNew_Page) and the number
of columns is not passed, this is used.
- Boolean
AutoNew_Page_StateThis determines if a DFNew_Page should be executed when the
report starts. In some rare cases, you would not want this to
occur until a subheader
- Integer
Private.Output_Device_ModeOutput device (print or preview). Normally this is delegated to
the report view.
- Handle
phoWinPrintthe report engine to use.
- boolean
pbModalViewerJJT: For now this is for testing.
- boolean
pbMultiReports - boolean
pbFirstPagePrinted
- Boolean
DocumentStatus()
returns the current status of Winprint Document object. dsNotStarted, dsStarted, dsFinished
note that the status can reflect a status from a different report. The winprint object is global.
- Integer
iStatus
- Boolean
IsViewerActive()
- Boolean
bIsActive
- Boolean
IsPrinterValid()
- Boolean
ArePrintersInstalled()
Add_SubTotal(Integer iCounter Number nData)
All subtotal commands use the outer main report. This makes it easier to keep
track of these numbers
- Number
nValue - Integer
iObj
Clr_SubTotal(Integer iCounter)
Clr_AllSubTotals()
- Number
Sum_SubTotal(Integer iTotal)
- Number
nRetVal
- Number
SubTotal(Integer iTotal)
Return sub-total and clear accumulator
- Number
nRetVal
DFNew_Page(Integer Cols)
Note: Cols is optional. If no argument is passed it will use
the object's property Print_Columns (0 by default)
- Integer
PageNumber - Integer
Columns - Boolean
bFirstPagePrinted
Ending_Main_Report()
- Boolean
bCancel - Boolean
bMultiReports
EndMultiReport()
This must get called when you are running multiple reports (pbMultiReport).
Send this when the last report is complete.
EndWinPrintReport()
- Boolean
bAutoOutput - Integer
iStatus - Integer
eMode
- Integer
Setup_Report()
- Integer
iErr - Integer
iStatus - Integer
eMode - Boolean
bActiveViewer - Boolean
bChildReport - Boolean
bMultiReports - Boolean
bOk
Close_Output_Device()
Cancel RO behavior - there is no device to close
Initialize_Output_Device()
Cancel RO Behavior
- Integer
Output_Device_Mode()
- Integer
hoId - String
DevMode
Set(Integer DevMode)
ShowRuler()
displays a metric ruler in .5 increments. This can be
sent to make it easy to see how fields and labels should
be moved for alignment.
- Integer
i - Number
n
Update_Status(string sVal)
status panel related agumentations to handle the auto-previewer
- Integer
eMode
Start_Status()
- Integer
eMode - String
sTitle - String
sCaption
Resume_Status()
- Integer
eMode
End_Status()
- Integer
eMode
- Integer
Report_Interrupt()
- Integer
eStat - String
sMess - Boolean
bActiveViewer
- Integer
Test_KeyPressed()
- Boolean
bStop - Boolean
bError - Boolean
bActiveViewer - Integer
eMode
OnClosingView()
- Boolean
DFPrintSetupDialog()
Attempt to make this as intuitive as possible. You cannot invoke this when a
report is active. If a report is not finished, you cannot do this.
If a report is finsihed it may or may not have a viewer present.
If a viewer is not present, we will clear the exising report (making the assumption
that a modeless viewer was closed and the report will not be invoked again). If a viewer
is active, we will pass this through to the winprint object which will show an error
invoke printer setup dialog
- Integer
iStatus - Boolean
bActiveViewer - Boolean
bOk
DFPrintSetup()
It is better to use DFPrintSetupDialog which tells you if the dialog was canceled
invoke printer setup dialog
- Boolean
bOk
DFClearDoc()
clear document, remove viewer
DFEndDocument()
tell winprint that the report is complete
DFClosePreview()
close the previewer, does not clear the document
DFPrintDialog()
popup print job dialog
DFPrint()
print with printer dialog
DFPrintDoc()
print without printer dialog
DFPreviewWait()
invoke previewer in modal mode
DFPreviewNoWait()
invoke previwer in modeless mode
DFPreview()
invokde previewer based on pbModalViewer property
- Boolean
bModalViewer
PrintReport()
Print report to appropriate device (printer, preview) based
on output_device_mode
- Integer
eMode
DFSetPrinterPaper(integer ePaperType)
- integer
DFGetPrinterPaper()
ePaperType
- Integer
ePaperType
DFSetPrinterBin(integer eBinType)
- integer
DFGetPrinterBin()
eBinType
- Integer
eBinType
DFSetPrinterResolution(integer eResType)
- integer
DFGetPrinterResolution()
eResType
- Boolean
eResType
DFSetLandscape(boolean bIsLandscape)
- boolean
DFGetLandscape()
bIsLandscape
- Boolean
bIsLandscape
DFSetMetrics(integer eType)
- integer
DFGetMetrics()
- Integer
eType
DFSetPrintDlgInPreview(boolean bShowDialog)
- boolean
DFGetPrintDlgInPreview()
- Boolean
bShowDialog
DFSetEnablePrintFromPreview(boolean bEnablePrint)
- boolean
DFGetEnablePrintFromPreview()
- Boolean
bEnablePrint
DFSetMargins(number nLeft number nTop number nRight number nBottom)
DFSetTopBottom(number nTop number nBottom Boolean bAllPages)
DFSetDevice(string sPrinterName)
- string
DFGetCurrentDevice()
sPrinterName
- String
sPrinterName
DFSetUserDefinedPapersize(number nLength number nWidth)
- number
DFGetUserDefinedLength()
- Number
nSize
- number
DFGetUserDefinedWidth()
- Number
nSize
DFSetNumberOfCopies(integer iCopies)
DFPrinterBinFirstPage(integer eBinType)
DFClearPrinter()
- integer
DFGetDFColor(integer iRed integer iGreen integer iBlue)
- Integer
iWPColor
- integer
RGBToWPColor(integer iRgb)
- Integer
iWPColor