PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
Allows you to configure the exports performed from the print preview:
  • 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")
// Previews the report
iPreview()
iPrintReport(RPT_YearlySales)
// Defines the name and directory of created files
iParameterExport(iExportDirectory, fExeDir() + [fSep] + DateSys())
iParameterExport(iExportFile, "MonthlyStats")
iParameterExport(iExportOption, ieDefault)
// Previews the report
iPreview()
iPrintReport(RPT_YearlySales)
Syntax
iParameterExport(<Option to Configure> , <Value to Assign>)
<Option to Configure>: Integer constant
Element to configure:
iExportEmailRecipientEmail addresses of recipients.
iExportEmailSenderEmail address of sender.
iExportEmailSubjectSubject of email.
iExportFileName of the generated file (without extension).
iExportOptionAdditional options regarding the generated files.
iExportDirectoryPath of the directory where the generated file must be created.
<Value to Assign>: Character string (with quotes)
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.
    ieConfirmOverwriteFileIf the file name was defined, the print preview asks for confirmation before overwriting the file.
    ieConfirmOpenFileIf the file opening was requested (ieOpenFile constant), the print preview asks for confirmation before opening the file.
    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.
Components
WINDEVReports and Queries wd230prn.dll
Minimum required version
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment