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

Outlook AddIn (NetOffice) - Context Menu

I'm using NetOffice developing an MS Outlook AddIn, and I want to add a custom context menu item in the calendar, to allow users add a new custom appointment for the selected time range. So as written in this article I define my additional item in…
alek kowalczyk
  • 4,896
  • 1
  • 26
  • 55
0
votes
1 answer

NetOffice - Custom Task Pane in a Appointment window in Outlook

I found out that it's possible to add custom task panes to individual windows like e.g. the appointment with this code snippet: public void Inspectors_NewInspector(Microsoft.Office.Interop.Outlook.Inspector Inspector) { …
alek kowalczyk
  • 4,896
  • 1
  • 26
  • 55
0
votes
2 answers

NetOffice - Accessing Word Editor in Outlook MailItem

iam playing around with the NetOffice Wrapper and trying to access the Word Editor of an Outlook Mailitem. Previously i was using MailItem mItem = (MailItem)inspector.CurrentItem; Microsoft.Office.Interop.Word.Document docx =…
Stefan Weber
  • 115
  • 1
  • 1
  • 10
0
votes
1 answer

Get CurrentEmail Details on Outlook Addins Using NetOffice

Good day, Its my first time creating an addin and I have created an addin for outlook using netoffice developer toolbox, the button was created when i opened the message like the below image but i dont know how to get the the emails…
Goenitz
  • 115
  • 1
  • 2
  • 10
0
votes
0 answers

NetOffice ExcelAPI Causing 500 Error

I have a web application that uses NetOffice ExcelAPI. All works okay on the local development machine, but when I deploy the application to the server and run the app I get a 500 error. The log file doesn't seem to register that such an event has…
normality2000
  • 51
  • 1
  • 6
0
votes
1 answer

Refresh Outlook mailitem

I have created an Outlook addin using NetOffice and it does exactly what it is meant to do: find inline images with broken src attributes (src="cid:somecontent@id") and try to fix them to point to the correct attachments. This is because from an…
Mihai Caracostea
  • 8,336
  • 4
  • 27
  • 46
0
votes
1 answer

NetOffice add-in not loading with 64 bit Office 2013 installation

I have build a Multi add-in using NetOffice it working fine allover expect on 64 bit installation of Office. Anyone have idea about this all registry entry is going at correct place, still it is showing in Inactive Add-in list with empty path(see…
Hitendra
  • 329
  • 2
  • 17
0
votes
0 answers

C# System.Windows.Forms.DataGridView vertical scroll is visible but cannot be used

I am using a DataGridView to store some search results but can't seem to get the scroll bar on the grid to work. I have attribute ScrollBars set to Vertical. When results are added the bar appears and looks to be working as expected. If I scroll on…
AndrewT
  • 468
  • 1
  • 8
  • 23
0
votes
2 answers

How to instantiate a new Worksheet

I'd like to subclass the NetOffice.ExcelApi.Worksheet class because I need a "custom" worksheet with the extra fields. As part of the construction of an instance of this new class, I'd like to just call the base class' constructor. That is,…
siki
  • 9,077
  • 3
  • 27
  • 36
0
votes
1 answer

ExcelDna/NetOffice/Excel: Most efficient way to insert values?

I'm building an addin for Excel using ExcelDna and NetOffice and fetch data from various source and insert this into worksheets. My problem is that the insertion of data in the worksheet is really slow. What is the most efficient way of inserting…
Niels Bosma
  • 11,758
  • 29
  • 89
  • 148
0
votes
1 answer

MVC Issue with Excel ODBC Drivers

I am getting an error The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine. the code works locally but not remotely. Due to restrictions on remote hosting environment I wonder if the code below can be amended to use…
iggyweb
  • 2,373
  • 12
  • 47
  • 77
0
votes
1 answer

NetOffice CustomTaskPane is being disabled on load

I'm trying to replace VSTO with NetOffice for an Excel Addin. I'm able to load the taskpane, but it is disabled and I'm unable to interact with any of the controls on it. I can get the example taskpane to work fine, but mine will not even thought…
Erick
  • 1,176
  • 15
  • 25
0
votes
1 answer

Apply a TableStyle to a QueryTable

I can use a query table: var sheet = (_excel.ActiveSheet as Excel.Worksheet); var rng = sheet.Range("A1"); var qt = sheet.QueryTables.Add("ODBC;...", rng, "SELECT * FROM myTable"); qt.Refresh(); and this will import the data correctly (e.g. dates…
Cheetah
  • 13,785
  • 31
  • 106
  • 190
0
votes
2 answers

schedule workbooks to run at different time in Excel AddIn

I have an Excel AddIn written in C#, Excel-DNA, NetOffice On each workbook, users can run some process to fetch data (using REST web service) from a server. Now users want to automatically refetch data (refresh) on each workbook at different…
toosensitive
  • 2,335
  • 7
  • 46
  • 88
0
votes
1 answer

Printing Word document with NetOffice

I'm on the middle of migrating a service to using NetOffice instead of automating MS Word, to prevent Office assembly version mismatch when deploying to systems with older Office than on the development system. So far everything has worked out…
Aidal
  • 799
  • 4
  • 8
  • 33