13.07.2015 Views

Reports & Queries - Source : www.pcsoft-windev-webdev.com

Reports & Queries - Source : www.pcsoft-windev-webdev.com

Reports & Queries - Source : www.pcsoft-windev-webdev.com

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

1. DISTRIBUTING REPORTS & QUERIES1.1 OverviewThis chapter presents the operations that must be performed in order for a WinDev application to be handledby <strong>Reports</strong> & <strong>Queries</strong> (also called Report Editor User Version).<strong>Reports</strong> & <strong>Queries</strong> replaces "WDEtat User Version". This module is now free and it can be distributed alongwith your WinDev applications. See the license for more details on distribution and conditions.1.2 Distributing <strong>Reports</strong> & <strong>Queries</strong> with your WinDev applicationTo distribute <strong>Reports</strong> & <strong>Queries</strong> with your own WinDev application, you must:1. Specify in the project that the application allows <strong>Reports</strong> & <strong>Queries</strong> to be run.2. Define in the analysis the data files and the items that can be handled by <strong>Reports</strong> & <strong>Queries</strong>.3. Define the reports and the queries that can be modified in <strong>Reports</strong> & <strong>Queries</strong>.4. Create the executable and the setup program of the WinDev application.5. Install the application on the end-user <strong>com</strong>puters.Note: To reduce the size of the setup program, "<strong>Reports</strong> &<strong>Queries</strong>" can be downloaded from your application:• via the automatic menu (automatic help menu that can be included in a WinDev application),• via the print preview of a report,•when using Run<strong>Reports</strong>And<strong>Queries</strong>.Translating the names of the data files and itemsYou are distributing "<strong>Reports</strong> & <strong>Queries</strong>" in different countries (it is available in French and in English). Differentlanguages are used: Spanish, Romanian, Chinese, Swedish, …If the end user wants to create reports or queries, he must handle the names of data files and items, thenames used in the analysis by the developer of the application. In most cases, these names are in English,which is not suitable for a Chinese or Romanian user.You now have the ability to specify a translation for the names of data files and items in the analysis.1.3 Step 1: Configuring the projectTo use "<strong>Reports</strong> & <strong>Queries</strong>" from your WinDev application, you must configure the project associated with yourapplication:1. Display the description window of your project.2. Select the "Advanced" tab and check "Allow <strong>Reports</strong> & <strong>Queries</strong> to be started".3. Validate.Notes:• By default, the WinDev projects allow <strong>Reports</strong> & <strong>Queries</strong> to be started.• The initialization code of the project is run when the test of a report or query is run from <strong>Reports</strong> & <strong>Queries</strong>.In this case, OnTestMode returns False.Part 3: <strong>Reports</strong> and <strong>Queries</strong> 227

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!