Web Service StimulSoft Report Object???

Stimulsoft Reports.NET discussion
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Web Service StimulSoft Report Object???

Post by Alex K. »

Hello,

Please send us a sample project with test data which reproduce the issue for analysis.

Thank you.
roomy
Posts: 61
Joined: Mon May 06, 2013 12:34 pm

Re: Web Service StimulSoft Report Object???

Post by roomy »

Please find the sample project. You may need to change few path in that project.
Dummy.rar
(11.95 KiB) Downloaded 219 times
Thanks
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Web Service StimulSoft Report Object???

Post by HighAley »

Hello.

1. The report should be rendered with Render() method before calling SaveDocumentToString() method.
2. LoadDocumentFromString() method load rendered pages of report into the RenderedPages collection.
3. In the SubReports.Add() method you should add report template but not the rendered report because the joint report is rendered to new collection of Rendered Pages.

So one way out is to pass from service the report template. You could do it with SaveToString() and Load() methods.

Other way is to join rendered pages of reports:

Code: Select all

            for (int i = 1; i < repCount; i++)
            {
                StiReport repDeatil = new StiReport();
                repDeatil.Load(@"d:\a.mrt");
                repDeatil.Render();
                foreach (StiPage repPage in repDeatil.RenderedPages)
                {
                    repPage.Report = mainReport;
                    mainReport.RenderedPages.Add(repPage);
                }
            }
Thank you.
roomy
Posts: 61
Joined: Mon May 06, 2013 12:34 pm

Re: Web Service StimulSoft Report Object???

Post by roomy »

Is there any method to join rendered reports together????
Aleksey Andreyanov wrote: So one way out is to pass from service the report template. You could do it with SaveToString() and Load() methods.
SaveToString() returns template in string format but the data is still missing. Did you mean that I need to get data and report template standalone from service???

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

Re: Web Service StimulSoft Report Object???

Post by HighAley »

Hello.
roomy wrote:Is there any method to join rendered reports together????
Please, read second part of the previous answer.
roomy wrote:SaveToString() returns template in string format but the data is still missing. Did you mean that I need to get data and report template standalone from service???
In this case your should also pass the data.

Thank you.
roomy
Posts: 61
Joined: Mon May 06, 2013 12:34 pm

Re: Web Service StimulSoft Report Object???

Post by roomy »

Thank You Aleksey.

I get that. Will you please tell me should I need to call compile() and render() because I noticed render() can create report individual as well.

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

Re: Web Service StimulSoft Report Object???

Post by HighAley »

Hello.

It's not necessary to call Compile() method exactly before Render() method. It will be called automatically.

Thank you.
roomy
Posts: 61
Joined: Mon May 06, 2013 12:34 pm

Re: Web Service StimulSoft Report Object???

Post by roomy »

Thank You :) Aleksey for your best support!!!
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Re: Web Service StimulSoft Report Object???

Post by Andrew »

Hello,

We are happy to help you.

Have a nice day!
Post Reply