PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

  • Configuring the preview
  • 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 print preview:
  • display a message regarding the resources of current computer.
  • until version 19: display (or not) each button found in the print preview. See Print preview for more details. By default, when printing a report created in the report editor, the following buttons are present:
  • Versions 20 and later
    from version 20: display or not the ribbon panes (as well as the buttons found). See Print preview for more details.
    New in version 20
    from version 20: display or not the ribbon panes (as well as the buttons found). See Print preview for more details.
    from version 20: display or not the ribbon panes (as well as the buttons found). See Print preview for more details.
Notes:
  • When printing a programmed report, all the print buttons are available.
  • by default, al the buttons for printing a report created with the report editor are available. iParameterPreview can only be used to configure the buttons defined as visible in the report editor.
  • Two additional buttons may appear if the application allows "Reports & Queries" (supplied with WINDEV) to be run.
    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 button in the preview
iParameterPreview(iButtonNone)
iPreview()
iPrintReport(RPT_MyReport)
// Display the printer buttons only
iParameterPreview(iButtonPrinter)
iPreview()
iPrintReport(RPT_MyReport)
// Display the Printer, PDF and WORD buttons
iParameterPreview(iButtonPrinter + iButtonPdf + iButtonWord)
iPreview()
iPrintReport(RPT_MyReport)
// Delete the Email buttons from the print preview
iParameterPreview(iButtonAll - iButtonEmail - iButtonEmailPdf)
iPreview()
iPrintReport(RPT_MyReport)
// Display the warning message every 2000 pages
iParameterPreview(iButtonAll, 2000)
// Print a report from the print preview
iPrintReport(RPT_MyReport)
Versions 23 and later
// Display the pane of miniatures
iParameterPreview(iPaneMiniatures, True)
// Print a report from the print preview
iPrintReport(RPT_MyReport)
New in version 23
// Display the pane of miniatures
iParameterPreview(iPaneMiniatures, True)
// Print a report from the print preview
iPrintReport(RPT_MyReport)
// Display the pane of miniatures
iParameterPreview(iPaneMiniatures, True)
// Print a report from the print preview
iPrintReport(RPT_MyReport)
Syntax

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

iParameterPreview(<Options> [, <Warning>])
<Options>: Integer constant (or combination of constants)
Buttons that will be displayed in the print preview:
iButtonAnnotation
  • Until version 19: The toolbar used to write annotations in the report is visible.
  • From version 20: The "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.
iButtonNone
  • Until version 19: No button or toolbar is displayed.
  • From version 20: Only the "Preview" pane of print preview is displayed. See "Preview" pane for more details.
iButtonReportCreation
  • Until version 19: The button used to create a report with "Reports and Queries" is visible.
Versions 15 and later
iButtonDuplicate
New in version 15
iButtonDuplicate
iButtonDuplicate
  • Until version 19: The button used to save a duplicate copy of current report is visible.
  • From version 20: The "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.
iButtonEmail
  • Until version 19: The button used to print the report in a new email is visible.
  • From version 20: The "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.
iButtonEmailPdf
  • Until version 19: The button used to print the report in a file linked to a new email is visible.
  • From version 20: The "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.
iButtonExcel
  • Until version 19: The button used to print the report in an Excel file is visible.
  • From version 20: The "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.
Versions 17 and later
iButtonWatermark
New in version 17
iButtonWatermark
iButtonWatermark
The button used to add and configure a text in watermark is visible.
iButtonHtmlThe button used to print the report in an HTML file is visible.
iButtonPrinterThe two buttons used to start the print are visible.
Versions 23 and later
iButtonSnapshot
New in version 23
iButtonSnapshot
iButtonSnapshot
The button used to take a snapshot of report (or report section) is visible.
iButtonReportModificationThe button used to modify the current report with "Reports and Queries" is visible.
Versions 18 and later
iButtonBlackAndWhite
New in version 18
iButtonBlackAndWhite
iButtonBlackAndWhite
The button used to print the document in black and white is visible.
iButtonPdfThe button used to print the report in a PDF file is visible.
Versions 15 and later
iButtonSearch
New in version 15
iButtonSearch
iButtonSearch
The toolbar used to perform a search in the report is visible.
Versions 18 and later
iButtonDuplex
New in version 18
iButtonDuplex
iButtonDuplex
The button used to print the document on both sides is visible.
Versions 18 and later
iButtonTextSelection
New in version 18
iButtonTextSelection
iButtonTextSelection
The button used to select a text is visible.
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.
Versions 23 and later

Displaying (or not) the pane of miniatures in the print preview Hide the details

iParameterPreview(<Options> , <Display>)
<Options>: Integer constant
Element to configure:
Versions 23 and later
iPaneMiniatures
New in version 23
iPaneMiniatures
iPaneMiniatures
Configure the display of panes for displaying miniatures.
<Display>: Boolean
  • True if the pane of miniatures must be displayed in the print preview,
  • False if the pane of miniatures must not be displayed.
By default, the pane of miniatures is displayed in the print preview.
New in version 23

Displaying (or not) the pane of miniatures in the print preview Hide the details

iParameterPreview(<Options> , <Display>)
<Options>: Integer constant
Element to configure:
Versions 23 and later
iPaneMiniatures
New in version 23
iPaneMiniatures
iPaneMiniatures
Configure the display of panes for displaying miniatures.
<Display>: Boolean
  • True if the pane of miniatures must be displayed in the print preview,
  • False if the pane of miniatures must not be displayed.
By default, the pane of miniatures is displayed in the print preview.

Displaying (or not) the pane of miniatures in the print preview Hide the details

iParameterPreview(<Options> , <Display>)
<Options>: Integer constant
Element to configure:
Versions 23 and later
iPaneMiniatures
New in version 23
iPaneMiniatures
iPaneMiniatures
Configure the display of panes for displaying miniatures.
<Display>: Boolean
  • True if the pane of miniatures must be displayed in the print preview,
  • False if the pane of miniatures must not be displayed.
By default, the pane of miniatures is displayed in the print preview.
Remarks

Configuring the preview

  • The configuration performed by iParameterPreview is effective until:
    • the next call to iReset
    • the next call to iParameterPreview.
  • To configure the print preview of all application reports, iParameterPreview must be used in the initialization code of project.
  • The buttons found in the preview can also be configured in the report editor ("Details" tab of report description). In this case, iParameterPreview 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.The buttons found in the preview can also be configured in the report editor ("GUI" tab of report description). In this case, iParameterPreview 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.
Notes:
  • If the print preview allows you to send an email, the email characteristics can be configured by iParameterExport.
  • Versions 23 and later
    The presence (or not) of miniature pane can be configured by programming only.
    New in version 23
    The presence (or not) of miniature pane can be configured by programming only.
    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 is displayed only when a report is printed.
If the user clicks "No" to avoid displaying the following pages, the preview remains opened on the pages that already displayed. In this case, the entire document is printed (or exported) from the print preview (and not only the pages displayed in the preview).

Configuring the different print modes

You have the ability to configure the options of the different print modes:
Components
WINDEVReports and Queries wd230prn.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment