Tuto WINDEV 25
Part 4: Full application with data 199 Overview We want to give the user the ability to print the details of requested order. The report can be directly printed via the popup menu of Table control. Answer If you did not create the windows in the previous lessons, you can follow this lesson by opening a corrected project: in WINDEV’s home page (Ctrl + <), click "Tutorial" and select "Full application (With windows)". A full corrected application project is also available: in WINDEV’s home page (Ctrl + <), click "Tutorial" and select "Full application (Answer)". In this case, to follow the rest of the lesson, select the "Windows 32-bit executable" configuration in the "Project explorer" pane. Creating the "Order form" report First of all, we are going to list the information that will be displayed in the report: • The order characteristics: date and order number. • The personal customer details: name, address, zip code, city and country. • The characteristics of order lines: • Ordered quantity, • Product reference, • Product caption, • Total BT, • Total IOT. To easily create this report, the data to print will be grouped in a query. This query can be used by the report or by any other element of WINDEV project (Table control, Looper control, ...). Remark WINDEV proposes to create reports from several data sources: data files, queries, controls, text files, ... In most cases, we advise you to group the data to print via a query and to create a report based on this query. To add an information into the report, all you have to do is add the corresponding item into the query. The reports based on data files must be simple reports, which means reports used to display data coming from a single data file.
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==