Much as the question states, there is Microsoft.Office.Interop.Excel.Extensions (part of VSTO Power Tools)which offers a series of handy extension methods for calling Excel interop code from C#. Are there other 3rd party/open source libraries that ppl are aware of that can be used in the same way? i.e. to either hide parameters (of metho...
EDIT: I forgot to include the prime candidate for web applications: JSON over HTTP/REST + Comet. It combines the best features of the others (below)
Persevere basically bundles everything I need in a server
The focus for Java and such is definitely on Comet servers, but it can't be too hard to use/write a client.
I'm embarking on a...
Hi,
I've got an unmanaged c++ DLL that I need to call from a Windows Mobile C# app.
I've got the C# wrapper and it works nicely in desktop. I can call the DLL functions from a C# desktop program and pass strings around with no problem.
However, when I compile the lib and the wrapper for the mobile platform, I get an error in the DllIm...
In C#, I'm using the Microsoft.Office.Interop.Excel reference v12.0.0.0, which (I think) corresponds to Office 2007.
I guess that my program won't run on computers without Office 2007 or above ? What should I do ?
...
Hello!
I am exporting a 1200 X 800 matrix (indexMatrix) to a excel file using the standard Microsoft.Office.Interop.Excel. The app works, just that it is really really really slow( even for the 100 x 100 matrix) . I also export in a text file through a TextWriter an it works almost instantly . Is there any way to export to the excel fil...
I'm trying to use Microsoft.Office.Interop.Excel. It seems to load fine but when I try to use it, all the defaults parameters are not working. Here is a screenshot that shows all those bad values
Whenever I try to ommit them, the compiler tells me that the function needs more than 1 parameter.
This function is Open as in :
Micros...
Hi all, can anyone point me to an example that show how to pass and/or return a class from a .NET class exposed as COM. The COM consumer would be a VBScript. Also, it is possible to pass an object from VBScript to a .NET-COM exposed method? For example
[ComVisible(true)]
public class A
{
public SomeClass MethodName(NameValueColle...
Hi All,
I want to know how do I exactly call a function from ProjectA::ClassA::FuncA() that is a Win32 .lib with /clr from a ProjectB::ClassB::FuncB() that does not have clr support and is a pure Win32 project.
Both these projects are under same solution.
First, this is what I have tried:
1. Created the ProjectA with the .lib
2. Added t...
I have this large IDL that I am importing into a C# project.
Everything was fine until I had to use one interface that is not quite compatible with HRESULT -> COMException conversion (I can go into details here but that shouldn't be relevant).
Is it possible to add PreserveSig to that one type somehow? I would like to avoid the option...
My goal is to display a .NET Windows forms message box from a pure C++ native Windows API-level program (not managed C++ or C++/CLI).
That is, for learning purposes I want to implementing the C# code shown in the comment below, in pure C++:
/*
// C# code that this C++ program should implement:
using System.Windows.Forms;
n...
I currently have a C function that I'd like to use in .NET (C#).
I can see two ways of achieving this:
Compiling it (I think this is possible) with /clr on VC++.NET, having implemented "façade" managed methods that call the C code.
Compiling the C code as a DLL and then making API calls.
What do you find best? How to do the first of...
First, note that this is just a learning exercise for me. The intent is to produce a .NET messagebox using nothing but pure C++ (not C++/CLI) and late binding as necessary.
This works fine with just a title and text in the messagebox.
However, when I try to specify buttons I get back 2147942487 "The parameter is incorrect". On the .NET...
I have created a small class library using .net 3.5 which builds a DLL that I want to use in an Access 2003 database.
I have checked the Register for COM interop in the Compile options.
Once the Build is done, there is dll and tlb file created.
I now reference the TLB file in my access database and it works with no issues when it is ...
Basically, when i use vb.net or c#.net to do this, it works perfectly, but when i use vb6, it doesn't work, in my for loop where the relevant service in the relevant device is captured, here is the code that returns no result...
' serv is properly declared and instantiated by the for loop.
Dim xins(0)
Dim xouts(0)
...
What is the consensus here?
I have a VB6 app using Interop to utilise .NET assemblies. Could I use Reg-Free COM to 'register' the .NET assemblies?
...
I've been told to create a 'manifest' to achieve Reg-Free-Com between a VB6 .EXE and a .NET DLL.
What is a 'manifest' in this context?
What does it mean to 'embed' a manifest?
...
In VB6, when referencing a .NET component, why can't I reference the DLL? Why do I have to reference the .TLB file?
...
I am getting this stacktrace:
System.Runtime.InteropServices.COMException (0x800A13E9): Word ðú÷ì ááòéä.
at Microsoft.Office.Interop.Word.Documents.Add(Object& Template, Object& NewTemplate, Object& DocumentType, Object& Visible)
at Crm.DocumentGeneration.Printing.DocumentsPrinter.MergeDocuments(ApplicationClass& wordApp, IEnume...
I'm just wondering if there is something I should know of when doing this or will it work straight out of the bat as long as the .NET framework is installed on the client?
I ask because when I attempted this, VB6's references dialog said "cant register that dll"
Thanks
...
When deploying a software package containing a VB6 executable and a .NET component, is the .TLB file needed?
If not, would it be sufficient to include the .DLL and have it regasm-ed during installation?
...