Page 1 of 1
report with Business objects
Posted: Fri Oct 21, 2011 12:01 am
by Chasoo
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
Posted: Fri Oct 21, 2011 5:02 am
by HighAley
Hello.
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?
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.
Thank you.
report with Business objects
Posted: Thu Oct 27, 2011 11:24 pm
by Chasoo
Hi ,
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);
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
report with Business objects
Posted: Mon Oct 31, 2011 4:34 am
by Alex K.
Hello,
If you want to display data in the WebDesigner in prewiew, you need to implement the GetPreviewDataSet method for a designer.
Thank you.