Combining reports dynamically - print blanks the report
Combining reports dynamically - print blanks the report
We are working on a complex Letters solution, which is supposed to combine Compiled Template's during processing, to create a single Report for the user.
We plan to allow straight through printing, PDF generation, Previewing, and minor editing.
We are having trouble with the Preview. When I try the 'Print' button from the preview, the combined Report disappears, and we are left with a blank report.
We are using 2013.2.1700.0
Attached is a cut down sample of our project in C# WinForms .Net 4.
https://dl.dropboxusercontent.com/u/262 ... ewTest.zip
We plan to allow straight through printing, PDF generation, Previewing, and minor editing.
We are having trouble with the Preview. When I try the 'Print' button from the preview, the combined Report disappears, and we are left with a blank report.
We are using 2013.2.1700.0
Attached is a cut down sample of our project in C# WinForms .Net 4.
https://dl.dropboxusercontent.com/u/262 ... ewTest.zip
- Attachments
-
- FormViewTest.zip
- (28.72 KiB) Downloaded 301 times
Re: Combining reports dynamically - print blanks the report
Hello,
We couldn't reproduce this bug.
Please try to check the last build.
Thank you.
We couldn't reproduce this bug.
Please try to check the last build.
Thank you.
- Attachments
-
- Capture.PNG (65.32 KiB) Viewed 3297 times
Re: Combining reports dynamically - print blanks the report
Updated to latest version of Stimulsoft.
Retested issue. The bug still exists.
Pressing the 'print' button causes Report to disappear.
I have attached a video (animated GIF) of the issue.
Retested issue. The bug still exists.
Pressing the 'print' button causes Report to disappear.
I have attached a video (animated GIF) of the issue.
Re: Combining reports dynamically - print blanks the report
Hello.
You should add two lines of code to your project:
Without this properties the report is compiled and rendered again. In your case this is the empty report.
Thank you.
You should add two lines of code to your project:
Code: Select all
newreport = new StiReport();
newreport.ReportCacheMode = StiReportCacheMode.On;
newreport.ReportCachePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "StimulsoftReportsCache");
newreport.RenderedPages.CanUseCacheMode = true;
newreport.RenderedPages.CacheMode = true;
newreport.RenderedPages.Clear();
newreport.NeedsCompiling = false; // add
newreport.IsRendered = true; // add
Thank you.
Re: Combining reports dynamically - print blanks the report
Thank you, that worked great!
Re: Combining reports dynamically - print blanks the report
Great!
Have a nice day.
Have a nice day.
Re: Combining reports dynamically - print blanks the report
Sorry, I have one additional question with this code.
How do I get the "Edit Page" button to appear?
I've been trying what was suggested in here, but to no avail.
http://forum.stimulsoft.com/viewtopic.php?f=8&t=36868
I already have:
report.PreviewSettings = (int)StiPreviewSettings.All;
And I have tried the following in the Form Load event.
StiOptions.Viewer.Windows.ShowPageDesignButton = true;
Has this feature been removed?
How do I get the "Edit Page" button to appear?
I've been trying what was suggested in here, but to no avail.
http://forum.stimulsoft.com/viewtopic.php?f=8&t=36868
I already have:
report.PreviewSettings = (int)StiPreviewSettings.All;
And I have tried the following in the Form Load event.
StiOptions.Viewer.Windows.ShowPageDesignButton = true;
Has this feature been removed?
Re: Combining reports dynamically - print blanks the report
Hello,
Please check the last prerelease build and let us know about th result.
Thank you.
Please check the last prerelease build and let us know about th result.
Thank you.
Re: Combining reports dynamically - print blanks the report
I've just tried the Build Stimulsoft Reports.Ultimate 2013.12.30 [2014.1.1803.0]Aleksey wrote:Hello,
Please check the last prerelease build and let us know about th result.
Thank you.
I still cannot get the "Edit Page" button to appear.
Re: Combining reports dynamically - print blanks the report
Hello,
We couldn't reproduce this bug.
Please try to checkthat you uses the last prerelease build.
Also please try to remove the settings folder:
c:\Users\[userName]\AppData\Local\Stimulsoft\
Thank you.
We couldn't reproduce this bug.
Please try to checkthat you uses the last prerelease build.
Also please try to remove the settings folder:
c:\Users\[userName]\AppData\Local\Stimulsoft\
Thank you.