PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Creating a control in a report
  • Creating a simple control
  • Creating a control from a dictionary control
  • Creating a control from the clipboard content
  • Creating an Image control from an image file by Drag and Drop
  • Associating a control with an item of a data file or with a variable
  • Selecting and deleting the report controls
  • Selecting one or more controls in a report
  • Deleting one or more controls from a report
  • Copying the report controls
  • Overview
  • Copying a control into the same report
  • Copying a control from a report into another report
  • Copying the style of a control
  • Moving one or more report controls
  • Locking controls
  • Aligning the report controls
  • Use an off-report control
  • Overview
  • Creating an "off-report" control
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
Handling the report controls
Overview
The different operations available for the report controls are as follows:Note: These operations differ for the controls belonging to a table. See Handling the cells of report table for more details.
Creating a control in a report

Creating a simple control

To create a control in a report:
  1. Use:
    • "Insert .. New control" and select the type of control to insert.
    • the icons found in the popup toolbar of report editor:
      =Context-sensitive bar
    On the "Creation" pane, click the type of control to create:
  2. Click the position where the control will be created in the report.

Creating a control from a dictionary control

A report control can be created from a control from a control found in a dictionary. A dictionary is used to store several elements (controls, reports, ...) for a future use in new projects. See Dictionary for more details.
To create a control from a control found in a dictionary:
  1. Display the "Dictionary" pane.
  2. Open the dictionary if necessary ("Open" from the popup menu).
  3. Select the initial control found in the dictionary (in the "Report controls" category).
  4. Drag and Drop the control from the dictionary to the future position of the control in the report.
  5. Subscribe the created control to the dictionary if necessary. If the created control subscribes to the dictionary, the modifications made to the control found in the dictionary will be automatically applied to the created control. See Subscribing an element to the dictionary for more details.

Creating a control from the clipboard content

The report editor allows you to create some types of controls according to the clipboard content:
Clipboard contentType of created control
Unformatted text, retrieved in a text editor for example.Static control
Formatted text, retrieved in a text editor for example.RTF control
Image file, retrieved in the Windows explorer.Image control
Image, retrieved from Internet for example.Image control

To create a control from the clipboard content:
  1. Copy the element into the clipboard ([Ctrl]+[C] from the element editor).
  2. In the report editor, select "Edit .. Paste" (or press [Ctrl]+[V]).In the report editor, on the "Home" pane, in the "Edit" group, click "Paste" (or press [Ctrl]+[V]).

Creating an Image control from an image file by Drag and Drop

The report editor allows you to create an Image control by performing a Drag and Drop of an image file found in the Windows explorer toward a WINDEV report.
To create an Image control from an image file:
  1. Select the requested image file in the Windows explorer.
  2. Keep the left mouse button down and move the image file toward a report opened in the editor.
  3. Release the mouse button. An Image control associated with the image file is automatically created.
Note:
The following image formats are supported in Windows:
  • Bitmap (*.BMP)
  • Graphics Interchange Format (*.gif)
  • Joint Picture Experts Group (*.jpg ; *.jpeg)
  • Kodak Photo CD (*.pcd)
  • PaintBrush (*.pcx)
  • Adobe Photoshop Format (*.psd)
  • TrueVision TARGA (*.tga)
  • Tagged Image File Format (*.tif ; *.tiff)
    Note: the "tiled tiff" option of the tiff 6.0 standard is not supported. In this case, we advise you to save the image in tiff 5.0 standard.
  • Portable Network Graphics (*.png)
  • Windows MetaFiles (*.emf ; *.wmf)
  • Icons (*.ico ; *.icw)
    Versions 22 and later
    Notes:
    • HQ display (High Quality) available.
    • Management of sheets in transparent BMP format (32 bits).
    New in version 22
    Notes:
    • HQ display (High Quality) available.
    • Management of sheets in transparent BMP format (32 bits).
    Notes:
    • HQ display (High Quality) available.
    • Management of sheets in transparent BMP format (32 bits).
  • Cursors (*.cur)
  • Portable Document Format (*.pdf)
  • Versions 15 and later
    Scalable Vector Graphics (*.svg)
    New in version 15
    Scalable Vector Graphics (*.svg)
    Scalable Vector Graphics (*.svg)
Note: To manage the pdf and svg formats, GDIPLUS.DLL must be installed for the computers running Windows 2000 and earlier. For the later versions, this DLL is supplied with Windows. See GDI+ framework for more details.
Associating a control with an item of a data file or with a variable
You have the ability to associate:
  • a report control (Item, Calculated, Image, Bar Code , RTF, Check Box, Link or Chart control) with an item of a data file found (or not) in the data source of the report.
  • a report control (Item, Calculated, Image, Bar Code , RTF, Check Box, Link or Chart control) with a variable found in the data source of the report.
