ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Print functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Allows you to configure the exports performed from the report viewer:
  • parameters for sending emails.
  • parameters for creating the different files.
Example
// Defines the email address and message topic for the export
iParameterExport(iExportEmailRecipient, "Wam@CrazyMail.com; Celia.Wat@ZMail.fr")
iParameterExport(iExportEmailSender, "Itsme@Berrymail.com")
iParameterExport(iExportEmailSubject, "Result of yearly sales")
// Open the report viewer
iDestination(iViewer)
iPrintReport(RPT_YearlySales)
// Defines the name and directory of created files
iParameterExport(iExportDirectory, fExeDir() + [fSep] + DateSys())
iParameterExport(iExportFile, "MonthlyStats")
iParameterExport(iExportOption, ieDefault)
// Open the report viewer
iDestination(iViewer)
iPrintReport(RPT_YearlySales)
Syntax
iParameterExport(<Option to configure> , <Value to assign>)
<Option to configure>: Integer constant
Element to configure:
iExportDirectoryPath of the directory where the generated file must be created.
iExportEmailRecipientEmail addresses of recipients.
iExportEmailSenderSender email address.
iExportEmailSubjectEmail subject.
iExportFileName of the generated file (without extension).
iExportOptionAdditional options regarding the generated files.
<Value to assign>: Character string
Value that must be assigned to the specified option.
  • To specify several recipients, the email addresses must be separated by ";".
  • For the additional options, the values that can be used are as follows (these constants can be combined):
    ieConfirmNoneNo confirmation is requested.
    ieConfirmOpenFileIf the file opening was requested (ieOpenFile constant), the report viewer requests a confirmation before opening the file.
    ieConfirmOverwriteFileIf the file name has been defined, the report viewer requests a confirmation before the file is overwritten.
    ieDefaultCombination of constants used by default: ieOpenFile + ieConfirmationOpenFile + ieConfirmationOverwriteFile
    ieOpenFileOpens the created file in the associated application.
Remarks
The setting remains active until:
  • the application is closed,
  • the next call to iReset,
  • the next call to iParameterExport.
Business / UI classification: Business Logic
Component: wd300prn.dll
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help