DBReport

From DBReport wiki
Jump to: navigation, search

Used to print or render reports.

 Properties
CacheInRecords ListBox Name
PictureQualityAllImagesPDF PrinterDialog PrinterSettings
RecordSet SearchHighlightColor UID


 Methods
Designer GetXML LoadXML
Page Parameter Print
PrintQuick Prop PropCount
RenderToPDF SaveXML SubReport
SubReportAdd SubReportDel SubReportsClear


 Shared Properties
BrandName Errors ErrorsCount
Register


 Shared Methods
DecryptString EncryptString PrintOnBackground
PrintOnBackground PrintOnBackgroundCurrentPageNumber Registered
RenderToPDFOnBackground RenderToPDFOnBackground RenderToPDFOnBackgroundCurrentPageNumber


 Constructors
Constructor(rpt As DBReport)
Constructor(f As FolderItem)
Constructor(f As FolderItem, rs As RecordSet)
Constructor(str As String)
Constructor(str As String, rs As RecordSet)

Class Constants

Name Type Values
Version String ie. 1.4.2226
ReportColumnsOrder Integer LeftToRightThenDown=1
DownThenLeftToRight=2
ReportUnits Integer Pixels=1
Milimeters=2
Inches=3

Examples

Modify report:

Dim rpt As New DBReport
 
Dim f as FolderItem= SpecialFolder.Documents.Child("DBReport1.xml")
rpt.LoadXML f
rpt.RecordSet= rs // rs RecordSet must be exist
rpt.Designer
rpt.SaveXML(f)

or

Dim rpt As New DBReport
 
rpt.LoadXML(StringVariable)
rpt.RecordSet= rs // rs RecordSet must be exist
rpt.Designer
StringVariable= rpt.GetXML()

Print Report:

Dim f as FolderItem= SpecialFolder.Documents.Child("DBReport1.xml")
 
Dim rpt As New DBReport(f, rs) // rs RecordSet must be exist
rpt.Print