You have the ability to associate:
  • a report control (Static, Calculated, Image, Bar code, Check box, Link or Chart) with a file item found (or not) in the data source of report.
  • a report control (Static, Calculated, Image, Bar code, Check box or Link) with a variable found in the data source of the report.
To associate an existing control with an item found in a data file or with a variable:
  1. Select the requested control.
  2. Display the "Link" tab (or the "Fill" tab for a chart) in the description window of the control ("Description" from the popup menu).
  3. Fill the information about the linked item.
Note: You also have the ability to create an Item control from an item found in a data file:Note: You also have the ability to directly create a Static control from an item of a data file:
  1. In the "Analysis" pane, select the item that will be associated with the control to create.
  2. Drag and Drop the item toward the future position of linked control.
Selecting and deleting the report controls

Selecting one or more controls in a report

The report editor allows you to select one or more report controls with the keyboard or with the mouse. See Select one or more controls for more details.

Deleting one or more controls from a report

To delete one or more report controls:
  1. Select the controls to delete.
  2. Press the [Del] key.
Copying the report controls

Overview

One or more controls can be copied into the same report or from a report to another report.
The description and the code of copied control will be identical to the ones of initial control.

Copying a control into the same report

To copy a control into the same report:
  1. Select the control to copy.
  2. Click the "Copy" icon ( Copy ) in the standard bar of report editor.
    Note: You also have the ability to select "Edit .. Copy" or "Copy" from the popup menu of control.
    On the "Home" pane, in the "Edit" group, click "Copy".
    Note: You also have the ability to select "Copy" from the popup menu of control.
  3. Click the "Paste" icon ( Paste ) in the standard bar of report editor.
    Note: You also have the ability to select "Edit .. Paste" or "Paste" from the popup menu of control.
    On the "Home" pane, in the "Edit" group, click "Paste".
    Note: You also have the ability to select "Paste" from the popup menu of control.
  4. Position the control with the mouse (the control outline appears in dotted lines and it helps you position the new control).

Copying a control from a report into another report

To copy a control from a report into another report:
  • 1st method:
    • In the first report, select the control to copy.
    • Click the "Copy" icon ( Copy ) in te standard bar of report editor.
      Note: You also have the ability to select "Edit .. Copy" or "Copy" from the popup menu of control.
    • Display the destination report in the report editor.
    • Click the "Paste" icon ( Paste ) in the standard bar of report editor.
      Note: You also have the ability to select "Edit .. Paste" or "Paste" from the popup menu of control.
    • Position the control with the mouse (the control outline appears in dotted lines and it helps you position the new control).
  • 1st method:
    • In the first report, select the control to copy.
    • On the "Home" pane, in the "Edit" group, click "Copy".
      Note: You also have the ability to select "Copy" from the popup menu of control.
    • Display the destination report in the report editor.
    • On the "Home" pane, in the "Edit" group, click "Paste".
      Note: You also have the ability to select "Paste" from the popup menu of control.
    • Position the control with the mouse (the control outline appears in dotted lines and it helps you position the new control).
  • 2nd method: (both reports must be displayed in the editor)
    • In the first report, select the control to copy.
    • Keep the left mouse button down and drag the control toward the destination report.
    • Release the mouse button once the control is positioned in the destination report (the outline control appears in dotted lines and it helps you position the pasted control).

Copying the style of a control

Copying the style of a control consists in copying the characteristics of a control style into another control. Only the control style is copied (not its content).
See Copying the style of a control for more details.

Moving one or more report controls

To move one or more report controls:
  1. Select the controls to move.
  2. Keep the left mouse button down and move the controls with the mouse. The real-time interface checker allows you to align the controls (see the paragraph below).
Notes:
  • A control necessarily belongs to a block.
  • The selected controls can also be moved with the arrow keys found on the keyboard. To speed up the move, press the [Ctrl] key together with the arrow key. To slow down the move, press the [Shift] key together with the arrow key.

Locking controls

In some cases, you may want to lock the controls in a fixed position: in this case, the position of the control cannot be modified and the control is not selected during a selection performed with the lasso. This feature is often useful for the layout controls.
To lock a control:
  1. Select the control.
  2. Use:
    • "Lock" from the popup menu of control.
    • [ALT] + [V].

Aligning the report controls

The report editor proposes several methods for aligning the controls found in a report:
Use an off-report control

Overview

In most cases, the controls belong to a report. Therefore, these controls appear in the report in edit mode and at run time.
A control can also be positioned in the home window of a report: the control is said to be "off report". This control will be visible in edit only. This control will not be printed.
Home window
An "off-report" control is used to store a report control without printing it. This allows you to use the control content in programming (like a variable).

Creating an "off-report" control

To create an "off-report" control:
  1. Select "Insert .. New control" and select the type of control to insert.
    Note: You also have the ability to use the icons found in the popup bar of the report editor.
    On the "Creation" pane, click the type of control to create.
  2. Click the left section of the home window where the control must be created.
See also
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment