{"id":29941,"date":"2024-08-30T10:47:51","date_gmt":"2024-08-30T10:47:51","guid":{"rendered":"https:\/\/www.greytrix.com\/blogs\/sagex3\/?p=29941"},"modified":"2024-12-03T05:21:09","modified_gmt":"2024-12-03T05:21:09","slug":"how-to-print-dynamic-company-logo-on-sage-x3-reports","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagex3\/2024\/08\/30\/how-to-print-dynamic-company-logo-on-sage-x3-reports\/","title":{"rendered":"How to print dynamic Company Logo on Sage X3 Reports"},"content":{"rendered":"\n<p>Crystal report is a business intelligence application used to design and generate reports from a wide range of data source. It supports connectivity to various data sources such as Microsoft excel, SQL server, Oracle and more. It includes major features such as formulas, cross-tab reports, sub-reports, and conditional formatting etc. In crystal report sub-reports are used to embed one report within another. Sub-reports can be helpful when you need to display related or supplementary information alongside the main report.<\/p>\n\n\n\n<p>New Stuff: <a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2024\/08\/28\/approval-status-on-grn-in-sage-x3\/\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2024\/08\/28\/approval-status-on-grn-in-sage-x3\/\" rel=\"noreferrer noopener\">Approval Status on GRN in Sage X3<\/a><\/p>\n\n\n\n<p>In <a href=\"https:\/\/www.greytrix.com\/sage-x3\/development\/\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/www.greytrix.com\/sage-x3\/development\/\" rel=\"noreferrer noopener\">Sage X3<\/a>, the client wants a logo on every transaction report. We could directly add a hardcoded logo to the reports, but this would create issues in the future when the client changes the company logo, as we&#8217;d need to update the hardcoded logo in every report. It is better to use a dynamic approach. Sage X3 offers a built-in option in the application to add or select the company logo in the company master. By using this feature, we can include a dynamic logo in each report.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/08\/Figure-1-Company-Master-1024x560.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; \nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/08\/Figure-1-Company-Master-1024x560.png\" alt=\"Figure 1 -Company Master\"><\/a><\/center>\n<font size=\"2\"><center>Figure 1 -Company Master<\/center><\/font>\n\n\n\n<p>To achieve the above requirement, follow the steps below:<br>Step 1: Open your main report in Crystal Reports and insert a new sub-report into the page header, placing it on the left or right side of the section according to the client&#8217;s preference for the logo. You can create a simple query-level or table-level report, as you only need to fetch one field from the table. Refer to the screenshot below for guidance.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/08\/Figure-2-LOGO-Sub-report-1024x337.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; \nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/08\/Figure-2-LOGO-Sub-report-1024x337.png\" alt=\"Figure 2- LOGO Sub-report\"><\/a><\/center>\n<font size=\"2\"><center>Figure 2- LOGO Sub-report<\/center><\/font>\n\n\n\n<p>Step 2: We have created a table-level sub-report where we have used the BLOB_0 field from the ABLOB table. This field stores the path\/name of the company logo from the company master. Drag and drop this field into the report footer section of the sub-report and add suppress blank section condition on report footer section. Refer the below figure for reference.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/08\/Figure-3-\u2013-LOGO-field-position-1024x321.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; \nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/08\/Figure-3-\u2013-LOGO-field-position-1024x321.png\" alt=\"Figure 3 \u2013 LOGO field position\"><\/a><\/center>\n<font size=\"2\"><center>Figure 3 \u2013 LOGO field position<\/center><\/font>\n\n\n\n<p>Step 3: You can adjust the logo size according to the client&#8217;s requirements. To set the size of the logo or picture, right-click on the BLOB_0 field, select the &#8220;Format Graphic&#8221; option, then go to the &#8220;Picture&#8221; tab. There, you can set the height and width of the logo using the available options. You can also set a border for the logo by using the &#8220;Border&#8221; tab, which is located next to the &#8220;Picture&#8221; tab. Refer to the screenshot below for guidance.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/08\/Figure-4-\u2013-Format-Graphic-1024x435.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; \nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/08\/Figure-4-\u2013-Format-Graphic-1024x435.png\" alt=\"Figure-4-Format-Graphic\"><\/a><\/center>\n<font size=\"2\"><center>Figure-4-Format-Graphic<\/center><\/font>\n\n\n\n<p>Step 4: Save the sub-report and link it to the main report. Deploy the updated report to the desired folder, and you will get the desired output on the report.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/08\/Figure-5-Output-1024x158.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; \nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/08\/Figure-5-Output-1024x158.png\" alt=\"Figure 5 - Output\"><\/a><\/center>\n<font size=\"2\"><center>Figure 5 &#8211; Output<\/center><\/font>\n\n\n\n<p>In this way, we can print dynamic Company Logo on Sage X3 Reports by following simple steps as mentioned in this blog.<\/p>\n\n\n[about_us_blog_common]\n","protected":false},"excerpt":{"rendered":"<p>Crystal report is a business intelligence application used to design and generate reports from a wide range of data source. It supports connectivity to various data sources such as Microsoft excel, SQL server, Oracle and more. It includes major features such as formulas, cross-tab reports, sub-reports, and conditional formatting etc. In crystal report sub-reports are\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2024\/08\/30\/how-to-print-dynamic-company-logo-on-sage-x3-reports\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,13],"tags":[461,4277,1822,3959,4036],"class_list":["post-29941","post","type-post","status-publish","format-standard","hentry","category-sage-erp-x3","category-integration","tag-crystal-report","tag-format-graphic","tag-sage-x3","tag-section-expert","tag-sub-report-2"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/29941","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/comments?post=29941"}],"version-history":[{"count":4,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/29941\/revisions"}],"predecessor-version":[{"id":29949,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/29941\/revisions\/29949"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/media?parent=29941"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/categories?post=29941"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/tags?post=29941"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}