Page 1 of 1
how to make form in mrt always in front of main screen
Posted: Tue Mar 26, 2013 9:43 am
by jnwan
Hi all,
is it possible that make the form in mrf always in front of main screen or make them two screen that can be find by user.
Currently I add a from in mrf, while loading that report, the from define in mrf some times will behind the main screen,
user may hard to find that form.
Code: Select all
Report.Load(MRT);
Report.Compile();
Render(false);
Re: how to make form in mrt always in front of main screen
Posted: Tue Mar 26, 2013 11:07 am
by Alex K.
Hello,
Please try to set the StartMode property to OnPreview value for necessary form.
Thank you.
Re: how to make form in mrt always in front of main screen
Posted: Tue Mar 26, 2013 12:08 pm
by jnwan
Thank you for your replay. but it seems not work if I add code below:
Code: Select all
var Report = new StiReport();
Report.Load(MRT);
Report.Compile();
foreach( var page in Report.Pages)
{
var form = page as StiForm;
if (form != null)
{
form.StartMode = StiFormStartMode.OnPreview;
}
}
Report.Render(false);
and if I do modify in MRT, set StartMode = OnPreview, this form even not showed.
I think if it can do as showdialog() method is perfect.
Or can the StiForm have its own icon in task bar, so that user can quick find it?
Re: how to make form in mrt always in front of main screen
Posted: Wed Mar 27, 2013 10:26 am
by HighAley
Hello.
Which version of our product do you use?
How do you show the report?
Thank you.
Re: how to make form in mrt always in front of main screen
Posted: Wed Mar 27, 2013 12:36 pm
by jnwan
Aleksey Andreyanov wrote:Hello.
Which version of our product do you use?
How do you show the report?
Thank you.
Stimulsoft Reports.Ultimate 2011.3
I find the problem is that I run the report in another thread.
But if I use the same thread, the form defined in mrt file still not a modal window, although it now can block the main window.
Another issue is that the form still can be behind the main window, say if you click the icon in taskbar then main window will in front of the form.
Not only the form defined in mrt file but also "export setting" window which pop up after you click save has the same issue.
Re: how to make form in mrt always in front of main screen
Posted: Thu Mar 28, 2013 5:52 am
by Alex K.
Hello,
We made some improvements in that direction. Please check the latest build.
Thank you.