Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I've created the Microsoft.Office.Interop.Excel.ApplicationClass instance
using following code. theServer = Activator.CreateInstance(ServerType); private static Type ServerType { get { return Type.GetTypeFromProgID("Excel.Application"); } } Type typeof_Server = theServer .GetType(); typeof_Server.InvokeMember("ActivePrinter", BindingFlags.SetProperty, null, theServer ,new object[] { "MyPrinter on Ne03:" }); I'm not able to set printer property for this instance using the above code. It gives an exception unable to set the ActivePrinter Property for the ApplicationClass. In MSDN the ActivePrinter property for Microsoft.Office.Interop.Excel.ApplicationClass instance has following description. public virtual string ActivePrinter {get; set;}This property supports the ..NET Framework infrastructure and is not intended to be used directly from your code. How do i set it. Thanks Vinu |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Microsoft.Office.Interop.Excel.Application | Excel Programming | |||
Namespace Microsoft.Office.Interop | Excel Programming | |||
Microsoft.Office.Interop.Excel Texttocolumns C# | Excel Programming | |||
Where can I find Microsoft.Office.Interop.Excel.dll? | Excel Programming | |||
COMException With Microsoft.Office.Interop.Excel | Excel Programming |