Tuto WEBDEV 25
Part 5: Let’s continue the development 213 • iPrintReport is used to generate the "Report_Invoice" report in the specified format (PDF in our case). • FileDisplay is used to display the invoice to the user: • iLastFile returns the path of the last file generated by a report. • "application/pdf" if the MIME type of returned file. When this type is specified, the browser can display the file directly or it can choose the application that will be used to perform the display on the computer of Web user. 7. Close the code editor. 8. Save the page ( or Ctrl + S). Print test ▶ Now, all we have to do is run a real test: 1. Run the test of "PAGE_Multicriteria_Search" page. 2. Specify the criteria and start a search. 3. Select one of the orders displayed in the Table control. 4. Print the order via the "PRINT" button. 5. The browser opens the PDF file. The browser has replaced the current page by the PDF file. We are going to change this behavior. 6. Close the browser.
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==