Report errors - where did they go?

Stimulsoft Reports.WPF discussion
chris.procter
Posts: 32
Joined: Wed Jun 10, 2009 4:48 pm
Location: Edmonton

Report errors - where did they go?

Post by chris.procter »

When I used the .Net version of SS, if there was a problem on the report, the error exception or whatever would be displayed in a window at the bottom of the preview window in the designer.

In the .Wpf version, the preview pane appears not to refresh from it's previous contents, and no error message is visible anywhere.

Is there an option to display this information somewhere? I have two reports with problems, but I'm unable to solve them as I can't figure out the specific error.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Report errors - where did they go?

Post by Alex K. »

Hello,

Which version of Stimulsoft Reports.Wpf do you use?
Please send us your .MRT file for analysis.

Thank you.
chris.procter
Posts: 32
Joined: Wed Jun 10, 2009 4:48 pm
Location: Edmonton

Report errors - where did they go?

Post by chris.procter »

I'm using 2010.2.749 10 Aug 2010
I'm not sure how much help the reports would be, as they use a number of custom libraries, but I'll attached one here.

(I'm still also having some speed / memory issues when running our reports, but I've been unable to get any specific information so far.)
Attachments
545.ChequeContributors.mrt
(36.08 KiB) Downloaded 343 times
chris.procter
Posts: 32
Joined: Wed Jun 10, 2009 4:48 pm
Location: Edmonton

Report errors - where did they go?

Post by chris.procter »

I'm using 2010.2.749 10 Aug 2010
I'm not sure how much help the reports would be, as they use a number of custom libraries, but I'll attached one here.

(I'm still also having some speed / memory issues when running our reports, but I've been unable to get any specific information so far.)
Attachments
547.PayoutContributors.mrt
(33.82 KiB) Downloaded 329 times
chris.procter
Posts: 32
Joined: Wed Jun 10, 2009 4:48 pm
Location: Edmonton

Report errors - where did they go?

Post by chris.procter »

Whoops - attached wrong file. Here's the one.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Report errors - where did they go?

Post by Alex K. »

Hello,

We made some improvements in that direction about a week ago.
Please check the latest prerelease build and let us know about the result.

Thank you.
chris.procter
Posts: 32
Joined: Wed Jun 10, 2009 4:48 pm
Location: Edmonton

Report errors - where did they go?

Post by chris.procter »

I think I've figured out what the problem was:
We couldn't get the StiPropertiesProcessingType.Browsable option to work, so to prevent the report from traversing the entirety of our business objects (very slow), I converted only the required properties in to an anonymous type.
To avoid changing the report, I used nested anonymous types, ie:

Code: Select all

rm.RegData("RebatesInfo", rebates.Select(r => new {r.Amount, r.Type, r.Level, r.Date, Referral = (r.Referral== null) ? new {FullName="", Code = (int?)null} : new {r.Referral.FullName, r.Referral.Code}}));
which looks to have got converted in the report to

Code: Select all

        
          Amount,Pleasant.Numeric.Measures.DecimalMeasure`1[Pleasant.Numeric.Measures.Money]
          Type,Avena.Data.RebateType
          Level,System.Int32
          Date,System.DateTimeOffset
          Referral,<>f__AnonymousType2`2[System.String,System.Nullable`1[System.Int32]]
          _ID,System.Int32
          _Current,System.Object
        
That anonymous type doesn't seem to have let the report load properly, and (as I was saying earlier), the .Wpf version didn't display any error messages, so it just gave a blank report.
I've changed things to use only 1 level of anonymous typing, and I think it's working.
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Report errors - where did they go?

Post by Andrew »

Hello,

Could you please send us a sample project for investigation to support@stimulsoft.com .

Thank you.
chris.procter
Posts: 32
Joined: Wed Jun 10, 2009 4:48 pm
Location: Edmonton

Report errors - where did they go?

Post by chris.procter »

Hi - I've sent a sample project to that email. It looks like the problem also requires setting the BusinessObject.MaxLevel property to 1 (something we have to do to prevent a slow traversal of all our objects).
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Report errors - where did they go?

Post by Jan »

Hello,

Sorry we can't support anonymous types now. It required big amount of changes in our source codes abd we can't make it now.

Thank you.
Post Reply