Quantcast
Channel: NetOffice - MS Office in .NET
Viewing all 1741 articles
Browse latest View live

New Post: AppointmentItem Write event never triggers

$
0
0
Outlook.MeetingItem.GetActiveInstance() returns null

New Post: AppointmentItem Write event never triggers

New Post: AppointmentItem Write event never triggers

$
0
0
Turns out the GetActiveInstance calls actually failed due to an COMException "Target instance is not running". I passed in "true" to them.
private static void AppointmentWriteEventHandler(ref bool Cancel)
        {
            Outlook.MeetingItem m = Outlook.MeetingItem.GetActiveInstance(true);
            Outlook.AppointmentItem a = Outlook.AppointmentItem.GetActiveInstance(true);
            
            System.Windows.Forms.MessageBox.Show("Write event meeting");
        }

Created Unassigned: Outlook's Explorer.InlineResponseClose event is not supported [21959]

$
0
0
The InlineResponse event on the Explorer object is supported but the InlineResponseClose is not. Please implement it in the next version.

Commented Unassigned: Outlook-Addin / Inspector.currentitem [21878]

$
0
0
Hi Sebastian,

There seems to be s small bug concerning the destruction of com-objects of inspector.currentitem in outlook in Netoffice 1.7.3
You can reproduce it by creating an instance of the class below in Addin_OnStartupComplete and then
e.g. copy a mail from the inbox in Outlook to the desktop, open it, close it, and then try to delete it or try to reopen it.

There will appear messageboxes saying that the object is in use.
_________________________
public class AddinTester
{
Outlook.NameSpace olNs;
Outlook.Application Outl;
Outlook.Inspectors olInsp;

public AddinTester(ref Outlook.Application OlApp)
{
Outl = OlApp;
olNs = (Outlook.NameSpace)Outl.GetNamespace("MAPI");

olInsp = (Outlook.Inspectors)OlApp.Inspectors;

olInsp.NewInspectorEvent += olInsp_NewInspectorEvent;
}

void olInsp_NewInspectorEvent(Outlook._Inspector Inspector)
{
if (Inspector.CurrentItem is Outlook.AppointmentItem)
System.Windows.Forms.MessageBox.Show("Appointment");
else
System.Windows.Forms.MessageBox.Show("No Appointment");
}
}


Best Regards,

Andreas
Comments: ** Comment from web user: _Andreas_ **

Hallo Sebastian,

sorry für den lag, Urlaubszeit etc ...

ok, also das Problem ist etwas exotisch:
User hier in der Firma legen Mails, Termine etc auf den Desktop, oder in einen Ordner im Filesystem (warum auch immer).
Zu irgend einem Zeitpunkt wollen sie den Termin / die Mail öffnen, und erhalten eine Fehlermeldung, dass das Objekt noch in Use ist. Sie können den Termin weder öffnen, noch löchen. Mit der Klasse oben kannst du das reproduzieren

Gruß

Andreas

Created Unassigned: cannot access to Rows property in ExcelAPI [21962]

$
0
0
Hi,
I'm a new user of net office and I'm trying to make a ribbon addin to Excel. It's kind of a proof of concept to show it is possible to make a real powerfull/clean/maintainable development using .NET instead of writing tons of vba code (using sharpdevelop).
One of the basic feature I'm trying to show is to select a row in a sheet, click on a button and then insert a row just underneath the one selected.
You could write it in vba like this:
Selection.Rows.insert()
But I can't find any Rows property (nor any Columns property) in Worksheet class (can't find it anywhere else). Then I tried to find methods provided by ExcelAPI DLL; I just found that Rows property exist but that Browsable attribute has been set to false.
Is this expected? If so, how can I access that property to insert a row where I want?

thank you

New Post: Cannot use NetOffice with .NET 4.5.1 application

$
0
0
Hi,
We have an application which used .NET 3.5 and not we are going to update it to 4.5.1. NetOffice version we have is 1.5.1.2. I just downloaded new version from here and cannot build the application.
Below is error message:
Error 17 Interop type 'NetOffice.ExcelApi.Application' cannot be embedded. Use the applicable interface instead.

This is the line where error points to
using ExcelApplication = NetOffice.ExcelApi.Application;
and few lines where we use it:
version = Application.ProductVersion;
public static ExcelApplication CreateExcelApplication()
        {
            var application = new ExcelApplication();

            application.Visible = false;
            application.ScreenUpdating = false; // performance speed-up
            application.DisplayAlerts = false;

            return application;
        }

New Post: Cannot use NetOffice with .NET 4.5.1 application

$
0
0
its a reference problem.
go to rerefence options set the Option "Embed Interop Types" to false.

