Page 2 of 2

Re: Web Service StimulSoft Report Object???

Posted: Fri Feb 07, 2014 1:07 pm
by Alex K.
Hello,

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

Thank you.

Re: Web Service StimulSoft Report Object???

Posted: Mon Feb 10, 2014 6:59 am
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

Re: Web Service StimulSoft Report Object???

Posted: Mon Feb 10, 2014 11:35 am
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.

Re: Web Service StimulSoft Report Object???

Posted: Mon Feb 10, 2014 12:35 pm
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

Re: Web Service StimulSoft Report Object???

Posted: Tue Feb 11, 2014 7:00 am
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.

Re: Web Service StimulSoft Report Object???

Posted: Tue Feb 11, 2014 7:40 am
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 :)

Re: Web Service StimulSoft Report Object???

Posted: Tue Feb 11, 2014 10:09 am
by HighAley
Hello.

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

Thank you.

Re: Web Service StimulSoft Report Object???

Posted: Tue Feb 11, 2014 12:46 pm
by roomy
Thank You :) Aleksey for your best support!!!

Re: Web Service StimulSoft Report Object???

Posted: Wed Feb 12, 2014 2:45 am
by Andrew
Hello,

We are happy to help you.

Have a nice day!