M
Michal Semhric
Hello
I have problem with opening documents via API method NewFromSolutionWithData
when I previously opened document(s) and opened there a modla dialog form (my
custom managed C# form).
Test case (form code is managed C#):
1) Open first document using NewFromSolutionWithData method
2) In opened first document display custom managed Form using
form.ShowDialog()
3) Open second document using NewFromSolutionWithData method
Observed behaviour:
1) An second document doed not render any ActiveX, custom menus, toolbars
(at least until the time when I close opened managed form in first document)
2) If I invoke in first document Print Preview dialog (acitvate through
print preview commandbar button Execute method) and repeat test case
everything works fine.
So this mean for me that MS Implementation of of dialogs work perfectly, no
blocking behaviour observed within one process.
Can anybody help me to solve this nasty problem. I do believe that someone
also had similar problem with custom dialog windows.
Or can anybody explain me how internally in InfoPath are modal dialogs
handled so I can perhaps come with my custom implementation over my custom
forms which need to be opened as modal dialogs. I need to use modal dialogs
othervise I allways need to have an access to XDocument.
Thank You for replies
I have problem with opening documents via API method NewFromSolutionWithData
when I previously opened document(s) and opened there a modla dialog form (my
custom managed C# form).
Test case (form code is managed C#):
1) Open first document using NewFromSolutionWithData method
2) In opened first document display custom managed Form using
form.ShowDialog()
3) Open second document using NewFromSolutionWithData method
Observed behaviour:
1) An second document doed not render any ActiveX, custom menus, toolbars
(at least until the time when I close opened managed form in first document)
2) If I invoke in first document Print Preview dialog (acitvate through
print preview commandbar button Execute method) and repeat test case
everything works fine.
So this mean for me that MS Implementation of of dialogs work perfectly, no
blocking behaviour observed within one process.
Can anybody help me to solve this nasty problem. I do believe that someone
also had similar problem with custom dialog windows.
Or can anybody explain me how internally in InfoPath are modal dialogs
handled so I can perhaps come with my custom implementation over my custom
forms which need to be opened as modal dialogs. I need to use modal dialogs
othervise I allways need to have an access to XDocument.
Thank You for replies