Questions tagged [netoffice]

NetOffice is an open source .NET library which offers solutions for Office developers in .NET. .NET Wrapper Assemblies are available for accessing MS Office applications without the need to use VSTO.

Features

  • Office integration without version limitations
  • All features of the Office versions 2000, 2002, 2003, 2007, 2010, 2013 are included
  • Active support in version independent development (please scroll down)
  • Syntactically and semantically identical to the Microsoft Interop Assemblies
  • No training if you already know the Office object model, use your existing PIA code
  • Reduced and more readable code with automatic management of COM proxies
  • Usable with .NET version 2.0 or higher
  • Easy Addin Development
  • No deployment hurdles, no registration
  • No dependencies, no interop assemblies, no need for VSTO
  • Visual Studio Project Templates and Wizards available Photo Gallery
93 questions
0
votes
1 answer

netOffice Outlook AppointmentItem filter by EntryID from a shared folder

I have a list of emails each corresponding to a shared calendar. In the AppointmentFound function given an AppointmentItem EntryID I would like to search if the item exists in the shared calendar. The error I get when I run AppointmentFound() is…
undertree
  • 79
  • 1
  • 1
  • 10
0
votes
1 answer

Is there a way to retrieve events (appointments) from all Outlook's shared calendars?

My problem is, I can't access and so iterate Outlook's shared calendars. I've tried several ways but they all take me back to the default calendar (i.e. my account calendar). I tried to loop in the subfolders, the GetSharedDefaultFolder() method and…
undertree
  • 79
  • 1
  • 1
  • 10
0
votes
1 answer

Doesn't access xls files in IIS

i am trying open xls file and convert to pdf using web api 2 service. When i start service project in vs 2013 everyting works fine, but when i publish the service to iis 8.0 and try to open excel file i got error: Error: Exception has been thrown…
Mennan
  • 4,451
  • 13
  • 54
  • 86
0
votes
1 answer

Adding presentation to newly open PowerPoint application - exception

I want to start PowerPoint instance, add a presentation to it in a way that has its window hidden (either a new one or existing one, both result in the same issue). However, I get run-time error in PowerPoint that says: Application…
blaz11
  • 23
  • 1
  • 7
0
votes
0 answers

Conditional formatting doesn't update with NetOffice.ExcelApi.Range.Value set for multiple cells

I made a code change recently to update several cells at once for performance reasons. The code looks like: private static void SetRangeValues(Worksheet sheet, int row, int col, object[] cellData) { var range = sheet.GetCell(row,…
stevejoy32
  • 354
  • 2
  • 5
0
votes
1 answer

NetOffice getting 80080005 Server execution failed

I'm trying to edit a Word document programmatically. However, when I debug and first try to create the Word.Application, I get Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the…
erosebe
  • 927
  • 3
  • 16
  • 31
0
votes
1 answer

Create TaskPane in Outlook with NetOffice

First things, I am a beginner in developing Add-Ins and I didn't find a good documentation for using NetOffice. I have created an automation Addin project with the NetOffice Developer Toolbox. I want to create a TaskPane. When I start the project it…
Felix
  • 9
  • 1
  • 8
0
votes
1 answer

Using NetOffice.Word to create a document creates an additional blank document

I have a class that creates a word document from an entity in my application. I'm using the NetOffice.Word package to interact with the document. My document is created perfectly, but another blank document also appears. Can anyone suggest what I…
Kevin O'Donovan
  • 1,620
  • 1
  • 13
  • 24
0
votes
1 answer

Netoffice - Outlook Add-in - Access Folder Events

I have a VBA project for Microsoft Office Outlook, which I'd like to rewrite as an Outlook Add-in with the help of NetOffice. Here's a piece of VBA code which I'd like to transfer: Dim objNS As Outlook.NameSpace Set objNS =…
0
votes
1 answer

Setting first slide to display using PowerPoint-Api

I use NetOffice.PowerPointApi to play some Powerpoint-Slides of an existing PPTX. This is how this is done: PowerPoint.Application powerApplication = new PowerPoint.Application(); PowerPoint.Presentation presentation =…
Ole Albers
  • 8,715
  • 10
  • 73
  • 166
0
votes
1 answer

How to listen to new document events in NetOffice Word Addin

I just created a Word Addin Project with NetOffice v1.7.3 to do a proof of concept. I can see 2 events (OnStartupComplete and OnDisconnection) has been hookup. public class Addin : Word.Tools.COMAddin { public Addin() …
Dat
  • 172
  • 1
  • 2
  • 9
0
votes
1 answer

Outlook AddIn - change the GlobalAppointmentId

Is there a way to change the GlobalAppointmentId of an appointment. I found this property schema: var globalIdPropertySchema = @"http://schemas.microsoft.com/mapi/id/{6ED8DA90-450B-101B-98DA-00AA003F1305}/00030102"; and I set a new value to…
alek kowalczyk
  • 4,896
  • 1
  • 26
  • 55
0
votes
1 answer

Handle Appointment drag'n'drop, subject change on calendar, and change through ICS file in Outlook

I'm developing an Outlook AddIn using the NetOffice library, but I guess the problem is similar for VSTO. I want to handle following events in Outlook regarding appointments: The user drag'n'drops appointments to change the date of the…
alek kowalczyk
  • 4,896
  • 1
  • 26
  • 55
0
votes
1 answer

Word interop cross referencing an endnote

I am trying to refer to an existing end note in word from a table cell in the document thus (using netoffice): row.Cells[2].Range.InsertCrossReference(WdReferenceType.wdRefTypeEndnote, WdReferenceKind.wdEndnoteNumberFormatted, 1); However, this…
Sundar
  • 43
  • 4
0
votes
1 answer

SetPlaceholderText NetOffice

Hello i'm tring to use netoffce to write word addin and face a strange problem i can't set text to new content control in word i know this…
Lukasz Ożóg
  • 216
  • 3
  • 15