Browsing COM Objects

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 5 years and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
shocko
Posts: 5
Last visit: Wed Mar 13, 2019 3:40 pm

Browsing COM Objects

Post by shocko »

Does the powershell studio support browsing COM objects?
User avatar
mxtrinidad
Posts: 399
Last visit: Tue May 16, 2023 6:52 am

Re: Browsing COM Objects

Post by mxtrinidad »

No that I know. In the case of Office objects, there are .NET wrapper the tackle MS Office product:
For example:
"Microsoft.Office.InterOp.Excel"

But, MS Office need to be installed and remember that there are both 32bit and 64bit versions.

Com Objects are old technology replaced by .NET. Better off looking at some community contribution on this topic.
:)
User avatar
shocko
Posts: 5
Last visit: Wed Mar 13, 2019 3:40 pm

Re: Browsing COM Objects

Post by shocko »

Bummer. For scripting I still often use the COM objects as some of them have no .NET equivalent.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Browsing COM Objects

Post by davidc »

PowerShell Studio's PrimalSense will provide the names of COM Objects when using the New-Object cmdlet.

You can try the following:

Set a breakpoint after you create the COM object and store it into a variable. Debug the script and when it hits the breakpoint, PowerShell Studio will collect the state information (after the variables are populated in the Variables panel). Then stop debugging and see if you get the necessary properties and methods for the variable.
David
SAPIEN Technologies, Inc.
This topic is 5 years and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.