官术网_书友最值得收藏!

Adding an image in auto design

This recipe will help you learn about using images in the report and how to use expressions to choose the images dynamically. A new column will be added to the report that indicates if the transaction date was before or after the due date. To indicate before and after, we will use a green check mark and a red cross for indication. A visual expression is easier to identify than just having a Boolean type value.

How to do it…

Images can be added in auto design as follows:

  1. Identify the images that are going to be used and set them with right resolutions (Syncfusion? Metrostudio has been used to generate these images).
  2. The images to be loaded:
  3. Right-click on the Images node and select Add a new image.
  4. Locate the path of the image in the ImageSource property for the Images node.
  5. The image is imported, a thumbnail is visible and the system identifies the nature of the file automatically.
  6. Repeat the same steps to add the second image.
  7. In the table data region CustTransTable, expand the Data node and add a new image type field.
  8. Set the following properties:
  9. The report is ready to display images. Start a preview to see the expression getting evaluated to display the appropriate image:

How it works…

Images are used in the scenarios to display the company logo or a product image. There are several ways to reference an image in a report such as embedded images, external images, and database. The tabular overview details the reference type and the usage:

Tip

Adding a company logo is a common scenario but at the moment, only precision design supports it and auto designs cannot reference the company image in the report header.

See also

  • The Adding headers and displaying company images recipe in Chapter 4, Report Programming Model – RDP.
主站蜘蛛池模板: 崇左市| 砀山县| 宁陵县| 阳城县| 韩城市| 凤凰县| 哈尔滨市| 巨鹿县| 上犹县| 永州市| 金平| 太白县| 阳泉市| 中超| 隆德县| 托里县| 黄大仙区| 霍州市| 阳城县| 临江市| 句容市| 闽清县| 景宁| 南陵县| 江阴市| 西乡县| 孝昌县| 吴旗县| 聂荣县| 盖州市| 济宁市| 错那县| 新津县| 遵义市| 华坪县| 桂平市| 温州市| 诸城市| 西乌珠穆沁旗| 丰原市| 罗田县|