How to improve the performance faster - Reg.

Stimulsoft Ultimate discussion
shan
Posts: 51
Joined: Mon Nov 05, 2012 10:16 am

Re: How to improve the performance faster - Reg.

Post by shan »

Aleksey Andreyanov wrote:Hello.

Please, try the latest prerelease build there you will get the full error message.

Thank you.
Hi,
Currently i am using the version 2013.1.1600.0, Can u please specify version no. to use?

Regards,
Shan
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: How to improve the performance faster - Reg.

Post by Alex K. »

Hello,

Please check the 2013.2.1614 build from 2013.08.05

Thank you.
shan
Posts: 51
Joined: Mon Nov 05, 2012 10:16 am

Re: How to improve the performance faster - Reg.

Post by shan »

Aleksey wrote:Hello,

Please check the 2013.2.1614 build from 2013.08.05

Thank you.
Hi,
Thanks for your response, i will try the above mentioned build.
My template working fine by using the below mentioned code.
Code:
var report = new StiReport();
report.Load(path);
report.ReportCacheMode = StiReportCacheMode.Off;
report.Dictionary.Databases.Clear();
report.Dictionary.Databases.Add(new StiSqlDatabase("name", constr));
report.Dictionary.DataSources.Clear();
report.RegData("name", "name", ds);
report.Dictionary.Synchronize();
StiWebViewerFx1.View(report);

But it is slow while loading report, Is there anyway to improve loading. Also it try's to load whole report in a single time, i need the report to be generated page by page because if a PDF contains 100 pages instead waiting for 100 pages to load the user can see page1-3 while other pages load (i.e. OnDemand Load).

I need the performance faster you can suggest me some other options if possible.

Regards,
Shan
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: How to improve the performance faster - Reg.

Post by Alex K. »

Hello,
shan wrote:i need the report to be generated page by page because if a PDF contains 100 pages instead waiting for 100 pages to load the user can see page1-3 while other pages load (i.e. OnDemand Load).
Unfortunately, it is not possible.

Please try to split your report or use the additional filter for rendering and show by part.

Thank you.
shan
Posts: 51
Joined: Mon Nov 05, 2012 10:16 am

Re: How to improve the performance faster - Reg.

Post by shan »

Aleksey wrote:Hello,
shan wrote:i need the report to be generated page by page because if a PDF contains 100 pages instead waiting for 100 pages to load the user can see page1-3 while other pages load (i.e. OnDemand Load).
Unfortunately, it is not possible.

Please try to split your report or use the additional filter for rendering and show by part.

Thank you.
Hi,
My report contains just 100 pages, also it not contains much images it has only 2 to 3 small size images then what's the problem with the viewer.
how can i split report and show, because it is a single page design which render and show in single time. Can u please guide me how to improve the performance.

Regards,
Shan
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How to improve the performance faster - Reg.

Post by HighAley »

Hello, Shan.

Please, send us your report template with sample data which reproduces the issue for analysis.

Thank you.
shan
Posts: 51
Joined: Mon Nov 05, 2012 10:16 am

Re: How to improve the performance faster - Reg.

Post by shan »

Aleksey Andreyanov wrote:Hello, Shan.

Please, send us your report template with sample data which reproduces the issue for analysis.

Thank you.

Hi,
I found the problem which was reproduced the issue in my template. Actually my template was working well and good in the StiWebViewerFX, but the problem persists with the image components which was used in the report. If i delete all the image components from my template then the report was loading in the StiWebViewerFX was fine.
My report contains only 5 image components with the max. image size of 50kb (.jpg images).

I used the below code to assign the images in my template and also find the sample template attached for your reference.
if (report.Dictionary.Variables.Contains("ImgPath"))
{
report.Dictionary.Variables["ImgPath"].Value = Server.MapPath("") + "\\test.jpg";
}
In report i assigned the above path in the BeforePrint Event.

If any doubt let me know.

Thanks & Regards,
Shan
Attachments
Report.mrt
Sample Report
(39.54 KiB) Downloaded 332 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How to improve the performance faster - Reg.

Post by HighAley »

Hello.

The report is rendered on the server-side and passing to the WebViewerFx as mdc-file.
In this file every instance of the image is stored separately. So If there are 200 instances of these 5 images then there will be passed 200 images.
We will try to optimize this behaviour in feature.

Thank you.
Post Reply