Issue about report after complie!
Posted: Tue May 17, 2011 9:32 am
Hello,
I am trying to use report.complie(), and it works fine. But i have an issue when i have databand that bind to list of objects.
First time, i compile and create the dll, it works fine and i can see list of items in the exported pdf!
But second time, when use :
_report = StiReport.GetReportFromAssembly(dll_name);
_report.Dictionary.BusinessObjects.Clear();
_report.Dictionary.BusinessObjects.Add(CurrentBusinessObject);
_report.RegBusinessObject(CurrentBusinessObject.Category, CurrentBusinessObject.Name, CurrentBusinessObject.BusinessObjectValue);
_report.Dictionary.SynchronizeBusinessObjects();
_report.Render(false);
It just show one item in the exported pdf! ( not the list of items)
for example, first time i can see 10 items printed in the pdf. But the second time when the dll is already created, i just can see one item
Is this work with complied report, or should i do something special to let it work!
Regards,
Jalal
I am trying to use report.complie(), and it works fine. But i have an issue when i have databand that bind to list of objects.
First time, i compile and create the dll, it works fine and i can see list of items in the exported pdf!
But second time, when use :
_report = StiReport.GetReportFromAssembly(dll_name);
_report.Dictionary.BusinessObjects.Clear();
_report.Dictionary.BusinessObjects.Add(CurrentBusinessObject);
_report.RegBusinessObject(CurrentBusinessObject.Category, CurrentBusinessObject.Name, CurrentBusinessObject.BusinessObjectValue);
_report.Dictionary.SynchronizeBusinessObjects();
_report.Render(false);
It just show one item in the exported pdf! ( not the list of items)
for example, first time i can see 10 items printed in the pdf. But the second time when the dll is already created, i just can see one item
Is this work with complied report, or should i do something special to let it work!
Regards,
Jalal