how to make form in mrt always in front of main screen

Stimulsoft Ultimate discussion
Post Reply
jnwan
Posts: 3
Joined: Tue Mar 26, 2013 9:22 am

how to make form in mrt always in front of main screen

Post 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);
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: how to make form in mrt always in front of main screen

Post by Alex K. »

Hello,

Please try to set the StartMode property to OnPreview value for necessary form.

Thank you.
jnwan
Posts: 3
Joined: Tue Mar 26, 2013 9:22 am

Re: how to make form in mrt always in front of main screen

Post 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?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: how to make form in mrt always in front of main screen

Post by HighAley »

Hello.

Which version of our product do you use?
How do you show the report?

Thank you.
jnwan
Posts: 3
Joined: Tue Mar 26, 2013 9:22 am

Re: how to make form in mrt always in front of main screen

Post 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.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: how to make form in mrt always in front of main screen

Post by Alex K. »

Hello,

We made some improvements in that direction. Please check the latest build.

Thank you.
Post Reply