Page 1 of 1

Change report's parent form

Posted: Wed Apr 29, 2015 11:08 am
by melzer
Hi,

I use the Stireport.Show(Form parentForm) method. Is it possible to assign a different parent form afterwards?
I show the report from a sub-form, and don't want the report to close when the sub-form closes, or lose control on it.
So I call the Show-method and assign the master form as parent form (rpt.Show(masterForm)).
This way, the report keeps open AND active when the sub-form is closed.
The thing is, when I re-enter this sub-form, or any other form, there is no more control on the report (you cannot minimize/maximize/close it).
So I would like to assign the currently active form to all open reports.

Thank you for any answer.

Re: Change report's parent form

Posted: Thu Apr 30, 2015 7:18 am
by HighAley
Hello.

Please, send us a sample project which reproduces the issue.
Add step-by-step instruction how to reproduce the issue.

Thank you.

Re: Change report's parent form

Posted: Thu Apr 30, 2015 1:30 pm
by melzer
Here you are. Description inside the project.

Thank you, regards, Florian

Re: Change report's parent form

Posted: Mon May 04, 2015 8:36 am
by HighAley
Hello.

Do not use ShowDialog method. If you call in no other Form will be available.

Thank you.

Re: Change report's parent form

Posted: Tue May 05, 2015 6:42 am
by melzer
OK, this works.

Thank you, Aleksey

Re: Change report's parent form

Posted: Tue May 05, 2015 7:11 am
by HighAley
Hello.

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

Thank you.