Questions tagged [comobject]

200 questions
1
vote
2 answers

Alternative to caprock.dictionary for 64-bit Windows/IIS 7.5

My company has a legacy solution, written in Classic ASP/VBScript that uses the caprock.dictionary COM object in the Application scope for storing various recordsets of data. This works fine on 32-bit Windows/IIS 6.0 but has been rumored to fail on…
crackedcornjimmy
  • 1,972
  • 5
  • 26
  • 42
1
vote
1 answer

How to release a COM object after being used in a loop (or pipe)?

I have the following Powershell code which should send an email in the background and should wait till that email with the special attribute was also sent successfully. All works fine, but for any reason I cannot release the COM-object $sent after I…
Carsten
  • 1,612
  • 14
  • 21
1
vote
1 answer

FIGCAPTION ComObject with empty innerHTML and outerHTML when parsed with PowerShell 5?

I'm parsing this HTML file
Test caption.
braggPeaks
  • 1,158
  • 10
  • 23
1
vote
0 answers

Not Able to attach Reference of ActiveX Server Files after certain period of time on particular machine

I am working on VB dotnet. In our project some of the code is written in Visual basic 6, So we used DLLs(Binaries) to use that code in our project(com objects), so we make binaries and giving reference of those binaries in our project. We have two…
sheetu
  • 11
  • 2
1
vote
0 answers

Disposing of COM object out of process

I am creating an app in c# that instantiates a COM object of the commercial software StressCheck. I instantiate this in a wrapper class that implements the IDisposable interface. I dispose of it by calling theComInstance.Close() method within the…
1
vote
0 answers

Create Delegate From ComObject Method (via Reflection)

I am able to retrieve it from a COM object via Reflection and run it with the MethodInfo.Invoke method. However, I am trying to create a Delegate to be faster because I will use it in a loop. Unfortunately, I couldn't find a solution to the error…
1
vote
1 answer

What Ninject convention should I use to bind all interfaces starting with "I" with interfaces having the same name without the "I" prefix for COMObj?

I'm working on integrating an accounting system which objects are COM objects. When binding one to one as follows, it works just fine. IKernel kernel = new StandardKernel(); kernel.Bind().ToMethod(_ => { return new AcoSDKX();…
Will Marcouiller
  • 23,773
  • 22
  • 96
  • 162
1
vote
2 answers

How to Close excel ComObject in Powershell Constrained mode

I couldn't find anything online about how to close the ComObject after making it in constrained mode. The normal procedure is to use $com.Quit(), however that is not allowed in constrained mode. Also,…
C. Graham
  • 328
  • 2
  • 10
1
vote
0 answers

Marking Emails as Read

I might be asking this in the wrong place so I apologize. I'm running a PS1 file to look in a specific folder, mark the emails as read, save the attachments and send me an email. For whatever reason, marking the emails as read, doesn't always…
1
vote
1 answer

Powershell Worksheet.saveAs saving wrong Sheet

I am trying to save a specific Excel Sheet from a Macro Enabled Excel Workbook (xlsm) via Powershell to csv to upload it into a database. This is done via Powershell since it needs to be automated along with some more data processing etc. The…
jmeier
  • 25
  • 5
1
vote
1 answer

Skip password protected powerpoint files with powershell

I am writing a script that scans files for SSNs. I've got most of it working, but this section is giving me grief and I can't find any useful documentation on it. I'm running into an issue with skipping password protected PowerPoint files. #Scan…
1
vote
0 answers

Microsoft project open files using powershell

I'm having problem opening project file from Project Online (server). I want to save all online files locally. If I open project first through Desktop client and try to open that file using function FileOpenEx it works (maybe because it opens…
1
vote
1 answer

Start / execute XML Test Node from vector CANoe object

The following is the code which was used: CANoe.Application mCANoeApp; CANoe.Measurement mCANalyzerMeasurement; CANoe.Nodes mCANoeNodes; CANoe.Node mCANoeNode; CANoe.Configuration mConfig; CANoe.TestModules mTestModules; …
user1315385
  • 11
  • 1
  • 3
1
vote
1 answer

Powershell get address list work in PS 5.1 but not in 7

I'm trying to retrieve info about Global Address List in Outlook. It works in Powershell 5.1 but not in 7.0.3. The Code is: $Outlook = NEW-Object -comobject Outlook.Application $Outlook.GetNamespace("MAPI").AddressLists("Global Address…
Mich94
  • 11
  • 1
1
vote
0 answers

Configuring Default Params with .Open with Microsoft Word COM Object in PowerShell

I'm converting a "hybrid" batch/vbs script to PowerShell and converting the "batch" portion was delightfully straightforward, but I'm struggling a bit with the VBS Conversion. I can open a word document, but when I try to pass extra params I…
FreeSoftwareServers
  • 2,271
  • 1
  • 33
  • 57