Hide pages rendering dialog

Stimulsoft Reports.NET discussion
Post Reply
munishsethi
Posts: 20
Joined: Fri Jun 01, 2007 11:10 pm
Location: India

Hide pages rendering dialog

Post by munishsethi »

I want to print reports in back thread and for that i dont want to show anything on the user interface. I m printing a report in background, a small dialog rendering pages (i dont know should i call it compiling?) comes up with progress bar, i want to hide it. Is there any parameter i need to pass in api?

suggest.
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Hide pages rendering dialog

Post by Vital »

Please use following code:

Code: Select all

report.Render(false);
Thank you.
munishsethi
Posts: 20
Joined: Fri Jun 01, 2007 11:10 pm
Location: India

Hide pages rendering dialog

Post by munishsethi »

Thanks

but i hav this code, to insert the Banner Page in my report and when this code hits, it shows a dialog rendering pages, i want to hide it up.


stReport.RenderedPages.Insert(0, ExtractBannerPage(report, querySql, True).RenderedPages(0))

wat change shuld i make to this code to hide the rendering dialog.
munishsethi
Posts: 20
Joined: Fri Jun 01, 2007 11:10 pm
Location: India

Hide pages rendering dialog

Post by munishsethi »

Thanks

but i hav this code, to insert the Banner Page in my report and when this code hits, it shows a dialog rendering pages, i want to hide it up.


stReport.RenderedPages.Insert(0, ExtractBannerPage(report, querySql, True).RenderedPages(0))

wat change shuld i make to this code to hide the rendering dialog.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Hide pages rendering dialog

Post by Edward »

Please try the following steps:

Code: Select all

report.render(false);
StiPage page = report.RenderedPages(0);
stiReport.Render(false);
stReport.RenderedPages.Insert(0, page);
stiReport.Show();
or
stiWebViewer.Report = stiReport;
If you do not need rendering progress at all even when rendered report will shows up, please set the static property HideMessages of the StiReport class:

Code: Select all

StiReport.HideMessages = true;
also may be used the report preview form directly:

Code: Select all

using (StiPreviewForm form = new StiPreviewForm(report))
{   
    report.Render(false);
    form.PreviewControl.Report = report;
    form.ShowDialog();
}
Thank you.
KONAN
Posts: 5
Joined: Fri Jun 03, 2016 9:09 pm

Re: Hide pages rendering dialog

Post by KONAN »

I want to hide some page in my report
Someone can help me???
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Hide pages rendering dialog

Post by HighAley »

Hello.

Could you describe your issue more detailed?
What and when do you need to hide?

Thank you.
KONAN
Posts: 5
Joined: Fri Jun 03, 2016 9:09 pm

Re: Hide pages rendering dialog

Post by KONAN »

I want to hide some pages when rendering the report!!!
eg : i have 3 pages and i want to display one!!!
KONAN
Posts: 5
Joined: Fri Jun 03, 2016 9:09 pm

Re: Hide pages rendering dialog

Post by KONAN »

I just find the solution by using PrintOnPreviousPage and the propertie Enabled together

Page1.Enabled=true
Page1.PrintOnPreviousPage=true
Page2.Enabled=false
Page3.Enabled=false
Thank you so much!!!
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Hide pages rendering dialog

Post by HighAley »

Hello.

We are always glad to help you.
Let us know if you need our help.

Thank you.
Post Reply