- Microsoft Dynamics AX 2012 Reporting Cookbook
- Kamalakannan Elangovan
- 316字
- 2021-08-06 16:40:51
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:
- Identify the images that are going to be used and set them with right resolutions (Syncfusion? Metrostudio has been used to generate these images).
- The images to be loaded:
- Right-click on the Images node and select Add a new image.
- Locate the path of the image in the ImageSource property for the Images node.
- The image is imported, a thumbnail is visible and the system identifies the nature of the file automatically.
- Repeat the same steps to add the second image.
- In the table data region CustTransTable, expand the Data node and add a new image type field.
- Set the following properties:
- 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.
- 自愿審計(jì)動(dòng)機(jī)與質(zhì)量研究:基于我國中期財(cái)務(wù)報(bào)告審計(jì)的經(jīng)驗(yàn)證據(jù)
- Magento 2 Cookbook
- EViews10.0的應(yīng)用與計(jì)量分析
- 大數(shù)據(jù)搜索與挖掘及可視化管理方案 :Elastic Stack 5:Elasticsearch、Logstash、Kibana、X-Pack、Beats (第3版)
- Getting Started with Citrix VDI-in-a-Box
- 2016年度注冊(cè)會(huì)計(jì)師全國統(tǒng)一考試專用輔導(dǎo)教材(圖解版):審計(jì)
- 審計(jì)全流程實(shí)操從入門到精通
- IBM SPSS Modeler Cookbook
- 行政單位經(jīng)濟(jì)責(zé)任審計(jì)實(shí)務(wù)指南
- 傳習(xí)集2
- Microsoft Dynamics CRM 2016 Customization(Second Edition)
- Building Dashboards with Microsoft Dynamics GP 2016(Second Edition)
- 財(cái)務(wù)會(huì)計(jì)習(xí)題集
- 審計(jì)定價(jià)問題研究
- 績效考核與薪酬激勵(lì)精細(xì)化設(shè)計(jì)必備全書