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
11
votes
1 answer

Word Statusbar gets reset when I use range.Information

I have the following code (simplified to show the problem): var wdApp = new Application(); var wdDoc = wdApp.Documents.Open("C:\foo.docx"); wdApp.StatusBar = "Updating..."; var rng = wdDoc.Range(10, 10); if…
Rand Random
  • 7,300
  • 10
  • 40
  • 88
5
votes
2 answers

Programmatically get user that is locking an excel workbook

I am using C# framework 4.5, netoffice 1.6 and sharpdevelop 4.4.1 to manipulate an excel workbook, located on a network share, from within Outlook. At some point I need to change the file access of the workbook object (ewb) to readwrite like…
nire
  • 448
  • 2
  • 13
5
votes
1 answer

How add header with .NetOffice library

I'm using NetOffice to create Word documents. There is little documentation and I'm struggling to add a header. Can anybody help?
Hazel
  • 141
  • 1
  • 2
  • 10
4
votes
2 answers

Netoffice progid not found

I've done find and replace solution in Micorsoft.Office.Interop.Word in asp.net I would like to move this solution on NetOffice in my asp.net server where there is no Microsoft Word. I got error progid not found . What I do wrong because on my…
Daniel
  • 197
  • 1
  • 3
  • 16
4
votes
3 answers

Running out of memory looping through mail items

Hi I have a Outlook com addin that is doing some simple searching tricks for me. I am part way through putting it together but I am having issues with it running out of memory. The process is very simple and basically loops through an outlook folder…
AndrewT
  • 468
  • 1
  • 8
  • 23
3
votes
1 answer

Getting Range coordinates only for Ranges on the screen

I am currently using the following method to find the coordinates of a Range within a document: private Rectangle GetRangeCoordinates(Window w, Range r) { int left = 0; int top = 0; int width = 0; int height = 0; w.GetPoint(out…
Leo
  • 5,013
  • 1
  • 28
  • 65
3
votes
1 answer

Is It possible have custom pop-up menu for more than one mailItems in NetOffice

My custom pop-up context menu run only for selection of one mail in my mail-list. Is there posibily to run for more than one mail selection?
ThanosK
  • 33
  • 4
3
votes
1 answer

NetOffice - add-in not loading

I'm developing an Outlook add-in using the NetOffice library. It was a nice experience, but lastly I changed my drive, reinstalled windows, office etc. Now my add in doesn't run, and in the "COM Add-Ins" in Outlook options I see: Load Behavior: Not…
alek kowalczyk
  • 4,896
  • 1
  • 26
  • 55
3
votes
1 answer

How can I change the Row-Color of an excel-row with NetOffice?

I'm struggling with a simple problem, but I can`t figure it out. I have an excel document, which I do some processing with (using the NetOffice API). This works fine, but I want to change the row-color after the processing, so each row within the…
cordellcp3
  • 3,557
  • 1
  • 17
  • 14
2
votes
2 answers

Replace Text in Word Document

I am using the NetOffice library to edit a Word document. In my document, I have a field "{NAME}" that I would like to replace with a value "John Smith". However, executing the following code does not work. Find.Execute returns false, indicating…
Groger
  • 532
  • 3
  • 15
2
votes
1 answer

Can i use netoffice package to automate outlook application from a web application. Is there any disadvantages

Can i use netoffice package to automate outlook application from a web application. I need to open outlook window to create meetings and send from a web application.Is there any disadvantages in using netoffice for the same?
Raj
  • 21
  • 1
2
votes
1 answer

Deployment Setup for Office

I have developed an Outlook plugin with the help of NetOffice. It's running fine on my development PC, but I'm struggling building a deployment setup. I googled a lot, but all the tutorials seem to target developers who have a professional version…
2
votes
1 answer

Check for array formula within a macro-style Excel UDF

I'm using Excel-DNA to create UDFs within Excel and NetOffice for version-independent automation calls. Within a macro-type function, I'm able to use the following to get the formula from a cell: ExcelReference cellRef; // of course in reality this…
Jon G
  • 4,083
  • 22
  • 27
2
votes
0 answers

I get nested tables, but I need separated tables (Netoffice,Word)

I wrote a WPF-Application to print a word documents with some tables in it, it works, but I get nested tables instead of separated tables. I was looking at different post, but they all did not work quite well e.g.: VB version .NET 4.5, but I need…
user254197
  • 883
  • 2
  • 9
  • 31
2
votes
1 answer

Detect if xll is permanently installed or if xll files was just adhoc opened?

I'm building an addin for Excel using ExcelDna and NetOffice. An addin in Excel can either be installed and included in every Excel session or it can be opened adhoc by just opening the xll file. Is there any way for me to programmatically detect in…
Niels Bosma
  • 11,758
  • 29
  • 89
  • 148
1
2 3 4 5 6 7