PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Using the standard preview windows and the standard print windows
  • Using the standard print windows
  • Applying the skin template of the project to the preview windows and to the print windows
  • Applying the skin template of the project to the preview windows and to the print windows
  • Customizing the preview windows and the print windows
  • Modifications that can be performed in the imported print windows
  • Using specific windows for the print and for the print preview
  • Notes
  • Multilingual applications
  • I've customized the print preview in version 11. How to get the search button?
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Using the standard preview windows and the standard print windows
By default, the standard print windows will be used when a document is printed from the print preview.
To find out the windows used by default, see Customizing the print preview: Available windows.

Using the standard print windows

To use the standard print windows in your project:
  1. Display the description of the project ("Project .. Project description").Display the project description: on the "Project" pane, in the "Project" group, click "Description".
  2. Display the "Style" tab.
  3. In the "Print preview" option, select "Standard (no skin template)".In the "Print preview" option, select "Standard print preview (no skin template)".
  4. Validate.
Applying the skin template of the project to the preview windows and to the print windows
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 print preview from a WINDEV application, the skin template of the project will be applied to all the print windows.
To apply the skin template of the project to the print windows:
  1. Display the description of the project ("Project .. Project description").
  2. Display the "Style" tab.
  3. In the "Print preview" option, select "To the skin template of the project".
  4. Validate.
Applying the skin template of the project to the preview windows and to the print windows
Versions 17 and later
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 print preview from a WINDEV application, the skin template of the project will be applied to all the print windows.
To apply the skin template of the project to the print windows:
  1. Display the description of the project ("Project .. Project description").Display the project description: on the "Project" pane, in the "Project" group, click "Description".
  2. Display the "Style" tab.
  3. In the "Print preview" option, select "Print preview to the skin template of the project".
  4. Validate.
New in version 17
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 print preview from a WINDEV application, the skin template of the project will be applied to all the print windows.
To apply the skin template of the project to the print windows:
  1. Display the description of the project ("Project .. Project description").Display the project description: on the "Project" pane, in the "Project" group, click "Description".
  2. Display the "Style" tab.
  3. In the "Print preview" option, select "Print preview to the skin template of the project".
  4. Validate.
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 print preview from a WINDEV application, the skin template of the project will be applied to all the print windows.
To apply the skin template of the project to the print windows:
  1. Display the description of the project ("Project .. Project description").Display the project description: on the "Project" pane, in the "Project" group, click "Description".
  2. Display the "Style" tab.
  3. In the "Print preview" option, select "Print preview to the skin template of the project".
  4. Validate.
Customizing the preview windows and the print windows
The preview windows and the print windows are supplied with WINDEV. These windows are entirely customizable and they can be used in several WINDEV applications.
To customize the print windows of your project:
  1. Display the description of the project ("Project .. Project description").Display the project description: on the "Project" pane, in the "Project" group, click "Description".
  2. Display the "Style" tab.
  3. In the "Print preview" option, select "Custom".In the "Print preview" option, select "Custom print preview (included in the project)".
  4. Select the type of customization to perform:
    • <Standard print preview (without skin template)>: this option imports the standard print windows into your project.
    • <Print preview to the skin template of the project>: this option imports the print windows corresponding to the skin template of your project (skin template supplied with WINDEV version 10 and later only).
      In both cases, you can also choose the skin template of the windows to import via the button found to the right of the list (skin template supplied with WINDEV version 10 or later only).
  5. By default, if some buttons are not displayed in the print preview of a report (export to Excel not allowed for example), WINDEV automatically reposition the displayed buttons to optimize the interface.
    In order for the buttons displayed not to be automatically repositioned (if the buttons are positioned on the right side of the preview window for example), select "Don't move the preview buttons automatically".
  6. Validate. The different print windows are imported into your project. They can be customized.
Versions 17 and later
An internal component named "Print preview" is included in your project. This internal component contains all the windows required to customize the print preview.
New in version 17
An internal component named "Print preview" is included in your project. This internal component contains all the windows required to customize the print preview.
An internal component named "Print preview" is included in your project. This internal component contains all the windows required to customize the print preview.
Note: To customize a limited number of windows (the preview window for instance), delete the useless 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 "GUI" 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 controls found in the "Preview" window allow the users to benefit from the features proposed during a print preview (zoom, page number, buttons for specific prints ...).
No code is found in the controls of this window. At run time, 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, ...) in their description window.
  • delete these controls ([Del] key). The corresponding properties will no longer be proposed to the users.
    Caution: To customize the buttons found in the toolbar, we advise you to:
    • use iParameterPreview. You can for example configure the buttons displayed in all the reports of the application.
    • configure the buttons displayed for each report (in the description window of the report, "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 preview window.
    Caution: The code of these controls must not use any WLanguage print functions.
Then, all you have to do is save the modifications performed in order for these modifications to be taken into account.
See The standard print preview for more details.See The standard print preview for more details.
Using specific windows for the print and for the print preview
The print windows and the preview windows can correspond to windows of your project (windows available in the project or windows accessible from a component included in the project).
To specify the print windows that will be used in your project:
  1. Display the description of the project ("Project .. Project description").Display the project description: on the "Project" pane, in the "Project" group, click "Description".
  2. Display the "Style" tab.
  3. In the "Print preview" option, select "Custom".In the "Print preview" option, select "Custom print preview (included in the project)".
  4. Select the window of your project that will be used for the print preview. This window can be found in a component (the window must be an accessible element of the component).
    Note: If you have chosen to include the standard preview windows, the "Preview" 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 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.

I've customized the print preview in version 11. How to get the search button?

If there is not a lot of customization, we advise you to retrieve the new preview window and to perform the modifications if necessary. To do so:
  1. Delete the preview window from the project and from the project directory.
  2. In the description window of the project ("Project .. Project description"), specify that the print preview is customized ("Style" tab).In the description window of the project:
    • On the "Project" pane, in the "Project" group, click "Description",
    • In the "Style" tab, specify that the print preview is customized.
If there are a lot of customizations, the controls required by the search must be added into the preview window. We recommend that you perform the following operations:
  1. Open the WINDEV project containing the customization of the preview.
  2. Display the preview window in the editor.
  3. Start a second WINDEV session. Create a simple project and include the customization of the preview ("Project .. Project description", "Style" tab, "Custom print preview: <Standard print preview (without skin template)>").Start a second WINDEV session. Create a simple project and include the customization of the preview:
    • On the "Project" pane, in the "Project" group, click "Description".
    • Display the "Style" tab and select "Custom print preview: <Standard print preview (without skin template)>".
  4. Copy the following controls to your project:
    • Search
    • Page3
    • SearchBar
    • Text
    • Previous
    • Next
    • WholeWord
    • Case
  5. In your window, create the group of controls named "GP_Search". All the above-mentioned controls must be included in the "GP_Search" group except for the "Search" control.
Minimum required version
  • Version 9
Comments
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
Jul. 15 2017