Page 1 of 1
Create report using webservices
Posted: Tue Jan 15, 2008 8:42 am
by rmeshksar
Is it possible to use webservices as datasource to create report with Stimulsoft Report?
Create report using webservices
Posted: Tue Jan 15, 2008 5:08 pm
by Vital
Please provide more information about your webservice's.
Thank you.
Create report using webservices
Posted: Mon Feb 11, 2008 10:11 am
by rmeshksar
Suppose that I have a webservice returning an XML as a result.
Now I want to be able in Stimulsoft report designer call that webservice by its url and get the returning XML and create a report based on that.
Is it possible?
Create report using webservices
Posted: Mon Feb 11, 2008 11:28 pm
by Edward
rmeshksar wrote:Suppose that I have a webservice returning an XML as a result.
Now I want to be able in Stimulsoft report designer call that webservice by its url and get the returning XML and create a report based on that.
Is it possible?
Yes, it is possible. Inside the designer any own defined functions are possible. Here an example on how to use them:
http://www.stimulsoft.com/livedemos/Rep ... ction.html
Report templates can be stored and loaded in/from string via the following methods:
Code: Select all
string s = report.SaveToString();
report.LoadFromString(string);
So you can use a data from any source for sending/receiving data or the report templates.
Thank you.
Create report using webservices
Posted: Fri Feb 15, 2008 3:24 pm
by rmeshksar
Sorry, It seems my questions have not been that clear.
I want to design a report JUST by using standalone report designer and not inside VS2005.
My datasource is a webservice that has a link and returns a typed dataset.
In stanalone report designer, How can I use that webservice as a datasource?
As an example use the following like to get some result
http://xoap.weather.com/weather/local/N ... =xoap&par=[your-partner-id]&key=[your-license-key]
Now I want to design a report using the returned result from the link above.
Thanks.
Create report using webservices
Posted: Fri Feb 15, 2008 4:06 pm
by Vital
For example you can use following code:
Code: Select all
DataSet dataSet = new DataSet();
dataSet.ReadXml(xmlSource);//Read your typed dataset for example from string which you get from webservice
StiReport report = new StiReport();
report.RegData(typedDataSet);//Register created dataset
report.Dictionary.Synchronize();
report.Design();//Call report designer
Thank you.