Word slow down drastically In Office 2016 / 32 bits

Add-in Express™ Support Service
That's what is more important than anything else

Word slow down drastically In Office 2016 / 32 bits
Word slow down drastically In Office 2016 / 32 bits 
Karim




Posts: 153
Joined: 2006-01-02
Hi,

At a customer if my add-in is installed, Word slows down drastically in Office 2016 32 bits. When i open word documents you get an hourglass for like 20 seconds before Word responds. If I remove my add-in everything is back to normal.

I use
Version add-ins : 8.1 Release (build 1432)
Delphi 10.1


Karim
Posted 15 May, 2017 03:57:01 Top
Andrei Smolin


Add-in Express team


Posts: 14140
Joined: 2006-05-11
Hello Karim,

I try to reproduce the issue. No luck so far. I'll keep you updated about my progress.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 15 May, 2017 09:59:37 Top
Andrei Smolin


Add-in Express team


Posts: 14140
Joined: 2006-05-11
Hello Karim,

I can't reproduce the issue. Do you open a big document? With no macros? From a network location?

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 16 May, 2017 07:24:53 Top
Karim




Posts: 153
Joined: 2006-01-02
Hi Andrei,

In my client I was able to isolate the problem in word. It comes from the code below.
My addin has existed for about ten years and I do not know I added this


procedure TAddInModule.adxCOMAddInModuleAddInStartupComplete(Sender: TObject);
begin
   //...
   WordApp.NormalTemplate.Saved := true; 
   //...
end;
Posted 19 May, 2017 07:26:01 Top
Andrei Smolin


Add-in Express team


Posts: 14140
Joined: 2006-05-11
Hello Karim,

Thank you for letting me know. That could be done to bypass a request to save the Normal template when Word is being closed.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 19 May, 2017 07:52:49 Top
Karim




Posts: 153
Joined: 2006-01-02
Hello,

Is there a bug ? Because, I have not noticed a slowdown in other customers
Posted 19 May, 2017 08:01:35 Top
Andrei Smolin


Add-in Express team


Posts: 14140
Joined: 2006-05-11
I can't tell.

Does the delay occur when you execute this code line?

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 19 May, 2017 08:26:41 Top
Karim




Posts: 153
Joined: 2006-01-02
Yes, at my client in office 2016 32bits. I provided module without this line of code and it does not slow down.

I tested at home in 2016/64 bits and I do not have the problem with or without this line of code.
Posted 19 May, 2017 08:35:06 Top
Andrei Smolin


Add-in Express team


Posts: 14140
Joined: 2006-05-11
I don't have an explanation. I suggest that you create a Ribbon button to execute 1) getting NormalTemplate and 2) setting NormalTemplate.Saved := true.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 19 May, 2017 08:54:28 Top