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

littleNewton 1 Reputation point
2020-07-22T05:36:35.423+00:00

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.

Word Management
Word Management
Word: A family of Microsoft word processing software products for creating web, email, and print documents.Management: The act or process of organizing, handling, directing or controlling something.
931 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Leon Laude 85,816 Reputation points
    2020-07-22T06:28:44.777+00:00

    Hi,

    Word development is currently not supported in the Q&A forums, the supported products are listed over here https://learn.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


  2. Stefan Blom 2,271 Reputation points MVP
    2020-07-22T07:50:22.013+00:00

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.