PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Creating a Form report
  • Creation
  • Information specific to the form
  • Including a form in a report
  • Including a form in a report
  • Notes
  • Image of the form
  • Multipage report (based on a PDF file)
  • Notes: Using a PDF file in page background
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
Overview
The report editor gives you the ability to print reports on pre-printed forms (image file or PDF file). For example, the products ordered by the customers can be directly printed on an order form.
In edit, the form is displayed in background image of the report: therefore, the controls can be positioned to the precision of a millimeter.
For example:
Form report (editor)
At run time, you can specify whether the image of the form must be printed or not. The image of the form is not printed by default.
For example:
=Form report (execution)
Note: To print reports on pre-printed forms, you can:
  • create a "Form" report.
  • include a form in an existing report.
Versions 18 and later
iPhone/iPad This type of report is now available for the iPhone/iPad applications.
New in version 18
iPhone/iPad This type of report is now available for the iPhone/iPad applications.
iPhone/iPad This type of report is now available for the iPhone/iPad applications.
Versions 21 and later
Universal Windows 10 App This type of report is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This type of report is now available in Universal Windows 10 App mode.
Universal Windows 10 App This type of report is now available in Universal Windows 10 App mode.
Creating a Form report

Creation

To create a "Form" report, select "File .. New .. Report .. Report on form". The wizard for report creation starts. In this wizard, you must specify:To create a "Form" report:
  • Click New among the quick access buttons.
  • Click "Report" in the wheel that is displayed. The window for creating a new element is displayed: click "Report" then "Report".
  • The wizard for report creation starts.
In the wizard, select "Report on form" and validate. In this wizard, you must specify:
  • the data source of the report (data file, query, ...). See Data source of report for more details.
  • the information specific to the form (see the paragraph below).
Note: Before creating the "Form" report, you must scan the entire form and save it as an image file.
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.

Information specific to the form

The information specific to the form is as follows:
  • the file containing the image of the form. The size of the report is automatically calculated according to the size of the form image.
    For the A4 format, the size of an image in 75 DPI must be set to 595 x 842 pixels. For an A4 format, the size of an image in 150 DPI must be set to 1275 x 1753 pixels.
    If the image of the form corresponds to a PDF file containing several pages, you can:
    • print all the pages found in the PDF file. A report made of several pages is created in the report editor.
    • specify the number of the page that must be used as report background. The report will print a single page of the PDF file.
  • whether the image of the form must be printed or not.
    Note: If the image of the form is printed, this image will not be printed beyond the physical margins of the printer.
  • the division of the form according to the number of records printed per page:
    • for example, if the form contains the characteristics of a single customer, a single record must be printed per page.
      In this case, the created report will only contain the Body block.
    • for example, if the form contains the characteristics of several customers, several records must be printed per page.
      In this case, the created report will contain a Page header block, a Body block and a Page footer block. The Body block will be repeated for each record printed on the page. To print the report properly, you must modify the position of the report controls and the position of the form image in the Body block.
      See "Image of the form" for more details.
      In this case, the created report contains a Page header block, a Body block and a Page footer block. The Body block will be repeated for each record printed on the page. To print the report properly, you must modify the position of the report controls and the position of the form image in the Body block.
      See "Image of the form" for more details.
Including a form in a report
Creating (if necessary) the file corresponding to the form.
If you only have a paper copy of the form, we advise you to scan the form at 100% and to save it as an image.
For an A4 format, the size of an image in 75 DPI must be set to 595 x 842 pixels.
For the A4 format, the size of an image in 150 DPI must be set to 1275 x 1753 pixels.
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.

Including a form in a report

To include a form in a report:
  1. Display the "Background" tab of the report description ("Report description" from the popup menu of the report).
  2. Select the image of the form or the PDF file corresponding to the form.
  3. If the form is a PDF file containing several pages, specify:
    • whether all the pages found in the PDF file must be printed. The report editor will display all the pages of the PDF file. The controls required by the report can be positioned on the different pages of the report in the editor.
    • the page containing the form to use. This page number can be modified by programing with ..PageNumber. The report displayed in the report editor will contain a single page.
  4. Specify whether the image of the form must be printed or not.
    • If the image of the form is printed, this image will not be printed beyond the physical margins of the printer. To print the entire image of the form, we advise you to check "Ignore the physical margins of the printer".
    • If the image of the form must not be printed with the report (print on a pre-printed form for example), the option "Ignore the physical margins of the printer" must not be checked. Otherwise, the printed controls will be shifted in relation to the pre-printed form.
Notes

Image of the form

The image of the form is displayed in the report background. The image is displayed in the background of each report block.
If several blocks are found in the page, you have the ability to position the image in each one of the blocks.
To move the form image displayed in each block:
  1. Click found in the icon bar. The mouse cursor turns into hand.On the "Modification" pane, in the "Alignment" group, click "Move the background image" . The mouse cursor turns into hand.
  2. Click the block where the image of the form must be moved.
  3. To move the image of a form for a block:
    • to the top or to the bottom: keep the mouse button down and move the mouse.
    • to the left or to the right: keep the mouse button and the [Shift] key down and move the mouse.
  4. Click again to disable the mode for moving the image of the form.To disable the mode for moving the image of the form, on the "Modification" pane, in the "Alignment" group, click "Move the background image" again.
Note: The cursor must be moved inside the block area in order to be taken into account.

Multipage report (based on a PDF file)

In order for the report to display all the pages of a PDF file, if the report is based on a data file or on a query, the different pages will be printed for each record of the data source used.
Caution: This type of report can consume a large amount of memory resources (especially during the print preview).

Notes: Using a PDF file in page background

  • Using a PDF file in page background requires the GDI+ framework.
  • In the editor, we advise you to use a zoom less than or equal to 100% to better view the PDF file used in report background.
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment