Is there anyone can follow this question?
@tbgangav-MSFT
Method Invocation Exception,Null Reference Exception displayed in powershell when uiautomation clicks the Microsoft Word File Tab.
骏 高
1
Reputation point
Steps:
- Open the microsoft word document [Office19_W_006_PCL6-E_A4LCp17EN.docx]
- In Microsoft Word Document Window, Click File Tab.
Here, I used Microsoft Uiautomation API below
Step2.1. Click File Tab by Invoke() ->Exception Occured, Goto Step2.2
Step2.2. Click File Tab by Select() ->Exception Occured, Goto Step2.3
Step2.3. Click File Tab by Toggle() ->Exception Occured, Goto powershell Error - Powershell Error:
Question:
Is there something wrong with the document I used?
or Is there something wrong with the Microsoft Uiautomation API I used?
When I used other .docx document to test, exception above does not occur.
When I delete some data like this, the powershell script will be run OK.
Comments:
Microsoft Word document's File Tab UI infomation got by inspect.exe.
Windows for business | Windows Server | User experience | PowerShell
1 answer
Sort by: Most helpful
-
骏 高 1 Reputation point
2022-05-13T05:57:39.63+00:00