Can we create a report with Business object as it's data source.? if yes can we add dynamic data sources(using Linq/HQL queries) run time?
Tnx in advanced
report with Business objects
report with Business objects
Hello.
Thank you.
You can use Business objects in Stimulsoft Reports Designer.Web, except one moment: you can't add Business object as Data Source in the Designer Dictionary. You can add it with code report.regBisunessObject() or in WinForms Designer.Chasoo wrote:Can we create a report with Business object as it's data source.? if yes can we add dynamic data sources(using Linq/HQL queries) run time?
Thank you.
report with Business objects
Hi ,
I have tried the way u have advised.
but when i got the designer view data source is not bound.if i try to preview the report data is not there.
here i have attached the screen shot of it.

tnx
chaminda
I have tried the way u have advised.
Code: Select all
var report = new StiReport();
var dataContext = new DataContext();
var custQuery =
from cust in dataContext.Customers.AsEnumerable()
where cust.City == "London"
select cust;
report.RegData("Customer", custQuery);
report.RegBusinessObject("Customer2", custQuery);
webDesigner.Design(report);
here i have attached the screen shot of it.

tnx
chaminda
report with Business objects
Hello,
If you want to display data in the WebDesigner in prewiew, you need to implement the GetPreviewDataSet method for a designer.
Thank you.
If you want to display data in the WebDesigner in prewiew, you need to implement the GetPreviewDataSet method for a designer.
Thank you.