question

littleNewton-6383 avatar image
0 Votes"
littleNewton-6383 asked saldana-msft edited

VSTO Word Add-in cannot use webBrowser to invoke javascript function

My system version is Windows 10 Pro 2004, and the Visual Studio version is the latest.

I currently have a problem.

I first created a Word Ribbon menu and then placed a button in it. Click this button and a Form menu will pop up. There are two buttons in the Form menu. The first is to load an HTML page, and the second is to execute some functions in this HTML file.

I tested this Form menu in the WinForm project and it works well. However, when I moved the Form menu into the VSTO C# code, the JavaScript function could not be executed correctly, and the return value of the function was null.


office-word-itpro
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LeonLaude avatar image
0 Votes"
LeonLaude answered littleNewton-6383 commented

Hi,

Word development is currently not supported in the Q&A forums, the supported products are listed over here https://docs.microsoft.com/en-us/answers/products (more to be added later on).

You can ask the experts in the dedicated Word for Developers forum over here:
https://social.msdn.microsoft.com/Forums/office/en-US/home?forum=worddev


(Please don't forget to accept helpful replies as answer)

Best regards,
Leon

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you for your reply!

0 Votes 0 ·
StefanBlom-6438 avatar image
0 Votes"
StefanBlom-6438 answered littleNewton-6383 commented
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks. May there be some bugs in .Net API?

0 Votes 0 ·