Web Service StimulSoft Report Object???
Web Service StimulSoft Report Object???
I am looking for your valuable suggetion basiclly I am using a web service to report and have two opetions ...
First one is web service just send xml data to my application and I create mrt report in that application using this xml data.
And the second is web service return StiReport object (Already create report with data) and show in my application.
But here I sceared about the performence of my application. which one is better approach? and Returened StiReport Object create speed issue here.
I am looking for your valuable suggession on to that.
Thanks,
Roomy
First one is web service just send xml data to my application and I create mrt report in that application using this xml data.
And the second is web service return StiReport object (Already create report with data) and show in my application.
But here I sceared about the performence of my application. which one is better approach? and Returened StiReport Object create speed issue here.
I am looking for your valuable suggession on to that.
Thanks,
Roomy
Re: Web Service StimulSoft Report Object???
Can i use [Serializable()] with stireports?
Re: Web Service StimulSoft Report Object???
Hello,
Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?
Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?
Re: Web Service StimulSoft Report Object???
I am looking to create a web service which can return serialized stimulsoft StiReport object.
Re: Web Service StimulSoft Report Object???
Hello,
Could you, please clarify why do you need this? Why do you find the standard methods Save, SaveToString etc. in the report not appropiate?
Could you, please clarify why do you need this? Why do you find the standard methods Save, SaveToString etc. in the report not appropiate?
Re: Web Service StimulSoft Report Object???
Hi,
Could I save the mrt report with data in string format??? because it is easy to return string from a web service.
thanks.
Could I save the mrt report with data in string format??? because it is easy to return string from a web service.
thanks.
Re: Web Service StimulSoft Report Object???
Hello.
You could save rendered report to string with SaveDocumentToString() method.
Thank you.
You could save rendered report to string with SaveDocumentToString() method.
Thank you.
Re: Web Service StimulSoft Report Object???
Thanks its work fine.
here I have two code line in MainReport() to create pdf from report:
1. this line work fine and create pdf as I require for a single "ID".
2. But when i try to create a joined report for all ID passed one by one I got a blank pdf file.
Code: Select all
public string GetRpt(int id)
{
StiReport report1 = new StiReport();
......
......
report1.RegData(ds);
report1.Dictionary.Synchronize();
report1.Compile();
report1.Render();
return(report.SaveDocumentToString());
}
public void MainReport()
{
//ids get from DB.
...........
...........
...........
StiReport JoinReports = new StiReport();
foreach (int id in arraylist)
{
string str = GetRpt(id);
StiReport subReport = new StiReport();
subReport.LoadDocumentFromString(str);
subReport.ExportDocument(Stimulsoft.Report.StiExportFormat.Pdf, reportPath);
JoinReports.SubReports.Add(subreports);
}
JoinReports.ExportDocument(Stimulsoft.Report.StiExportFormat.Pdf, reportPath);
}
}
1.
Code: Select all
subReport.ExportDocument(Stimulsoft.Report.StiExportFormat.Pdf, reportPath);
2. But when i try to create a joined report for all ID passed one by one I got a blank pdf file.
Code: Select all
//Add subreport to JoinReports.
JoinReports.SubReports.Add(subreports);
//Create join pdf file but its blank... :(
JoinReports.ExportDocument(Stimulsoft.Report.StiExportFormat.Pdf, reportPath);
Re: Web Service StimulSoft Report Object???
Hello,
Please try to use the Render() method before export.
Thank you.
Please try to use the Render() method before export.
Thank you.
Re: Web Service StimulSoft Report Object???
I try that but still page is blank.