Image in report error

Stimulsoft Reports.Silverlight discussion
fama_0
Posts: 15
Joined: Mon Dec 06, 2010 3:24 pm

Image in report error

Post by fama_0 »

Are images in reports supported for Silverlight client generated reports? I modified an existing working report by adding an image and the next time that I tried to run it it fired an exception mentioning something about not supporting packaged reports.

I tried getting around this packaged issue problem by saving the report as a "CSharp file for Silverlight report", but this is apparently not working yet. It adds a reference to System.Data (which is not in silverlight) and Visual Studio marks "this.ReportResources" as not being found.
Is there any way that I could currently get an image to display on a silverlight report using only data that is found in the silverlight application (ie. no internet access)?
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Image in report error

Post by Andrew »

Hello,

Packed files in silverlight are not supported and will not be supported. Only .Mrt files can be opened.
Please send us a sample of your report. We will investigate it.

>>Is there any way that I could currently get an image to display on a silverlight report using only data that is found in the silverlight application (ie. no internet access)?

You need to create your Business Objects which contain images. Then you will be able to show them.

Thank you.
fama_0
Posts: 15
Joined: Mon Dec 06, 2010 3:24 pm

Image in report error

Post by fama_0 »

Alright, I will add the image to my business object and put the business object in the "Image Data" tab for the Image control. However, before I try, what format should this image data be in? Should it be a string? a byte array?

Once I know the format, this will be an acceptable method of inserting the image
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Image in report error

Post by Andrew »

Hello,

We did not test using images with business objects. Because this is Silverlight, then, most likely, sending and image via BitmapImage it will be loaded without any problems. If it does not work, please let us know about this, we will try to add the parsing of the image from the string.

Thank you.
fama_0
Posts: 15
Joined: Mon Dec 06, 2010 3:24 pm

Image in report error

Post by fama_0 »

I have tried making the BusinessObject a BitmapImage, but that prevents the Windows Form ReportGeneratorApp from opening since it can't find the System.Windows reference which contains BitmapImage because that is a Silverlight reference. I did try to set it by making the BitmapImage an object, but that still didn't work.

It might work if I was creating the report in the Silverlight designer so I will try creating a Silverlight report generation app instead of a Windows form one. I will let you know later today if that works.
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Image in report error

Post by Jan »

Ok. Please inform us about results.

Thank you.
fama_0
Posts: 15
Joined: Mon Dec 06, 2010 3:24 pm

Image in report error

Post by fama_0 »

Took me a while to get some free time to do this, but I was not able to test it properly. The report generation in silverlight opens, but I'm not able to do the "Retrieve Columns" when editing the report data. It just comes up with a blank list with just "Columns" appearing. Is that supposed to be working?
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Image in report error

Post by Andrew »

Hello,

We have fixed the error. The update will be available in the prerelease on 18-January-2011.

Thank you.
fama_0
Posts: 15
Joined: Mon Dec 06, 2010 3:24 pm

Image in report error

Post by fama_0 »

Has the fix has gone out for the missing Retrieve Columns error? I'm using the newest version from March 9th and if I hit "Retrieve Columns" I just get a window with a "Columns" root and nothing else. I guess I will try to add what I need manually right now. Let me know if anything changes, this is a very important feature.
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Image in report error

Post by Andrew »

Hello,

We found and fixed one problem in the "Retrieve Columns". Please check the next prerelease build that will be available this week. If you find anything more please write us, we will fix.

Thank you.
Locked