Hi all,
I have earlier reported about some errors in the webviewer control and now I have created a sample project that can reproduce the errors. Theese are the errors that occurs in my project;
Q 1) Formatting in the webviewer is wrong. Text is places outside the viewer (see screen dump in the attached file)
Q 2) The data is generated in a "business layer" and is static in the sample project. When updating the page (hitting F5 in IE), the data sometimes get corrupts (eg. ActiveReports displays the wrong field from time to time).
The attached zip file consist of the following items created with Visual Studio 2005 and a triel version of ActiveReports;
Project: BusinessLayer SampleFilling.csThe is the sample files that creates the data. SampleFillings is a component that should be displayed in some reports. This class has lots of properties and sometimes ActiveReports displays this properties wrong. BusinessStore.csThe class generates data to the report enging. It creates 100 instances of the SampleFilling class. The instances are identical. Project: ReportGenerator TapReportGenerator.csThis class generates the actual report. In a real world application, this project will be used by multiple applications and will create a lot of different reports. Now it has a function that creates "FillingsReport"FillingsReport.rpxSamle ActiveReport that displays the fields; FillingID, FillTime, VolumeText, TerminalName Project: Web The sample application is a web application that does the following uner the page load event; // Generate the factory that shall create the dataBusinessStore store = new BusinessStore();// Create sample data List<SampleFilling> customers = store.GetFillings();// Create a report with the data as sourceActiveReport report = TapReportGenerator.GenerateFillingsReport(customers);// Connect the viewer with the reportWebViewer1.Report = report;
Project: BusinessLayer
SampleFilling.csThe is the sample files that creates the data. SampleFillings is a component that should be displayed in some reports. This class has lots of properties and sometimes ActiveReports displays this properties wrong. BusinessStore.csThe class generates data to the report enging. It creates 100 instances of the SampleFilling class. The instances are identical.
Project: ReportGenerator
TapReportGenerator.csThis class generates the actual report. In a real world application, this project will be used by multiple applications and will create a lot of different reports. Now it has a function that creates "FillingsReport"FillingsReport.rpxSamle ActiveReport that displays the fields; FillingID, FillTime, VolumeText, TerminalName
Project: Web
The sample application is a web application that does the following uner the page load event; // Generate the factory that shall create the dataBusinessStore store = new BusinessStore();// Create sample data List<SampleFilling> customers = store.GetFillings();// Create a report with the data as sourceActiveReport report = TapReportGenerator.GenerateFillingsReport(customers);// Connect the viewer with the reportWebViewer1.Report = report;
The sample application is a web application that does the following uner the page load event;
// Generate the factory that shall create the data
The projects are very basic but it fills my purpose to reproduce the errors. In the real world application the sample (MyFilling) class is more advanced and retrieves the data from an SQL-server.
Best regards
Robert Warnestam
This thread is a follow up for "Sample for unbound report", see http://www.datadynamics.com/forums/87722/ShowPost.aspx). Another similar thead can be found at http://www.datadynamics.com/forums/88043/ShowPost.aspx
brian-dd wrote:There may be an issue with ActiveReports binding to the nullable data types. Just posting so you know it is being looked at.Edit:Is it possable to take the IListBindingSample and make that replicate this behavior it may help in narrowing the issue.
Q1) When are you expecting to launch a release of ActiveReports where this issue is fixed?
Q2) What about the "outside frame" bahavior?
Sorry if I'm repeating myself. But I need an answer from DataDynamics.
Q1) Has this bug an CR#? Is there any particular build it is scheduled to be fixed in?
Q2) Is this a bug, feature or am I just doing something wrong?
I updated to the latest version and the behavior of the webwiever is now ok.
"...datasource being lost when refreshing the page."
This isn't the correct description of the problem (Q1). The main problem is that the report shows data from wrong fields (eg. properties in my business object). Brian wrote earlier that this could be a problem with nullable types. Anyway, is this problem registrerated in CR# 20670, how do I know the status of the CR?
Regards
Robert
Peter Power - DD wrote:Robert, I attached your sample when submitting the CR. Our development team will be using your sample to reproduce the problem, so they will be addressing your issue when working on the CR. The CR is currently open. You can contact me to ask the status of the CR periodically and I will look up the status in our internal tracking system.
Hi again,
The summer has past and another three months... Whats the status of the CR?
/Robert
Have done more investigation about the problem. I updated the test project. The windows application now can show two types of data (one with nullable properties and one without) - the problem has nothing to to with nullable types. When refreshing the data, the report fields can eventually get data from a wrong propery of my class.
Please, can some member from DataDynamics please take a serious look at this problem.
Ali,
Thanks for your reply. So I have to use the IList interface! Are you planning to support List<T> in the future?
Thanks again, finally I can move on...
I just did a fast translation and exported my List<T> object to an ArrayList which I then connected to the DataSource of the report. Unfortunatly I expirenced the same problem. ArrayList implements IList, why doesn't this work?
Ali - DD wrote:Robert,The developer closed this issue and marked it "As Designed" because you cannot use Generics yet with ActiveReports. He updated your earlier sample so that it doesn't use Generics and I attached it here. Let me know if you still have this problem even if you don't use Generics.
By searching the threads I can see that there are other developers besides me that uses generics with ActiveReports - it can be done!
I took a closer look at the sample and I have been able to reproduce the same problem even with that. I have updated the sample one more time, now there are two reports side by side. The report to the left is using the code that you (or your developer) suggested and the other one is still using generics. Note that the problem does not show up every time, sometime I need to refresh the page up to fifty times before it happens. And when it happens both reports (even the one with your suggested code) becomes faulty and shows data from wrong properties.
I think you have to open a case for the error and study this problem a bit deeper.