Tuto WINDEV 25
224 Part 4: Full application with data 5. In the input area, type "Reports". 6. Select the "Reports" option: • Display the popup menu (right mouse click). • Select "Transform to expand a sub-menu". 7. In the input area that is displayed, type "List of customers". Press Enter to validate. ▶ To type the WLanguage code of the option "List of customers": 1. Select the "List of customers" option in the editor. 2. Display the popup menu (right mouse click). 3. Select "Code". The code editor appears. 4. Write the following code in the event "Selecting the menu": // The report is printed in the report viewer iDestination(iViewer) // Prints the report iPrintReport(RPT_List_of_customers) Let’s study this code: • iDestination allows you to configure the print destination. You have the ability to print: • in a text file, • in HTML format, • in PCL format, • in PDF, RTF, XLS or XML format, • on a fax. In our case, the report will be printed in the report viewer window. • iPrintReport is used to print a report.
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==