all groups > dotnet interop > december 2006
Filter by week: 1 2 3 4 5
Using RawPrinterHelper class in ActiveX object inside web page...
Posted by Boesman at 12/20/2006 7:32:29 AM
Hi,
I'm trying to print to a label printer (that requires escape codes)
from a web page which is part of an ASP.NET application.
My chosen approach is to write an ActiveX component in .NET and have
that hosted in one of my ASPX pages. Then, when the user clicks on a
Print button on the page... more >>
PIA installation - requisites and licence issue
Posted by christophe.leroquais NO[at]SPAM gmail.com at 12/20/2006 4:33:26 AM
Hi there,
probably a usual question:
Can I set up the PIA Office2003 on a windows server without having an
office application?
If so, is that free or do I need a licence?
Thanks very much for your help,
Chris
... more >>
OpenFileDialog needs STAThread, but I need MTAThread
Posted by Shannon Cayze at 12/19/2006 1:27:13 PM
Hello all,
I posted this to the windowsforms group as well, but it may be
appropriate in this group as well.
In my Windows Forms app I'm opening an OpenFileDialog. This throws the
following exception because I have the MTAThread attribute on the Main
method:
"Current thread must be set t... more >>
AxShDocVw.WebBrowser
Posted by DariusB at 12/19/2006 11:32:03 AM
I was looking over:
http://www.codeproject.com/cs/media/IECapture.asp
I want to use AxShDocVw instead of ShDocVw (si i could use OleDraw method, which needs an activex control supplied).The problem is that i don't know how to get the open browser.
if i use:
foreach (SHDocVw.WebBrowser ie in sh... more >>
How to pass C# string to Embeded C++ String?
Posted by vyip at 12/19/2006 7:17:38 AM
I'm having a little trouble passing a C# string to a Embedded C++ 4.0
CE dll. The regular 'string' from C# would not work. I have also
tried Marshaling, but no luck. Sometimes the Embedded C++ code throw
an exception like
"ExceptionCode: 0xc000005, ExceptionAddress: 0x01e415bc,
Re... more >>
Unbanlanced stack.
Posted by Felipe Garcia at 12/19/2006 5:24:34 AM
I'm trying to convert the following unmanaged function from the
csta32.dll with no success.
Since I've been trying, I always get a PInvokeStackImbalance
notification.
Can someone help me ?
Thanks in advance,
Felipe Garcia
#define TSAPI RetCode_t pascal
typedef unsigned long ACSHandle_... more >>
Hosting the CLR in a C++ program
Posted by PLS at 12/18/2006 5:43:45 PM
I'm having a problem hosting the CLR in a C++ program.
I want to C++ program code to be agnostic about runtime versions, so I
can make the runtime version be a configuration parameter.
The sample I have shows passing the runtime version to
CorBindToRuntimeEx. So far, so good. But it also ... more >>
How to preserve session in embeded browser?
Posted by navyliu at 12/18/2006 12:00:00 AM
When I plug my IE into my own managed forms in C#,I always lost cookies in
the new IE page(if the new IE page is generated by the javascript
"Window.open()").How to solve this problem?Can I use axWebBrowser to solve
it?
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Send Structur with byte array from C# to C
Posted by julienboys85 at 12/15/2006 2:48:54 AM
hi,
i have a structure :
------------------------------------------------------------------------------
[StructLayout(LayoutKind.Sequential)]
public struct DRVBINFO
{
public UInt16 wCardsNumber;
public UInt16 wChannelsNumber;
[MarshalAs(U... more >>
ActiveX control written in C# works locally but not when hosted by Apache
Posted by Andreas Schuler at 12/12/2006 10:31:30 PM
Hi all,
I have written a UserControl derived object in C# and registered it as
a COM object using the Setup Project in VS 2005.
First questions are: is this the right way to go about COM with .NET? I
know about the GAC, do I still have to register the COM object in the
registry if I install... more >>
SQLMERGX, REPLERRX unable to get error messages
Posted by jammykam NO[at]SPAM gmail.com at 12/12/2006 8:50:08 AM
I am writing a C# app and as part of that I am using merge replication
to keep data synchronised. This part works fine and I am able to
replicate the data. But if I try to get information about errors that
have occured I am getting an error (or no information).
I have tried using the examples ... more >>
Insert values in one newly Inserted row in an existing EXCEL sheet
Posted by pamelafluente NO[at]SPAM libero.it at 12/12/2006 3:51:54 AM
I need to do the following simple task:
open an existing excel file "ExFileExcel"
open an existing sheet "ExSheet" contained in the previous one
Insert 1 new row as second (2th) row of the above sheet
write "Hello" on all the cells of that new row
And (later) delete the new row.
... more >>
SHGetFileInfo & Vista
Posted by Jeff Gaines at 12/12/2006 1:20:32 AM
I hope it's not too early to ask a question about the Vista RTM.
I have found that a call to SHGetFileInfo doesn't always return a
program's icon, this shows up in Vista itself where shortcuts are unable
to find icons in some executables.
Are we likely to get this functionality back in a l... more >>
Using Studio 2005 extensions for the 2007 office system
Posted by Karl-Inge Reknes at 12/11/2006 2:28:01 PM
This I probably I stupid question, but I ask it anyway. I have little
experience in office programming.
I’m trying to use “CustomTaskPane†to fill excel with data from a database.
To add the CustomTaskPane is ok, and write the code to retreve the data from
the database, but to fill exc... more >>
hi
Posted by manchu_nareshbabu NO[at]SPAM yahoo.com at 12/11/2006 4:44:37 AM
how read data from ms excel by using data set... more >>
ArgumentOutOfRange when using StringBuilder as an out parameter
Posted by mannotagain NO[at]SPAM gmail.com at 12/11/2006 4:10:12 AM
Hi,
i'm calling unmanaged IFIlter::GetText from my C# code, and I have
method signature as suggested here
(http://www.pinvoke.net/default.aspx/Interfaces/IFilter.html):
[PreserveSig]
IFilterReturnCodes GetText(
ref int pcwcBuffer,
[Out(), MarshalAs(UnmanagedType.LPWStr)] StringBuild... more >>
Creating Excel Add-in in C#
Posted by Forbes at 12/9/2006 6:11:00 AM
I want to develop a simple Excel Add-in, so I have found some materials about
this.
I meet some problems, the COM add-in can not be shown in the browser in
Excel, can some one help me?
http://forbes0312.web4.dnssky.com/Archives/MyExcelAddIn.asp
I use the command line to compile sou... more >>
how to Call a VSTO Addin Method from External C# program
Posted by AjayB at 12/8/2006 3:50:01 AM
Hi,
I have created a VSTO Addin "OutlookAddin1" it has a public method in
class
"ThisApplication" i want to call it from another external appication but i
am not able to do it. How can i call the method from external application
i tried below code but it does not gives the object so ... more >>
Can .NET Class Implement a COM Interface?
Posted by Joseph Geretz at 12/7/2006 5:01:18 PM
We provide the ability for third party developers to add their own 'Plugin'
modules to our application, by providing developers with an interface
definition (IPlugin). As long as their classes implement our IPlugin
interface our application can ommunicate with them. Classic VB6 interface
inh... more >>
How to use managed C++ dll in unmanaged code(C++ application).
Posted by sreelakshmi.rajula NO[at]SPAM gmail.com at 12/7/2006 2:08:25 AM
I've a managed c++ dll. How can I use this in unmanaged C++
application.I am using Visual studio 2005.
I read something about regasm....May I know how can I use that?
Thanks in advance.
Regards,
RSL.
... more >>
Why do I need regasm /codebase in this scenario?
Posted by Eric at 12/6/2006 1:25:25 PM
Hello,
I have a .NET dll, it's in the c:\myfiles\bin directory. I went into a
Visual Studio 2005 Command Prompt changed directory to the
c:\myfiles\bin directory and ran a regasm /tlb MyDotNet.dll, so I
inside my c:\myfiles\bin directory I have MyDotNet.dll and
MyDotNet.tlb.
I then start ... more >>
CorBindToRuntimeEx() fails
Posted by Chuck C at 12/5/2006 11:07:04 AM
I am having some trouble getting CorBindToRumtimeEx() to return S_OK on one
particular machine of mine. It is an older system that has VS2003, 6.0 and
..NET Frameworks 1.0, 1.1 and 2.0 installed. I am thinking that there is
some sort of conflict going on or that the version of the CLR I am
... more >>
expose .NET component through COM and events
Posted by Tomasz Grobelny at 12/4/2006 5:54:19 PM
I want to write .NET component and use it in my legacy C++ application.
All works fine but somehow event handling does not work as expected. The
C# code is as follows:
using System;
using System.Runtime.InteropServices;
namespace Bank
{
// Interface to allow COM clients to use events.
... more >>
Changing DisplayNames of my properties using PropertyGrid component, how ??
Posted by Tugrul HELVACI at 12/4/2006 5:08:27 PM
I'm using Delphi 2006 and I have a class defination like this:
TPerson = class
fPersonName : String;
fPersonSurName : String;
fPersonAge : Integer;
published
property PersonName : String read fPersonName write fPersonName;
property PersonSurname : String read fPersonSurname write ... more >>
.NET interop with multiple versions of Office (2002 and 2003)
Posted by Sebastian Daser at 12/4/2006 1:59:29 PM
Hi,
I am adding a function to my VB.NET application that allows reading data
from an Excel file. I have added a reference to "Microsoft Excel 11.0 Object
Library", since I have Office 2003 on my PC.
This is working fine so far, but the application will also be installed on
PCs with Offic... more >>
WARNING: Office XP PIAs Cause Office 2000 Apps to Fail
Posted by wilsonj8234 NO[at]SPAM yahoo.com at 12/4/2006 6:13:05 AM
I am developing an Excel automation app. where I have only Office 2000
installed on my machine. Unfortunately I installed the Office XP PIAs.
This caused my app. to no longer interface with Excel. It appears
that even though I was using Excel 9.0 as my COM reference, the system
wanted to poin... more >>
|