My preview is broken

Stimulsoft Reports.NET discussion
patwolf
Posts: 90
Joined: Thu May 29, 2008 1:38 pm
Location: Los Angles

My preview is broken

Post by patwolf »

Hi,

ok I set up the report in code and then call:
report.Show();
The report renders but then shows an empty preview window. It even says page 1 of 36 and the slider bars on the side have the size that they would fit 36 pages but there is no page displayed at all just a blue background.

If I call report.Design();
and then press preview everything works fine.

Any idea of what this could be?

Thanks,
Patrick

Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

My preview is broken

Post by Edward »

Hi Patrick,

It is difficult to say something definite.

That we would do in this case is to call the following command for both cases:

report.Save("myReport.mrt") before and after calling the designer.

Then we would compare these files using the following utility:

http://downloads.sourceforge.net/winmer ... -Setup.exe

Thank you.
patwolf
Posts: 90
Joined: Thu May 29, 2008 1:38 pm
Location: Los Angles

My preview is broken

Post by patwolf »

I saved both the preview and design one before and after I called report.Design() / report.Show() and there is no difference to be found in any of them.

By the way the report.Show() doesn't work at all anymore... The progress bar for report generations comes and then closes again and then the code just hangs on report.Show() for hours...

This all only happened after upgrading to the latest version by the way.. So maybe I need to go back to an older version.

Thanks,
Patrick
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

My preview is broken

Post by Vital »

Hello,

Please check latest build.

Thank you.
patwolf
Posts: 90
Joined: Thu May 29, 2008 1:38 pm
Location: Los Angles

My preview is broken

Post by patwolf »

Vital wrote:Please check latest build.
The only difference between mine 9.Feb and the latest build is:
16 Feb 2009
Add: Now HTML tags can be used in exports to PDF, HTML and Rtf as a text.
Fix: Control symbols are displayed correctly in EAN128a, EAN128b.
Fix: Some corrections in the Chart Styles.

So that shouldn't really make a difference.

Thanks,
Patrick
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

My preview is broken

Post by Jan »

Hello Patrick,

Please check latest build. Not all changes and fixes displayed in changes topics.

Thank you.

patwolf
Posts: 90
Joined: Thu May 29, 2008 1:38 pm
Location: Los Angles

My preview is broken

Post by patwolf »

Jan wrote:Please check latest build. Not all changes and fixes displayed in changes topics.
Ok I upgraded but the problem is still the same.

Thank you,
Patrick
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

My preview is broken

Post by Jan »

Hello Patrick,

Please check following code:

Code: Select all

report.Render(false);
report.Show();
Let me know about results.

This problem occurs for any reports or for all?


Thank you.
patwolf
Posts: 90
Joined: Thu May 29, 2008 1:38 pm
Location: Los Angles

My preview is broken

Post by patwolf »

Hi,

very sorry the problem had nothing to do with you :)

I used this code to cleanup the cache after showing the report...
report.Show();
ReportManager.CleanupReportResources(report);

but report.Show() continues before the preview is closed so all pages were deleted before they could be shown :(...
This one only continues after the preview is closed and works correctly now:
report.Show(this.Parent.Parent);
ReportManager.CleanupReportResources(report);

Thanks,
Patrick
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

My preview is broken

Post by Jan »

Hello Patrick,

Please check your EMail.

Thank you.
Post Reply