PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • 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
..NbCopy is used to find out and modify the number of report copies that must be printed.
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 name>..NbCopy
<Result>: Integer
Number of copies to print.
<Report name>: Character string (with or without quotes)
Name of report to use.

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

<Report name>..NbCopy = <Number of copies>
<Report name>: Character string (with or without quotes)
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

..NbCopy can only be used in the report code ; therefore, the number of copies must be passed in parameter to the report during the print.
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

  • ..NbCopy only applies to the reports (and not to the controls or blocks found in a 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