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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ReportViewer external image?

Thread ID:

Created:

Updated:

Platform:

Replies:

121191 Nov 18,2015 02:54 AM UTC Jun 16,2017 12:11 PM UTC WPF 7
loading
Tags: ReportViewer
Ven
Asked On November 18, 2015 02:54 AM UTC

Hi Is it possible to set a parameter for a image then get the location of the file and the image will be shown in the report based on the location of the image file?



Anandakumar S [Syncfusion]
Replied On November 18, 2015 07:02 AM UTC

Hi Ven,

Yes, Syncfusion ReportViewer have support to view external images. We have prepared a sample to use ReportParameter as image location which gets image path from code behind using SetParameters() API and it can be downloaded from the following location.
http://www.syncfusion.com/downloads/support/forum/121174/EXTERN~11809593332.ZIP

Regards,
Anandakumar S

Ven
Replied On November 18, 2015 07:54 AM UTC

Sir in the sample that you send to me the image isn't showing? can you give me a video tutorial about that?

Thanks,

Anandakumar S [Syncfusion]
Replied On November 18, 2015 09:13 AM UTC

Hi Ven,

The previously shared sample gets image from the application folder location which is passed to parameter value and set to ReportViewer using SetParameters() API. We have prepared a video sample of the application and it can be downloaded from the following location.
http://www.syncfusion.com/downloads/support/forum/121174/ze/ExternalImage1029490323

If you still face the issue in viewing the shared sample then share your Syncfusion Essential studio version details with us.

Regards,
Anandakumar S

Nandish NR
Replied On June 3, 2017 12:11 PM UTC

Hi Ven,

The previously shared sample gets image from the application folder location which is passed to parameter value and set to ReportViewer using SetParameters() API. We have prepared a video sample of the application and it can be downloaded from the following location.
http://www.syncfusion.com/downloads/support/forum/121174/ze/ExternalImage1029490323

If you still face the issue in viewing the shared sample then share your Syncfusion Essential studio version details with us.

Regards,
Anandakumar S

Hi,

I have followed the steps shared in the sample. However, report is not generating, instead i can see only progress till an long time. After SetParameter(), what function i need to call to save pdf report in preferred location.

I have created, Report viewer instance in .cs and binding report path from locally.

Using ReportWriter, i can able to generate report. However, image is not displaying in generated report. Can you suggest me the best approach to generate report with dynamic image path as pdf.

Regards,
Nandish N R

Vinoth Srinivasan [Syncfusion]
Replied On June 5, 2017 01:55 PM UTC

Hi Ven, 
 
Query 
Response 
I have followed the steps shared in the sample. However, report is not generating, instead i can see only progress till an long time. After SetParameter(), what function i need to call to save pdf report in preferred location. 
 
I have created, Report viewer instance in .cs and binding report path from locally. 
 
You have to call refreshreport() method after SetParameter() method to render the report. Also, if you want to export the report as PDF from report viewer, then you can use the built-in export option in the viewer to export the report. 
Using ReportWriter, i can able to generate report. However, image is not displaying in generated report.  
We request you to provide the image path as parameter and set the image source as “External Type” to export the report with image as PDF. We have prepared sample based on this and it can downloaded from the following location. 
 
Also you can use RDLC report type and convert the image as bytes, assign it to the business data objects and use them to ReportWriter datasource property in code behind. 
 
 
Can you suggest me the best approach to generate report with dynamic image path as pdf 
We can use the ReportWriter class to directly export the reports into PDF without viewing the report output. 
 
Regards, 
Vinoth S. 


Nandish NR
Replied On June 11, 2017 03:12 PM UTC

Hi,

Generated pdf from attached sample program. However, pdf generated with error. please find the attached pdf file and screen shot of error for reference.

Both attached sample are with same error output. If we remove image parameter, pdf will generate with out error.


Vinoth Srinivasan [Syncfusion]
Replied On June 12, 2017 10:46 AM UTC

Hi Nandish, 
 
We were able to export the report with image as PDF at our end from both the shared samples. We have prepared a video demo based on this and it can be downloaded from the following location. 
 
 
If you still face any issue then we request you to modify the previously shared sample to reproduce the problem at our end. It will be helpful for us to validate the problem at our end. 
 
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.

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

;