PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
New WINDEV 25 feature!
  • Configuring the report viewer
  • Reports not created in the report editor
  • Warning message (syntax 1)
  • Configuring the different print modes
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Configures the report viewer:
  • display a message regarding the resources of current computer.
  • display or not the ribbon panes (as well as the buttons found). For more details, see Report viewer.
    Ribbon
  • the export parameters in the mini-preview window.
Remarks:
  • When printing a programmed report, all the print buttons are available in the report viewer.
  • By default, all the buttons for printing a report created with the report editor are available. iParameterViewer can only be used to configure the buttons defined as visible in the report editor.
  • Two additional buttons may appear in the report viewer if the application allows running "Reports & Queries" (supplied with WINDEV).
    These buttons are respectively used to modify the current report and to create a new report with "Reports & Queries". These buttons are displayed only:
    • If the project allows "Reports and Queries" to be run ("Charter" tab of project description).
    • If the report can be modified by "Reports and Queries" ("Details" tab of report description).
Example
// No buttons in the report viewer
iParameterViewer(iButtonNone)
iPreview()
iPrintReport(RPT_MyReport)
// Display the printer buttons only
iParameterViewer(iButtonPrinter)
iPreview()
iPrintReport(RPT_MyReport)
// Display Printer, PDF and WORD buttons in the report viewer
iParameterViewer(iButtonPrinter + iButtonPdf + iButtonWord)
iPreview()
iPrintReport(RPT_MyReport)
// Delete Email buttons on report viewer
iParameterPreview(iButtonAll - iButtonEmail - iButtonEmailPdf)
iPreview()
iPrintReport(RPT_MyReport)
// Display the warning message every 2000 pages
iParameterViewer(iButtonAll, 2000)
// Print a report in the report viewer
iPrintReport(RPT_MyReport)
Versions 23 and later
// Display pane of miniatures in the report viewer
iParameterViewer(iPaneMiniatures, True)
// Print a report in the report viewer
iPrintReport(RPT_MyReport)
New in version 23
// Display pane of miniatures in the report viewer
iParameterViewer(iPaneMiniatures, True)
// Print a report in the report viewer
iPrintReport(RPT_MyReport)
// Display pane of miniatures in the report viewer
iParameterViewer(iPaneMiniatures, True)
// Print a report in the report viewer
iPrintReport(RPT_MyReport)
Syntax

Displaying (or not) the different options in the toolbar of print preview Hide the details

iParameterViewer(<Options> [, <Warning>])
<Options>: Integer constant (or combination of constants)
Buttons that will be displayed in the report viewer:
iButtonAnnotationThe "Annotations" button is available in the "Preview" pane. The "Annotate" pane used to write annotations in the report is visible. See "Annotate" pane for more details.
This constant is not taken into account in the mini-preview.
iButtonNoneOnly the "Preview" pane of the report viewer is displayed. See "Preview" pane for more details.
iButtonReportCreationThe button used to create a report with "Reports and Queries" is visible.
iButtonDuplicateThe "Export" pane is visible. The button used to save a duplicate copy of current report is displayed in the "Export" pane. See "Export" pane for more details.
This constant is not taken into account in the mini-preview.
iButtonEmailThe "Export" pane is visible. The button used to create an email with the content of integrated report is displayed in the "Export" pane. See "Export" pane for more details.
iButtonEmailPdfThe "Export" pane is visible. The button used to create an email with attached PDF is displayed in the "Export" pane. See "Export" pane for more details.
iButtonExcelThe "Export" pane is visible. The button used to create an Excel file from the current print is displayed in the "Export" pane. See "Export" pane for more details.
iButtonWatermarkThe button used to add and configure a text in watermark is visible.
This constant is not taken into account in the mini-preview.
iButtonHtmlThe button used to print the report in an HTML file is visible.
iButtonPrinterThe two buttons used to start the print are visible.
This constant is not taken into account in the mini-preview.
iButtonSnapshotThe button used to take a snapshot of report (or report section) is visible.
This constant is not taken into account in the mini-preview.
iButtonReportModificationThe button used to modify the current report with "Reports and Queries" is visible.
This constant is not taken into account in the mini-preview.
iButtonBlackAndWhiteThe button used to print the document in black and white is visible.
This constant is not taken into account in the mini-preview.
iButtonPdfThe button used to print the report in a PDF file is visible.
iButtonSearchThe toolbar used to perform a search in the report is visible.
This constant is not taken into account in the mini-preview.
iButtonDuplexThe button used to print the document on both sides is visible.
This constant is not taken into account in the mini-preview.
iButtonTextSelectionThe button used to select a text is visible.
This constant is not taken into account in the mini-preview.
iButtonAllAll the buttons and toolbars are visible.
iButtonWordThe button used to print the report in a RTF file is visible.
iButtonXmlThe button used to print the report in an XML file is visible.
<Warning>: Optional integer
Number of pages from which a warning message is displayed. This message informs the user that the memory resources of current computer may become insufficient if the remaining pages are displayed.
This parameter is set to 1000 by default.
The message will never be displayed if this parameter is set to 0.

Configure the report viewer options Hide the details

iParameterViewer(<Options> , <Display>)
<Options>: Integer constant
Element to configure:
iStorePaneRibbonAllows you to store the ribbon pane displayed by the report viewer.
By default, the ribbon pane is not stored and the preview is opened on the "Print" pane.
iPaneMiniaturesConfigure the display of panes for displaying miniatures.
<Display>: Boolean
  • True if the pane of miniatures must be displayed in the report viewer,
  • False if the pane of miniatures must not be displayed.
By default, the pane of miniatures is displayed in the report viewer.
Remarks

Configuring the report viewer

  • The configuration defined by iParameterViewer is effective until:
    • the next call to iReset
    • the next call to iParameterViewer.
  • To configure the report viewer of all application reports, iParameterViewer must be used in the project initialization code.
  • The buttons found in the preview can also be configured in the report editor ("GUI" tab of report description). In this case, iParameterViewer called before printing the report is used to hide the additional buttons. The buttons defined as invisible in the report always remain invisible, no matter what happens.
Remarks:
  • If the report viewer allows you to send emails, the email characteristics can be configured using iParameterExport.
  • The presence (or not) of miniature pane can be configured by programming only.

Reports not created in the report editor

When printing programmed reports (not created in the report editor), all the buttons found in the button bar are visible.

Warning message (syntax 1)

The warning message appears only when a report is printed.
If the user clicks "No" to prevent the following pages from being displayed, the report viewer remains open on the pages that are already displayed. In this case, the entire document is printed or exported (and not only the pages displayed in the report viewer).

Configuring the different print modes

You have the ability to configure the options of the different print modes:
Component : wd250prn.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment