Performance issue with office 2010 MDI form

Hello,

I have an MDI form.
I open different forms as child from the MDI.
All forms are office2010form.

when i use following code the system is ridiculously slow:

          DataTable dt = new DataTable();
                DataColumn dcId = new DataColumn("Id");
                DataColumn dcNaam = new DataColumn("Naam");
                dt.Columns.Add(dcId);
                dt.Columns.Add(dcNaam);
                DataColumn dcSubId = new DataColumn("SubId");
                DataColumn dcSubNaam = new DataColumn("SubNaam");
                dt.Columns.Add(dcSubId);
                dt.Columns.Add(dcSubNaam);
                Outlook.Application oApp = new Outlook.Application();
                Outlook.NameSpace oNS = oApp.GetNamespace("mapi");
                oNS.Logon(Missing.Value, Missing.Value, false, true);
                Outlook.Folders oFolders = oNS.Folders;
                foreach (Outlook.Folder oFolder in oFolders)
                {
                    Outlook.Folders oSubFolders = oFolder.Folders;
                    foreach (Outlook.Folder oSubFolder in oSubFolders)
                    {
                        dt.Rows.Add(new object[] { oFolder.EntryID, oFolder.Name, oSubFolder.EntryID, oSubFolder.Name });
                    }
                }
                oNS.Logoff();
                oNS = null;
                oApp = null;

When i turn off MDI and load the forms to a panel, the outlook code loads fast again.
If i use a normal VS windows MDI form the code also loads fast...
I also noticed that the rest of my application works much faster with MDI turned off.

So there has to be an issue with office2010form MDI mode.



7 Replies

MK Mallika Kannan Syncfusion Team December 8, 2017 10:04 AM UTC

Hi Davy   
   
Thank you for contacting Syncfusion support.   
   
We have checked the reported behavior in our end by using Office2010Form and Microsoft Form.    
    
We are adding ten Office2010Form as Child form of the MDI form. We were unable to get the noticeable time delay when compared to Microsoft Form in our end. We have also prepared the sample and video for your reference.    
    
Office2010Form Sample:   Office2010MDIForm 
    
Microsoft Form Sample:   MicrosoftMDIForm 
   
   
Kindly check the above sample and let us know whether you are following the same replication procedure as we followed.  If not, please modify our sample to reproduce the issue. It would be very helpful for us to proceed further on this.    
   
Regards,   
Mallika 



DA Davy December 8, 2017 02:18 PM UTC

I can not open the samples ...


MK Mallika Kannan Syncfusion Team December 11, 2017 07:03 AM UTC

Hi Davy  
  
Sorry for the inconvenience.  
   
We have checked this reported case in our end, but we were unable to reproduce this case. Can you please share the Visual Studio and Target Framework version details? that will helpful for provide the sample in the same Target Framework version.  
  
Regards,  
Mallika 



DA Davy December 11, 2017 11:38 AM UTC

I m on holiday now, but i will send you an example project with the performance issue next week.

With kind regards.


MK Mallika Kannan Syncfusion Team December 12, 2017 03:48 AM UTC

Hi Davy   
 
Thanks for your update.  
  
We will wait until hear from you.    
  
Regards,  
Mallika 



DA Davy December 22, 2017 10:19 AM UTC

Hi,

I prepared a example for you:
In the form Menu you have to set the propertie isMdiContainer  from true to false and change the code like this: 

//SLOW Set FORM Menu propertie isMdiContainer = true
FormsMailTests.LeesOutlook frmForm = new FormsMailTests.LeesOutlook("20", "30");
frmForm.MdiParent = this;
frmForm.Show();

//FAST Set FORM Menu propertie isMdiContainer = false
//FormsMailTests.LeesOutlook frmForm = new FormsMailTests.LeesOutlook("20", "30");
//frmForm.Show();              

I solved my problem by not using MDI but FYI ...

Attachment: MdiTest_7bcfee44.zip


MK Mallika Kannan Syncfusion Team December 26, 2017 09:56 AM UTC

Hi Davy 
 
Thank you for contacting Syncfusion Support.     
     
A support incident has been created under your account to track the status of the reported scenario in Office2010Form.    
     
Please log on to our support website to check for further updates     
     
     
Regards,     
Mallika   


Loader.
Up arrow icon