Error opentng MdiChild after Office2007UI implemented
Bosko
Belgrade, Serbia
I have a strange problem in my application.
I am using MDI (Multi Document Interface) for opening multiple forms inside MdiParent (Main form).
I am getting exception "Error creating window handle" when I try to open another MdiChild inside main form, but this is happening only when a report with chart is currently active MDIChild. (?!?)
I tried a another combination of multiple forms opened at the same time, to see if this happing, but everything working fine.
I tried a few scenarioes, and figure out that my application crashes only when active MdiChild is a windows form with a FastReport PreviewControl in it , showing a report WITH CHARTS!
If it is a similar form, showing standard report, everything is working fine, but when I activate a some Chart report, and then try to switch to, or open another MdiChild, aplication crashes.
This may help you:
I downgraded FastReport to version 1.0.212, tried the same, and everything is working just fine. No exception was thrown!
It seems that a problem is in Office2007UI and those controls in it, I would like if you could work it out, my application is already in Office 2007 Ribbon style, so FastReport with Office2007UI fits just fine! [img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> P.S.: I tried this on my another computer, I thought that there is something wrong with my computer, but on another computer, there was an error too, so I think this is probably something with those controls. The latest version I have before this one is 1.0.212, and with that version, I have no problems with FastReport. After downloading version 1.0.221, that exception occured. Maybe the problem is not with Office2007UI, maybe there was something wrong if there is some version between these two, you will know better. Hope this helps to find out what is happening! Best regards, Bosko.[/img]
I am using MDI (Multi Document Interface) for opening multiple forms inside MdiParent (Main form).
I am getting exception "Error creating window handle" when I try to open another MdiChild inside main form, but this is happening only when a report with chart is currently active MDIChild. (?!?)
I tried a another combination of multiple forms opened at the same time, to see if this happing, but everything working fine.
I tried a few scenarioes, and figure out that my application crashes only when active MdiChild is a windows form with a FastReport PreviewControl in it , showing a report WITH CHARTS!
If it is a similar form, showing standard report, everything is working fine, but when I activate a some Chart report, and then try to switch to, or open another MdiChild, aplication crashes.
This may help you:
I downgraded FastReport to version 1.0.212, tried the same, and everything is working just fine. No exception was thrown!
It seems that a problem is in Office2007UI and those controls in it, I would like if you could work it out, my application is already in Office 2007 Ribbon style, so FastReport with Office2007UI fits just fine! [img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> P.S.: I tried this on my another computer, I thought that there is something wrong with my computer, but on another computer, there was an error too, so I think this is probably something with those controls. The latest version I have before this one is 1.0.212, and with that version, I have no problems with FastReport. After downloading version 1.0.221, that exception occured. Maybe the problem is not with Office2007UI, maybe there was something wrong if there is some version between these two, you will know better. Hope this helps to find out what is happening! Best regards, Bosko.[/img]
Comments