*Sebastian

Commented Unassigned: Outlook's Explorer.InlineResponseClose event is not supported [21959]

$
0
0
The InlineResponse event on the Explorer object is supported but the InlineResponseClose is not. Please implement it in the next version.
Comments: ** Comment from web user: SebastianDotNet **

thanks for pointing this out.
i have no idea why its missing. i use the last public beta from office 2013 to create the NetOffice source code. may it was not included here. i want add the InlineResponseClose event to NetOffice 1.4 tomorrow.

THX!
*Sebastian

Commented Unassigned: cannot access to Rows property in ExcelAPI [21962]

$
0
0
Hi,
I'm a new user of net office and I'm trying to make a ribbon addin to Excel. It's kind of a proof of concept to show it is possible to make a real powerfull/clean/maintainable development using .NET instead of writing tons of vba code (using sharpdevelop).
One of the basic feature I'm trying to show is to select a row in a sheet, click on a button and then insert a row just underneath the one selected.
You could write it in vba like this:
Selection.Rows.insert()
But I can't find any Rows property (nor any Columns property) in Worksheet class (can't find it anywhere else). Then I tried to find methods provided by ExcelAPI DLL; I just found that Rows property exist but that Browsable attribute has been set to false.
Is this expected? If so, how can I access that property to insert a row where I want?

thank you
Comments: ** Comment from web user: SebastianDotNet **

have you tried get_Rows? (in some situations visual basic has problems to the see properties from c# code)


*Sebastian

Commented Unassigned: Outlook-Addin / Inspector.currentitem [21878]

$
0
0
Hi Sebastian,

There seems to be s small bug concerning the destruction of com-objects of inspector.currentitem in outlook in Netoffice 1.7.3
You can reproduce it by creating an instance of the class below in Addin_OnStartupComplete and then
e.g. copy a mail from the inbox in Outlook to the desktop, open it, close it, and then try to delete it or try to reopen it.

There will appear messageboxes saying that the object is in use.
_________________________
public class AddinTester
{
Outlook.NameSpace olNs;
Outlook.Application Outl;
Outlook.Inspectors olInsp;

public AddinTester(ref Outlook.Application OlApp)
{
Outl = OlApp;
olNs = (Outlook.NameSpace)Outl.GetNamespace("MAPI");

olInsp = (Outlook.Inspectors)OlApp.Inspectors;

olInsp.NewInspectorEvent += olInsp_NewInspectorEvent;
}

void olInsp_NewInspectorEvent(Outlook._Inspector Inspector)
{
if (Inspector.CurrentItem is Outlook.AppointmentItem)
System.Windows.Forms.MessageBox.Show("Appointment");
else
System.Windows.Forms.MessageBox.Show("No Appointment");
}
}


Best Regards,

Andreas
Comments: ** Comment from web user: SebastianDotNet **

da muss ich nochmal nachfragen. von wem kommt denn der fehler?
ist das eine exception wenn ja wo?
(die datei-endung ist .msg? - damit ich auchs richtig reproduziere)

*Sebastian

Commented Unassigned: cannot access to Rows property in ExcelAPI [21962]

$
0
0
Hi,
I'm a new user of net office and I'm trying to make a ribbon addin to Excel. It's kind of a proof of concept to show it is possible to make a real powerfull/clean/maintainable development using .NET instead of writing tons of vba code (using sharpdevelop).
One of the basic feature I'm trying to show is to select a row in a sheet, click on a button and then insert a row just underneath the one selected.
You could write it in vba like this:
Selection.Rows.insert()
But I can't find any Rows property (nor any Columns property) in Worksheet class (can't find it anywhere else). Then I tried to find methods provided by ExcelAPI DLL; I just found that Rows property exist but that Browsable attribute has been set to false.
Is this expected? If so, how can I access that property to insert a row where I want?

thank you
Comments: ** Comment from web user: pasielsky **

I'm using CSharp in Sharpdevelop. Intellisense does not provide any Rows nor Columns properties. Again, using ildasm on Excel API DLL, it shows me a method called Rows but I can see its browsable attribute has been set to false.
I'm using net office 1.7.3
get_Rows is unavailable as well.

Commented Unassigned: cannot access to Rows property in ExcelAPI [21962]

$
0
0
Hi,
I'm a new user of net office and I'm trying to make a ribbon addin to Excel. It's kind of a proof of concept to show it is possible to make a real powerfull/clean/maintainable development using .NET instead of writing tons of vba code (using sharpdevelop).
One of the basic feature I'm trying to show is to select a row in a sheet, click on a button and then insert a row just underneath the one selected.
You could write it in vba like this:
Selection.Rows.insert()
But I can't find any Rows property (nor any Columns property) in Worksheet class (can't find it anywhere else). Then I tried to find methods provided by ExcelAPI DLL; I just found that Rows property exist but that Browsable attribute has been set to false.
Is this expected? If so, how can I access that property to insert a row where I want?

