Simple Reporting
|
Purpose: |
Print all records matching current search query (see dbpQuery). If no query is active, the entire table will be printed. The report is printed in a tabular format optionally using the color and font settings applied to the current table grid. Custom headers and footers for the report may be created using dbpListAddHeader and dbpListAddFooter. The report may also be sorted by calling dbpSort prior to printing. |
||||||||||||||||
|
Category: |
Simple Reporting |
||||||||||||||||
|
Syntax: |
dbpListPrint "database id" "table" "properties" database id The name assigned to the database. table The name of the table to be printed. properties This is a compound parameter and can contain any combination of the following items:
Separate multiple items in a compound variable with semicolons (;). Because of the large number of options, it is recommended that you use the wizard provided for the dbpListPrint Action. |
||||||||||||||||
|
Example: |
dbpListPrint "AddrBook" "Contacts" "PrintDialog=Yes;Orientation=Landscape;GridLines=Yes;ColumnTitles=Yes; RecordNumbers=Yes;AutoWidth=Yes;UseGridAttributes=Yes;LeftMargin=0.25in; RightMargin=0.25in;TopMargin=0.5in;BottomMargin=0.5in" |
||||||||||||||||
|
SQL Equivalent: |
N/A |
|
Purpose: |
Add a header to appear at the top of a printed list report. You may call this action more than once to create multiple headers. After specifying headers and footers, use dbpListPrint to actually send the report to the printer. You can use dbpListClearHeadersAndFooters to remove headers and footers. |
||||||||||||||||
|
Category: |
Simple Reporting |
||||||||||||||||
|
Syntax: |
dbpListAddHeader "database id" "table" "line" "text" "properties" database id The name assigned to the database. table The name of the table. line The line number from the top of the page where the header will appear. Subsequent headers (lines 2, 3, etc.) will be printed below the first header (line 1). text The text that you want to appear in the header. You may use any combination of text, VisualNEO for Windows variables and the following special codes:
properties This is a compound parameter and can contain any combination of the following items:
Separate multiple items in a compound variable with semicolons (;). |
||||||||||||||||
|
Example: |
The following adds a left and right header to the top of a report: dbpListAddHeader "AddrBook" "Contacts" "1" "Address Book" "Alignment=Left;Font=Arial,12,Bold,ANSI_CHARSET;FontColor=Black" dbpListAddHeader "AddrBook" "Contacts" "1" "Page &p of &n" "Alignment=Right;Font=Arial,10,Normal,ANSI_CHARSET;FontColor=Black"
|
||||||||||||||||
|
SQL Equivalent: |
N/A |
|
Purpose: |
Add a footer to appear at the bottom of a printed list report. You may call this action more than once to create multiple footers. After specifying headers and footers, use dbpListPrint to actually send the report to the printer. You can use dbpListClearHeadersAndFooters to remove headers and footers. |
||||||||||||||||
|
Category: |
Simple Reporting |
||||||||||||||||
|
Syntax: |
dbpListAddFooter "database id" "table" "line" "text" "properties" database id The name assigned to the database. table The name of the table. line The line number from the bottom of the page where the footer will appear. Subsequent footers (lines 2, 3, etc.) will be printed below the first footer (line 1). text The text that you want to appear in the header. You may use any combination of text, VisualNEO for Windows variables and the following special codes:
properties This is a compound parameter and can contain any combination of the following items:
Separate multiple items in a compound variable with semicolons (;). |
||||||||||||||||
|
Example: |
dbpListAddFooter "AddrBook" "Contacts" "1" "Page &p of &n" "Alignment=Center;Font=Arial,9,Normal,ANSI_CHARSET;FontColor=Black" |
||||||||||||||||
|
SQL Equivalent: |
N/A |
|
Purpose: |
Remove headers and footers previously created using dbpListAddHeader and dbpListAddFooter. |
|
Category: |
Simple Reporting |
|
Syntax: |
dbpListClearHeadersAndFooters "database id" "table" database id The name assigned to the database. table The name of the table. |
|
Example: |
dbpListClearHeadersAndFooters "AddrBook" "Contacts" |
|
SQL Equivalent: |
N/A |
