Tuto WINDEV 25
196 Part 4: Full application with data Remark In test mode, the content of the Table control is printed directly. At run time, the end user will be able to print directly or to start "Reports and Queries" in order to create the corresponding report. See "Distributing "Reports & Queries" with your applications" for more details about Reports and Queries. 9. Close the report viewer and stop the application test. You want to customize the report proposed by default? All you have to do is create an automatic report on Table control. This report (if it exists) will be automatically used by the option for printing the Table control. Creating an automatic report on Table control To create a report used to print the data found in a Table control, all you have to do is create a "Report on Table control": the report corresponding to the Table control is automatically created. ▶ To create a "Report on Table control": 1. If necessary, display the "Finding orders" tab pane (click it) in the window editor. 2. On the "Creation" pane, in the "Data" group, expand "Table and List Box" and select "Report on Table control". 3. Our window containing 2 Table controls on different tab panes, WINDEV asks you to select the requested Table control. In our case, select "TABLE_QRY_FindOrders" and validate. 4. The shape of a Button control appears under the mouse cursor. This control is automatically created and it contains the WLanguage code used to print the content of the Table control. 5. Click the position where the control will be created in the window (below the "Find" Button control for example in the "Finding orders" tab pane). 6. The report is automatically created. 7. A window is displayed, allowing you to save the report. Validate.
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==