We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Print Background image

Thread ID:

Created:

Updated:

Platform:

Replies:

144073 Apr 17,2019 08:15 AM UTC Apr 24,2019 10:06 AM UTC ASP.NET Core 3
loading
Tags: ReportViewer
Hassan
Asked On April 17, 2019 08:15 AM UTC

Dear Sir/Modem

I am writing to ask you how can I print background image in report viewer?

Your prompt reply is appreciated.

Thank you in advance.
Regards

Vinoth Srinivasan [Syncfusion]
Replied On April 23, 2019 06:41 AM UTC

Hi Hassan, 
 
We can able to print the background images in our ASP.NET Core report viewer sample. Please find the below steps for how to create a report with image background and print that report in our report viewer. 
 
1.      Add embedded image in you report as shown in below snap. 
 
 
 
2.      Right click the body item and choose the properties. 
 
 
 
3.      choose the image for background as shown in below snap. 
 
 
 
4.      Save the report and add the report in ASP.NET Core report viewer application. 
 
5.      Render the report in report viewer and click the print button the background image is shown in below snap. 
 
 
 
 
For your reference please find the below attached RDL file. 
 
The above suggestion did not meet your requirement then could you please share some additional details to provide the response. 
 
Regards, 
Vinoth S. 


Hassan
Replied On April 23, 2019 03:29 PM UTC

thanks for your support. unfortunately i tried but it didn't happen. i need the background to be printed in my print. is there any better solution ? Please Help
i would be appreciated if you answer me as soon as possible.

Attachment: Capture_7183cc45.rar

Vinoth Srinivasan [Syncfusion]
Replied On April 24, 2019 10:06 AM UTC

Hi Hassan, 
 
Images are not displayed in print preview due to passing content or stream to browser before loading the image tag. This can be avoided by increasing the value of the ‘printDelay’ property value as in the following code snippet. 
 
Index.cshtml: 
 
<ej-report-viewer id="reportviewer1" report-service-url="../Home" report-print="onPrintReport"/> 
<ej-script-manager></ej-script-manager> 
<script> 
    function onPrintReport(args) { 
            var data = $("#reportviewer1").data('ejReportViewer'); 
            if (data._browserInfo.name != "msie") 
            { 
                args.printWind.printDelay = 2000; 
            } 
            args.isStyleLoad = false; 
        } 
</script> 
 
Please find the below kb documentation for your reference. 
 
Regards, 
Vinoth S. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon