This is a migrated thread and some comments may be shown as answers.

Silverlight deffered image rendering

8 Answers 80 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michael DeBerry
Top achievements
Rank 1
Michael DeBerry asked on 08 Jan 2010, 10:37 PM
Looking at the example reports that use the silverlight report viewer it seems that the images are being rendered in the background or are being downloaded after the report has been rendered.

Is this a feature? If so is there any documentation for this?

It seems that my report is waiting until the all the images are done loading before displaying anything.

Thanks

8 Answers, 1 is accepted

Sort by
0
Svetoslav
Telerik team
answered on 11 Jan 2010, 09:50 AM
Hello Michael,

The Silverlight report viewer displays XAML representation of the report pages as generated by the XAML rendering extensions. The PictureBox report item is rendered as Image control with BitmapImage as Source. All report resources (images) are obtained through the resource service. For more information please see Telerik Reporting WCF Service.

That said once the XAML of the report page is downloaded to the client and loaded into the viewer (that is the visual tree of the page is attached to the XAML page that hosts the viewer) it is time for the Silverlight runtime to request and display the images for all Image elements.

Anyway most of the sample reports utilize images and we have never seen the described behavior. Usually the report content is loaded and a few moments later the images start appearing. How fast the images will be downloaded and displayed depends on their number, the load of the web server that hosts the report service, the responsiveness of the application that hosts the viewer, etc.

Sincerely yours,
Svetoslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Michael DeBerry
Top achievements
Rank 1
answered on 11 Jan 2010, 04:05 PM
"Usually the report content is loaded and a few moments later the images start appearing."

This is the behavior that I am observing. I am running everything locally so that could possibly be the reason I do not see such a thing happening.

However, the generation of a report is terribly slow, is there any why to speed that up. I thought it may have been waiting for the images to load but I'm guessing that is not the case now. I only experience this with the silverlight viewer, the other viewers are almost instantaneous.

And to avoid making a new post, I can't seem to get the passing of parameters to work with the silverlight viewer as described here.
http://blogs.telerik.com/blogs/posts/09-12-07/programmatic_initialization_of_report_parameter_values_in_telerik_reporting_silverlight_viewer.aspx

I know that this feature is fairly new so could it be that this functionality is not included in the trial version?








0
Accepted
Steve
Telerik team
answered on 12 Jan 2010, 01:41 PM
Hello Michael,

The trial licenses of all Telerik products are fully functional and will work for an unlimited time but with a copyright message displayed, so all features are present and working in it.
Since you state that this slowdown is observed only when showing the reports in the Silverlight viewer, it must be something specific to your Silverlight app causing the slowdown. Please elaborate how you bind the report and provide more details about it. As my colleague explained, how fast the images will be downloaded and displayed depends on their number, load of web server hosting the report service, responsiveness of the application as a whole, etc.
Try removing the PictureBox item and see if that changes anything. If that's not it, you can try to further isolate the issue by stripping items/sections from your report until you pinpoint the culprit.
Without a runnable sample project on our end, it is very hard to give appropriate advise especially when it comes down to making something work faster/better. That is why we would appreciate if you send us a sample application that we can run on our end and observe the problem you've elaborated on. Once we review it, we would be able to provide you with more info.

As for your second question, the blog post is aiming at our Product Line Sales demo report and you can make the suggested changes directly in our Visual Studio examples to see them in action.

Sincerely yours,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Michael DeBerry
Top achievements
Rank 1
answered on 12 Jan 2010, 04:43 PM
I was able to get the parameters working and I will investigate the performance issues more before I post anything, I have created a few different report types now and others have performed well.

I have the importing of reports working again.

Do you plan on supporting Active Reports 6 anytime in the future?

Thank you
0
Steve
Telerik team
answered on 13 Jan 2010, 07:52 AM
Hello Michael,

We do have the update of the conversion wizard in our plans but it is with lower priority than all other tasks which are directly involved with the Reporting product, while the converters are kind of "external" utilities. Still we keep track of them and would update it, but cannot engage with a time frame at this point.

Thank you for the understanding.

Sincerely yours,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Steve
Top achievements
Rank 1
answered on 16 Feb 2010, 10:06 PM
Hi Michael, Seems I am exactly where you were at back in January:

A) Rendering the report in Silverlight seems really slow (sometimes the call the WCF service times out)
B) I cannot get the parameters working.

I can look into the speed thing later but I am really hung up on the parameter passing. What is the trick. I have on Parameter in my report, but the BeginRender method on my Silverlight app shows 0 parameters.

The following is a copy of a post I put on a different thread:

Been trying to get this to work with no success. I am using version 3.2.9.1211.

BTW.. I downloaded the version referenced by the link above "Latest Internal Builds" and it was an outdated version that does not support the "RenderBegin" event.

Anyway, I think I am doing everything as recomended but my parameter does not get passed to the server.
        void xReportViewer_RenderBegin(object sender, Telerik.ReportViewer.Silverlight.RenderBeginEventArgs args)
        {
// I tried both
            args.ParameterValues.Add("SVClientId", 76);
// And
            //args.ParameterValues["SVClientId"] = 76;
        }

What am I missing? Debugging the report library I see there is a parmeter of "SVClientId" for the report but it's value is "null".
0
Michael DeBerry
Top achievements
Rank 1
answered on 17 Feb 2010, 03:49 PM
I am using this method args.ParameterValues["SVClientId"] = 76; to add the parameters.

My problem was not with the setting of the parameters though, it was the way that I was trying to access them. If you are handling on of the events such as NeedDataSource you can't use the convention of

this.ReportParameter["SVClient"].value ;

you have to reference the sender which would be of a different type like this

(sender as Processing.Report).Parameters["SVClient"] ;

Also know that you can't access parameters in the constructor because they are not going to be set until after the instance is created.

Hope this helps.

0
Steve
Telerik team
answered on 18 Feb 2010, 06:11 PM
Hi Steve,

You have our Silverlight demo reports at your disposal (Visual Studio examples), so please use the Product Line Sales report and apply the changes outlined in the Programmatic Initialization of Report Parameter Values in Telerik Reporting Silverlight Viewer KB article to verify that they are working as expected. Then you can compare the differences between the provided Silverlight application and yours.

Best wishes,
Steve
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
Michael DeBerry
Top achievements
Rank 1
Answers by
Svetoslav
Telerik team
Michael DeBerry
Top achievements
Rank 1
Steve
Telerik team
Steve
Top achievements
Rank 1
Share this question
or