thank you
Comments: ** Comment from web user: SebastianDotNet **

Currently, the Rows property is hidden. same for columns. (i want clearify why it is...)
in other words you can use them but Intellisense wont show it.

i want remove the hidden annotations for the properties immediately.
please let me know if you find some more...

*Sebastian

Source code checked in, #114715

$
0
0
[Regular Commit] - remove hidden annotations from Excel:WorkSheet:Columns,Rows [issue:21962] - add missing Outlook:Explorer:InlineResponseCloseEvent [issue:21959] - fix Toolbox:Programs.cs duplicate identity dispose

Commented Unassigned: Outlook-Addin / Inspector.currentitem [21878]

$
0
0
Hi Sebastian,

There seems to be s small bug concerning the destruction of com-objects of inspector.currentitem in outlook in Netoffice 1.7.3
You can reproduce it by creating an instance of the class below in Addin_OnStartupComplete and then
e.g. copy a mail from the inbox in Outlook to the desktop, open it, close it, and then try to delete it or try to reopen it.

There will appear messageboxes saying that the object is in use.
_________________________
public class AddinTester
{
Outlook.NameSpace olNs;
Outlook.Application Outl;
Outlook.Inspectors olInsp;

public AddinTester(ref Outlook.Application OlApp)
{
Outl = OlApp;
olNs = (Outlook.NameSpace)Outl.GetNamespace("MAPI");

olInsp = (Outlook.Inspectors)OlApp.Inspectors;

olInsp.NewInspectorEvent += olInsp_NewInspectorEvent;
}

void olInsp_NewInspectorEvent(Outlook._Inspector Inspector)
{
if (Inspector.CurrentItem is Outlook.AppointmentItem)
System.Windows.Forms.MessageBox.Show("Appointment");
else
System.Windows.Forms.MessageBox.Show("No Appointment");
}
}


Best Regards,

Andreas
Comments: ** Comment from web user: _Andreas_ **

Ok, zum reporduzieren:
- Termin (ist *.msg) per drag & drop auf den Desktop ziehen
- Termin öffnen und wieder schliessen (ohne Änderung)
- Versuchen, den Termin zu löschen
- Fehlermeldung poppt auf (file attached)


Updated Release: NetOffice 1.7.3 (Feb 25, 2015)

$
0
0
Download 1: NetOffice Release 1.7.3

Includes:
- Binaries .NET : v2.0, v3.0, v3.5, v4.0, v4.5
- Tutorials/Examples in C#/VB.Net
- Source Code

Download 2: NetOffice Developer Toolbox
requires .NET 4(Client Profile)

Features:

- Project Wizard
- Office Compatibility
- Application Observer
- Registry Editor
- Addin Guard
- Outlook Security
- Office UI

Released: NetOffice 1.7.3 (Feb 25, 2015)

$
0
0
Download 1: NetOffice Release 1.7.3

Includes:
- Binaries .NET : v2.0, v3.0, v3.5, v4.0, v4.5
- Tutorials/Examples in C#/VB.Net
- Source Code

Download 2: NetOffice Developer Toolbox
requires .NET 4(Client Profile)

Features:

- Project Wizard
- Office Compatibility
- Application Observer
- Registry Editor
- Addin Guard
- Outlook Security
- Office UI

Updated Release: NetOffice 1.7.3 (Feb 25, 2015)

$
0
0
Download 1: NetOffice Release 1.7.3

Includes:
- Binaries .NET : v2.0, v3.0, v3.5, v4.0, v4.5
- Tutorials/Examples in C#/VB.Net
- Source Code

Download 2: NetOffice Developer Toolbox
requires .NET 4(Client Profile)

Features:

- Project Wizard
- Office Compatibility
- Application Observer
- Registry Editor
- Addin Guard
- Outlook Security
- Office UI

New Post: Cannot use NetOffice with .NET 4.5.1 application

$
0
0
Hi Sebastian,
Thanks for reply.
It is already set to False
Image

New Post: Cannot use NetOffice with .NET 4.5.1 application

$
0
0
you have to set this setting for each individual NetOffice (assembly) reference.
in your case: ExcelApi.dll cause problems here.

in other words: use this settings for all NetOffice (assemblies) references you know.

NetOffice contains multiple assemblies.
Set all reference settings here to "Embed Interop Types:false" and everything is okay.
(i'm sry visual studio is very stupid here)

*Sebastian
Viewing all 1741 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>