|
|
|
|
|
- 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
Customizing the report viewer (preview)
You can display a print preview in the report viewer. Then, the user will be able to print from the report viewer. WINDEV gives you the ability to: 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. Using the standard print windows To use the standard print windows in your project: - Open the project description: on the "Project" tab, in the "Project" group, click "Description".
- Display the "Style" tab.
- In the "Report viewer" option, select "Standard (no skin template)".
- 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: - Open the project description: on the "Project" tab, in the "Project" group, click "Description".
- Display the "Style" tab.
- In the "Report viewer" option, select "With project skin template".
- 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: - Open the project description: on the "Project" tab, in the "Project" group, click "Description".
- Display the "Style" tab.
- In the "Report viewer" option, select "Custom (included in the project)".
- Select the type of customization to perform:
- <Standard report viewer (without skin template)>: this option imports the standard print windows into your project.
- <Report viewer with project skin template>: this option imports the print windows corresponding to the skin template of your project (skin template supplied with WINDEV version 10 and later only).
- 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". - 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 (for example, the report viewer only), simply remove 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 shown in the ribbon, it is recommended 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.
Caution: The code of these controls must not use any WLanguage print functions.
Then, simply save the changes you have made for them to be taken into account. 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: - Open the project description: on the "Project" tab, in the "Project" group, click "Description".
- Display the "Style" tab.
- In the "Report viewer" option, select "Custom (included in the project)".
- 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).
Remark: If you have chosen to include the standard report viewer windows, the "WD_Viewer" window is automatically selected. - Validate.
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 the translation of a project by checking out all the project messages (control captions, window titles, ...) and by checking them back in once they have been translated. WDMSG is an additional module of WINDEV. Contact PC SOFT Sales Department for more details about WDMSG.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|