PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Allowing the user to define the number of report copies
  • Limits
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
NbCopy (Property)
In french: NbCopie
The Property NbCopie makes it possible to know and modify the number of copies to be printed of an report.
WINDEVWINDEV Mobile Remarks:
  • The report viewer allows the end user to directly configure the number of copies to print.
  • This property operates during a print performed on a printer only.
  • If a number of copies is specified by the user (iParameter function or iParameterReport function) before starting to print report, this number of copies will take precedence over the number of copies specified with Property NbCopie.
Versions 18 and later
iPhone/iPad This property is now available for reports in iPhone/iPad applications.
New in version 18
iPhone/iPad This property is now available for reports in iPhone/iPad applications.
iPhone/iPad This property is now available for reports in iPhone/iPad applications.
Versions 21 and later
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Example
// Print 10 copies of the "RPT_Customer" report
RPT_Customer.NbCopy = 10
Syntax

Finding out the number of identical copies for a report Hide the details

<Result> = <Report used>.NbCopy
<Result>: Integer
Number of copies to print.
<Report used>: Report name
Name of report to use.

Modifying the number of identical copies for a report Hide the details

<Report used>.NbCopy = <Number of copies>
<Report used>: Report name
Name of report to use.
<Number of copies>: Integer
Number of copies to print.
Remarks

Allowing the user to define the number of report copies

As the Property NbCopy can only be used in the report code, it is necessary to pass the number of copies in parameter to the report when printing.
For example:
  1. Code used to print the report.
    iPrintReport(RPT_MyReport, 3)
  2. Opening code of report.
    PROCEDURE RPT_MyReport(nNbCopies)
    RPT_MyReport.NbCopy = nNbCopies

Limits

  • Property NbCopy applies only to reports (not to the fields or blocks of an report).
  • This property is taken into account when the print is performed on a printer.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment