Applying the skin template of 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 project will be applied to all print windows.

To apply the skin template of project to the print windows:

Display the project description ("Project .. Project description").

Display the "Style" tab.

In the "Print preview" option, select "To the skin template of the project".

Validate.

Applying the skin template of project to the preview windows and to the print windows

Versions 17 and laterWINDEV 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 project will be applied to all print windows.

In the "Print preview" option, select "Print preview to the skin template of the project".

Validate.

New in version 17WINDEV 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 project will be applied to all print windows.

In the "Print preview" option, select "Print preview to the skin template of the project".

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 project will be applied to all print windows.

<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).

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".

Validate. The different print windows are imported into your project. They can be customized.

Versions 17 and laterAn 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 17An 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 application reports.

configure the buttons displayed for each report (in the description window of 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:

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.

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:

Delete the preview window from the project and from the project directory.

In the description window of 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:

Open the WINDEV project containing the customization of the preview.

Display the preview window in the editor.

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)&gt").Start a second WINDEV session. Create a simple project and include the customization of the preview: