Problem with webviewer control: corrupt data and formatting error


05-02-2006, 10:21 AM

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.cs
The 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.cs
The class generates data to the report enging. It creates 100 instances of the SampleFilling class. The instances are identical.

Project: ReportGenerator

TapReportGenerator.cs
This 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.rpx
Samle 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 data
BusinessStore store = new BusinessStore();
// Create sample data
List<SampleFilling> customers = store.GetFillings();
// Create a report with the data as source
ActiveReport report = TapReportGenerator.GenerateFillingsReport(customers);
// Connect the viewer with the report
WebViewer1.Report = report;

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

Re: Problem with webviewer control: corrupt data and formatting error


05-02-2006, 10:23 AM
Here is the output from the web project. Two outputs is side by side, one where the data is corrupt.

Re: Problem with webviewer control: corrupt data and formatting error


05-03-2006, 1:07 PM
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.

Re: Problem with webviewer control: corrupt data and formatting error


05-08-2006, 2:57 PM

 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?

Re: Problem with webviewer control: corrupt data and formatting error


05-29-2006, 4:18 AM

 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.

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?

Best regards

 

Re: Problem with webviewer control: corrupt data and formatting error


05-30-2006, 11:23 AM
I was able to reproduce the issue regarding the datasource being lost when refreshing the page. I have submitted a CR to our development team regarding the issue (CR# 20670). Your e-mail address and sample project was attached to the CR. The second issue regarding text going outside of the viewer's frame I was not able to reproduce against the latest build (1238). Try updating to the latest build for the product and see if this issue still persists.

Re: Problem with webviewer control: corrupt data and formatting error


06-01-2006, 4:25 AM

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

Re: Problem with webviewer control: corrupt data and formatting error


06-01-2006, 3:20 PM
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.

Re: Problem with webviewer control: corrupt data and formatting error


09-05-2006, 2:08 AM

 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

Re: Problem with webviewer control: corrupt data and formatting error


09-05-2006, 2:39 AM

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.

 

Re: Problem with webviewer control: corrupt data and formatting error


09-05-2006, 8:56 AM
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.

Data Dynamics Support Staff

Re: Problem with webviewer control: corrupt data and formatting error


09-05-2006, 9:42 AM

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...

/Robert

Re: Problem with webviewer control: corrupt data and formatting error


09-05-2006, 9:51 AM
Yes, but I am not sure when support for Generics will be supported. I personally believe it should be high on the list.

Data Dynamics Support Staff

Re: Problem with webviewer control: corrupt data and formatting error


09-05-2006, 10:10 AM

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?

 

Re: Problem with webviewer control: corrupt data and formatting error


09-07-2006, 4:13 AM

 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.

Ali,

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.