ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Editors / Report editor / Programming a report
  • Overview
  • Using standard windows (print windows and report viewer)
  • Using the standard print windows
  • Applying the project skin template (print windows and report viewer)
  • Customizing windows (print windows and report viewer)
  • Modifications that can be performed in the imported print windows
  • Using specific windows (print windows and report viewer)
  • Notes
  • Multilingual applications
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Overview
Using standard windows (print windows and report viewer)
By default, the standard print windows will be used when a document is printed from the report viewer.
For more details on the windows used by default, see Customizing the report viewer: Available windows.

Using the standard print windows

To use the standard print windows in your project:
  1. Open the project description: On the "Project" tab, in the "Project" group, click "Description".
  2. Go to the "Style" tab.
  3. In the "Report viewer" option, select "Standard (no skin template)".
  4. Validate.
Applying the project skin template (print windows and report viewer)
WINDEV allows you to apply the skin template of the project to the print windows. In this case, if the print is started in the report viewer from a WINDEV application, the skin template of project will be applied to all print windows.
To apply the skin template of project to the print windows:
  1. Open the project description: On the "Project" tab, in the "Project" group, click "Description".
  2. Go to the "Style" tab.
  3. In the "Report viewer" option, select "With project skin template".
  4. Validate.
Customizing windows (print windows and report viewer)
WINDEV includes print windows and report viewer windows. These windows are entirely customizable and they can be used in several WINDEV applications.
To customize the print windows of your project:
  1. Open the project description: On the "Project" tab, in the "Project" group, click "Description".
  2. Go to the "Style" tab.
  3. In the "Report viewer" option, select "Custom (included in the project)".
  4. Select the type of customization to perform:
    • <Visualisateur de rapports standard (sans gabarit)> This option imports standard print windows directly into your project.
    • <Visualisateur de rapports au gabarit du projet> This option directly imports the print windows corresponding to your project's skin template (supplied with WINDEV 10 and higher only).
  5. By default, if some buttons are not displayed in the report viewer of a report (export to Excel not allowed for example), WINDEV automatically reposition the displayed buttons to optimize the interface.
    To prevent the displayed buttons from being automatically repositioned (if the buttons have been positioned on the right side of the report viewer, for example), select the "Don't move the buttons of the print preview automatically".
  6. Validate.
An internal component named "Report viewer" is included in your project. This internal component contains all the windows required to customize the print preview.
Remark: If you only want to customize a few windows (e.g. the report viewer only), simply delete the unnecessary windows from your project.. The standard print windows will be used.

Modifications that can be performed in the imported print windows

The print windows imported into your project can be handled like any other window of your application.
You can modify:
  • the characteristics of the window in the "Details" tab or in the "UI" tab.
  • the background image and its characteristics (position, symmetry, ...) in the "Image" tab.
  • the style (background color, type of border, ...) in the "Style" tab.
The ribbon and controls in the "WD_VIEWER" window allow the user to use common features in a print preview (zoom, number of page viewed, etc.).
No code is found in the controls of this window. At runtime, the WLanguage code associated with these controls is dynamically created by WINDEV. This operating mode is based on the name of the controls. Therefore, the name of these controls must not be modified.
However, you can:
  • modify the characteristics of these controls (style, position, background image, etc.) in their description window.
  • delete these controls (Del key). The corresponding properties will no longer be proposed to the users.
    Caution: To configure the options available in the ribbon, it is advisable to:
    • use iParameterViewer. For example, you can define which options are shown for all the application reports to be printed.
    • define which options are shown for each report (in the report description window, "Details" tab).
  • add code to these controls (F2 key). In this case, the WLanguage code entered will be run after the WLanguage code dynamically created by WINDEV.
    Caution:
  • add controls to the viewer window.
    Warning: The code of these fields must not use WLanguage print functions.
Then, simply save the changes you have made for them to be taken into account.
For more details on how the report viewer works, see The standard report viewer.
Using specific windows (print windows and report viewer)
Print windows and report viewer windows can correspond to windows from your project (windows directly available in the project or accessible from a component included in the project).
To specify the print windows that will be used in your project:
  1. Open the project description: On the "Project" tab, in the "Project" group, click "Description".
  2. Go to the "Style" tab.
  3. In the "Report viewer" option, select "Custom (included in the project)".
  4. Select the window from your project that will be used to view the printouts. This window can be found in a component (the window must be an accessible element of the component).
    Note: If you have chosen to integrate the standard report viewer windows, the "WD_Viewer" window is automatically selected..
  5. Validate.
Notes

Multilingual applications

All the WINDEV print windows support French and English by default. To support additional languages, these windows must be customized.
Reminder: WDMSG simplifies project translation by extracting all project messages (field labels, window titles, etc.) and reintegrating messages after translation.. WDMSG is an additional module of WINDEV. Contact PC SOFT Sales Department for more details about WDMSG.
Minimum version required
  • Version 9
Comments
[Duda] Preview in MDI Child
How I can put the Preview in a MDI Child?
Robles Luis
31 Jan. 2019
PREVIEW RELATORIO
BOM DIA..
HOJE VAMOS VER PREVIEW DO RELATORIO - TRADUZIER

GOOD MORNING..
TODAY WE WILL SEE PREVIEW OF THE REPORT - TRANSLATE

BUEN DÍA..
HOY VAMOS VER PREVIEW DEL RELATORIO - TRADUCIR

// BLOG COM VIDEO E EXEMPLO

http://windevdesenvolvimento.blogspot.com.br/2017/07/aula-1211-windev-curso-relatorio-049.html

https://www.youtube.com/watch?v=8Z_P9WN7n_U

De matos
15 Jul. 2017

Last update: 09/21/2024

Send a report | Local help