Questions tagged [comautomationfactory]

17 questions
2
votes
1 answer

VBScript error handling in C#

I want to access WMI using the AutomationFactory in a Silverlight OOB application. dynamic locator = AutomationFactory.CreateObject("WbemScripting.SWbemLocator"); dynamic wmi = locator.ConnectServer(".", "\\root\\cimv2"); I now want to add error…
Etan
  • 17,014
  • 17
  • 89
  • 148
2
votes
1 answer

Silverlight 4 and COM Interop

I've created a ComVisible-class: [Guid("73a3f91f-baa9-46ab-94b8-e526c22054a4"), ComVisible(true)] public interface ITest { void Foo(); } [Guid("99f72d92-b302-4fde-89bb-2dac899f5a48"), ComVisible(true)] public class Class1 : ITest { public…
Papa Mufflon
  • 17,558
  • 5
  • 27
  • 35
2
votes
2 answers

Scripting.FileSystemObject Write method fails

So in my program I'm using COM Auotmation (AutomationFactory in Silverlight 4) to create a FileSystemObject, to which I write a string (theContent). theContent in this case is a small UTF-8 XML file, which I serialized using MemoryStream into the…
Chris J
  • 3,828
  • 1
  • 20
  • 17
1
vote
3 answers

AutomationFactory - Information Needed

I am interested in using the AutomationFactory namespace but I cannot find any documentation on what I can use for a sepcific COM. I figure it's because I do not know what terms I should actually be looking up. Does anyone have any resources? In…
1
vote
1 answer

Problem in ComAutomationFactory.CreateObject

I tried to create object using ComAutomationFactory.CreateObject . It is giving following exception "Failed to create an object instance for the specified ProgId" My application is running on OOB and has elevated permission. if…
subbu
  • 3,229
  • 13
  • 49
  • 70
1
vote
1 answer

ComAutomationFactory.CreateObject can this be used to create Objects for our customeapplication

Can ComAutomationFactory.CreateObject be used to create an IDisposable object for our COM application? If possible, what value should be given as ProgramID?
subbu
  • 3,229
  • 13
  • 49
  • 70
1
vote
1 answer

Silverlight 4 and Outlook 2010 Out of Browser

How/what is the best way to access a user outlook while out of browser in Silverlight ? I'm looking for sample code to start making queries on a user e-mail box after the user installs a silverlight app. I know this busts most if not all of the…
0
votes
1 answer

From Silverlight OOB application how to check if a process is running

How can I query if a process is running on your Machine from a silverlight elevated trust enabled out-of-browser application?
sonu
  • 164
  • 2
  • 8
0
votes
1 answer

COM Automation WScript.Shell Echo command not working

Hi I am trying to run an echo command using AutomationFactory but I get this error: "The system cannot find the file specified. (Exception from HRESULT: 0x80070002)" This is the code that I'm using: dynamic shell =…
sonu
  • 164
  • 2
  • 8
0
votes
2 answers

C# dynamic type / Silverlight 4 AutomationFactory question

I have this little function in my Silverlight 4 OOB app that gets an image from a scanner: public static BitmapImage GetImageFromScanner() { try { using (dynamic CommonDialog =…
Brent Lamborn
  • 1,370
  • 3
  • 17
  • 37
0
votes
1 answer

How to Change Color of a cell in excel from Silverlight using Com AutomationFactory

Hi Im using AutomationFactory from silverlight to create and manipulate Exel worksheet. And I want to change Color of a cell. If I understand correctly I must change this property cell.Interior.Color = However I want to change it to MyObject.Color…
grabah
  • 165
  • 2
  • 16
0
votes
1 answer

Silverlight Excel Automation Factory API Documentation

Silverlight Excel Automation Factory API Documentation Hi Im using Excel Automation Factory to export data from silverlight to excel. Problem is I can't find documentation on using excel this way. All I could find where some small tutorial from…
grabah
  • 165
  • 2
  • 16
0
votes
0 answers

How to ensure the parent process is the COM server activated by the child process?

My application has two executable (*.exe) files. The main program will start the secondary executable as a child process. The child process quickly calls CoCreateInstance(..., CLSCTX_INPROC_SERVER | CLSCTX_LOCAL_SERVER, ...) using the class id of…
Troy
  • 1,237
  • 2
  • 13
  • 27
0
votes
1 answer

ComAutomationFactory

Im trying to use the ComAutomationFactory class in VB .NET the example im working from is c# and is working fine but my project doesnt compile and says this class is not defined?? also what is the return type? in the c# example it returns a type of…
keyoke
  • 1,209
  • 12
  • 26
0
votes
0 answers

AutomationFactory: Same code yields RuntimeBinderException on one machine and runs as expected on another

We are encountering a strange issue when trying to automate Excel using the AutomationFactory in a Trust In Broswer Silverlight 5 application. This code runs on the UI thread in Application_Startup: dynamic excel =…
zero_dev
  • 613
  • 9
  • 17
1
2