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

Detect password protected word file

I am using "netoffice" library for extracting the text from word files. This should be automated process. However, when the word file is password protected, the alert windows is shown so the user needs to enter the password. Because this is…
Programmer
  • 400
  • 5
  • 18
2
votes
1 answer

Unable to pass excel objects as parameters from VBA to .NET when using NetOffice interop

Excel objects like Worksheet, Workbook, Range etc. can be passed from VBA to .net as parameters when Microsoft's interop assembly is referenced: .NET class: using Excel =…
tuncalik
  • 1,124
  • 1
  • 14
  • 20
2
votes
1 answer

Netoffice Hello World

I used VSTO a couple of years ago with Visual Studio to do some nice little addins for outlook. But I can't justify the cost of VS to do some part time projects. As a result I have installed the free version of VS and downloaded a promising office…
AndrewT
  • 468
  • 1
  • 8
  • 23
2
votes
2 answers

NetOffice - IDTExtensibility2 vs ComAddin

Is there a technical advantage in netoffice by using IDTExtensibility2 vs ComAddin in netoffice? Or do they both accomplish the same thing (although via different paths)? I'm aware ComAddin inherits from the IDTExtensibility2 interface - I guess…
bbqchickenrobot
  • 3,592
  • 3
  • 45
  • 67
2
votes
1 answer

NetOffice and VSTO is it possible the coexistence?

I created a projects for an add-ins in excel using ribbon designer and i am planning do to some changes. However, to work with excel.interop is really tricky. So, i wish to know if it is possible to coexist Netoffice and VSTO?. AFAIK, what i am…
magallanes
  • 6,583
  • 4
  • 54
  • 55
1
vote
1 answer

How can I get desired range in the protected word document (NetOffice.Word C#)?

I have a protected document (doc.ProtectionType == wdAllowOnlyFormFields). It has areas that can be edited. Everything else is protected even from copying. I'm using the NetOffice.Word library and I'm trying to programmatically find text and create…
Alldman
  • 15
  • 7
1
vote
0 answers

show Series Name as Legend when only one Series

If I have a graph with (say) two Series, and the legends showing the series names, if I hide one of the series: NetOffice.PowerPointApi.Series sr = (NetOffice.PowerPointApi.Series)xob2.Chart.SeriesCollection(1); sr.IsFiltered = true; the legend…
Offbeatmammal
  • 7,970
  • 2
  • 33
  • 52
1
vote
0 answers

update data on a chart and then refresh underlying 'edit data' view

Using the NetOffice PowerPoint API to update charts in PowerPoint using (eg) using (NetOffice.PowerPointApi.Series ser = (NetOffice.PowerPointApi.Series)xob2.Chart.SeriesCollection(xs)) { ser.Values = someNewValues; } while this…
Offbeatmammal
  • 7,970
  • 2
  • 33
  • 52
1
vote
1 answer

Creating a Name Range in Excel using NetOffice throws a COMException

I would like to create a Named Range in Excel from a NetOffice, but I cannot figure out how to invoke the method. Whatever the input, the underlying Excel Object throws a COMException with a generic HRESULT 0x800A03EC Error. Excel version Office…
XavierAM
  • 1,627
  • 1
  • 14
  • 30
1
vote
1 answer

C# Get active Word using NetOffice

We have a C# WPF application which has a button which does nothing more than start Word with the default document path as parameter so the user automatically arrives in the right folder when saving the document. We use NetOffice to start Word and…
1
vote
1 answer

Intermittent File Not Found Exception retrieving COM class using NetOffice to create Excel File (C#)

I have a program that runs on a SBS 2008 server which has Office 2007 installed and creates a report in an Excel file that is emailed. I'm using NetOffice to create the Excel file and it works most times. However, it's regularly throwing a File…
Tom Cahill
  • 11
  • 3
1
vote
0 answers

Range TextVisibleOnScreen always return -1

I am using the following code to find some strings in my document: Application application = Addin.Application; Document document = application.ActiveDocument; Range rng = document.Content; rng.Find.ClearFormatting(); rng.Find.Forward =…
Leo
  • 5,013
  • 1
  • 28
  • 65
1
vote
1 answer

HitHighlight only for current Range

I am using the following code to find some strings in my document: Application application = Addin.Application; Document document = application.ActiveDocument; Range rng = document.Content; rng.Find.ClearFormatting(); rng.Find.Forward =…
Leo
  • 5,013
  • 1
  • 28
  • 65
1
vote
0 answers

NetOffice Visio reports an Incorrect identity configured when run from IIS

I am trying to use the Visio API to convert Visio documents to another format by using NetOffice.VisioApi.InvisibleApp and the Export method. This works as an interactive user, but so far not from IIS. I am aware of the reasons given for why using…
Shawken X
  • 65
  • 5
1
vote
1 answer

Can't access word document on my server with NetOffice, but it works in local

Please, read the entire post, it's not a simple NullReferenceException problem : I'm trying to open a word document to write some informations on it using NetOffice. The problem is that I get à NullReferenceException everytime I try to do it. here…
alexay68
  • 172
  • 10