Microsoft Word Report Tool
 

How to create Microsoft Word reports with pictures

Using WDReportGen, you can rapidly create various Microsoft ® Word ® reports with pictures. WDReportGen is an easy to use, cost effective, powerful and flexible reporting tool that outputs reports in Microsoft Word document format.

About pictures in Micosoft Word

To make eye-catching reports, you can add pictures to your reports. You can insert many popular graphics file formats into your document. Microsoft Word supports the following graphics file formats without a separate graphics filter. However, you do need a graphics filter installed to insert all other graphics file formats.

Microsoft Word supports the following graphics file formats without a separate graphics filter:

  • Enhanced Metafile (.emf)
  • Graphics Interchange Format (.gif)
  • Joint Photographic Experts Group (.jpg)
  • Portable Network Graphics (.png)
  • Microsoft Windows Bitmap (.bmp, .rle, .dib)
  • Windows Metafile Graphics (.wmf)
  • Tagged Image File Format (.TIFF)
  • Encapsulated PostScript (.eps)

To insert graphics, you can decide the following:

  • Whether or not pictures are inserted as inline, so that they move with text, or floating, so that text wraps above, in front of, or behind them when you insert or paste them.
  • The text-wrapping style, such as none, square, through, tight and topbottom.

Inserting pictures into a report template in Microsoft Word

To make a report using WDReportGen, you need to create a report template in Microsoft Word. You can insert pictures into the report template directly in Microsoft Word. For example, you want to display a logo in your report. You can insert the logo graphics file into the report template. For more information about adding pictures to a document, refer to Microsoft Word Help.

Inserting pictures into a report using WDReportGen

Except for inserting the static pictures during report design, you want to insert pictures during report buliding process. You hope a reporting tool to pull pictures from database into Word report. WDReportGen can insert pictures from the graphics files, and support all graphics file format that Microsoft Word support.

To insert pictures into a report using WDReportGen, you should do as follows:

  1. Store the path and name of the graphics files in the database
  2. You stored the path and file name of the pictures in database, did not store the pictures. The file path can be a relative path, an absolute path or a URL. For example, you store "images\emp1.jpg" in Photo field.

  3. Identify the image fields in the report function
  4. Write a report function in the WRF file, and identify the image fields using IMAGE argument. For example,

    @F1=Report(table=1 ... image=photo)
    
  5. Specify the inserted way, text wrapping style and size in the report template
  6. To specify the inserted way, text wrapping style and size, you should write a formatting expression in the report template file. For a table report, you write a formatting expression in the cell. For a form report, write a formatting expression in the field switch "\#". WDReportGen will get the formatting expression, and insert a picture into the report according to the instruction in the format expression.

  7. Run WDReportGen to generate report with pictures
  8. During report generating process, WDReportGen will read the graphics files, and insert them into the report according to your instruction.

    See the report sample with pictures


 


Copyright © 2004 - 2014 LJZsoft Corporation. All rights reserved.