MBS WindowsPreviewHandlerMBS loading handler sometime fail


Some windows customers are experiencing preview handlers (excel, powerpoint) not loading sometimes but I could not find any hint on the issue

My code looks like the example on the MBS website


The issue is often with the line:

w.InitWithFile(F) returns an error “Echec de l’appel de procédure distante”

Should I retry X times for example?


Sorry, not sure why the remote procedure fails.

Is this a 32/64bit difference between app and component?

Does it only happen on specific computers?
Or randomly for an app.

Could your app try again after small delay?

I do not know if this is a 32/64 bit difference, everything is 64 bits

It happens randomly

I set up the loading in a for loop and it works now (I set 4 tries)

But I will know when I got feedback from customers.

These are the handler I use , they are defined when installing the software using InnoSetup and placed at the correct path you mentionned in the example

#define PreviewHandlerExcel “{00020827-0000-0000-C000-000000000046}”
#define PreviewHandlerVisio “{21E17C2F-AD3A-4b89-841F-09CFE02D16B7}”
#define PreviewHandlerPowerPoint “{65235197-874B-4A07-BDC5-E65EA825B718}”
#define PreviewHandlerWord “{84F66100-FF7C-4fb4-B0C0-02CD7FB668FE}”