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.
Locked
User avatar
shocko
Posts: 5
Joined: Wed Jun 12, 2013 12:04 pm

Browsing COM Objects

Post by shocko »

Does the powershell studio support browsing COM objects?

User avatar
mxtrinidad
Site Admin
Posts: 399
Joined: Sun Mar 03, 2013 12:42 pm

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
Joined: Wed Jun 12, 2013 12:04 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
Joined: Thu Aug 18, 2011 4:56 am

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.

Locked