Change report's parent form

Stimulsoft Reports.NET discussion
Post Reply
melzer
Posts: 17
Joined: Wed Oct 03, 2012 9:07 am

Change report's parent form

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

Re: Change report's parent form

Post 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.
melzer
Posts: 17
Joined: Wed Oct 03, 2012 9:07 am

Re: Change report's parent form

Post by melzer »

Here you are. Description inside the project.

Thank you, regards, Florian
Attachments
StimulsoftSample.zip
(103.04 KiB) Downloaded 200 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Change report's parent form

Post by HighAley »

Hello.

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

Thank you.
melzer
Posts: 17
Joined: Wed Oct 03, 2012 9:07 am

Re: Change report's parent form

Post by melzer »

OK, this works.

Thank you, Aleksey
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Change report's parent form

Post by HighAley »

Hello.

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

Thank you.
Post Reply