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 getting a default email

I need to get the default email (which is selected in File > Account Settings > Account Settings). I have tried to get it in different ways: var outlookApp = new Application(); var defaultEmail = OutlookApp.Session.DefaultStore.DisplayName; var…
Alldman
  • 15
  • 7
0
votes
1 answer

Update Links to Files in PowerPoint using C#

I am building automated reporting using excel and PowerPoint templates that I am editing in c# before saving to a new file path. My PowerPoint template has objects imbedded that are linked to the excel template (think cell ranges and charts). I…
Jason247
  • 974
  • 4
  • 16
  • 38
0
votes
1 answer

NetOffice.Outlook distinguish between the images in the body of the email and the attached ones?

How can I distinguish between an image in the body of an email and an image attached to an email using the NetOffice.Outlook C# library?
Alldman
  • 15
  • 7
0
votes
1 answer

I can't get the result of a macro. C#, NetOffice.WordApi

There is a macro that performs simple calculations: Attribute VB_Name = "Calculate" Function Calculate(ByVal num1 As Double, ByVal num2 As Double, ByVal operator As String) As Double Dim result As Double Select Case operator Case…
Alldman
  • 15
  • 7
0
votes
0 answers

Properly disposing of OLEDB objects in .NET

I have an Excel plugin project made using ExcelDNA 1.6 in VB.NET (.NET framework 4.6.2) that uses the NetOffice 1.9.3 wrapper for Excel API calls. I'm using the "semi-annual enterprise" channel version of Excel. I had a common issue w/ COM wrapped…
Beastian
  • 35
  • 1
  • 6
0
votes
1 answer

How can I fix an PowerPoint VSTO that needs to Read from MS Project and the Version of MS Project Installed is different than the rest of Office?

I develop a commercially sold PowerPoint VSTO add-in that reads data from open Microsoft Project files. It takes what the user has currently selected in MS Project and creates a PowerPoint chart of it. The PowerPoint Add-in references the…
0
votes
1 answer

create setup file for a .netoffice project in advance installer

my project is a addin word with .netoffice. I tried to create a setup file with advance installer, The dlls of the debug file are registered, and I gave administrator access for run setup, But still my addin is not loaded in Word! Can anyone…
0
votes
1 answer

changing range of source data for a chart in Powerpoint

I have a powerpoint template with a simple bar chart with (say) 15 rows Depending of the results of a data lookup occurring in the c# application, using NetOffice Interop I may need to reduce the number of rows that are being displayed I had hoped…
Offbeatmammal
  • 7,970
  • 2
  • 33
  • 52
0
votes
1 answer

Create a PDF/A file with NetOffice

I create my PDF file with: ExportAsFixedFormat(pdffilename, WdExportFormat.wdExportFormatPDF); but i need a PDF/A PDF. Is there a way to get this done with NetOffice?
Laibach
  • 13
  • 2
0
votes
1 answer

read/write Values/XValues in a SeriesCollection

migrating an old VBA project to C# using Interop to manipulate Powerpoint and trying to find a way to replicate some of the old solution I can get my Series Collection using: NetOffice.PowerPointApi.Series test_sc =…
Offbeatmammal
  • 7,970
  • 2
  • 33
  • 52
0
votes
1 answer

how to run the NetOffice example?

I'm checking NetOffice and trying to run a simple example from below: https://github.com/NetOfficeFw/Samples/tree/master/Excel/02%20NetOffice%20Excel%20COMAddin%20Sample/01%20Simple how can run this example in visual studio? ideally I think it…
Ashish
  • 19
  • 1
0
votes
1 answer

Use NetOffice.PowerPointApi on azure app service

I have written a code to save all the slides in a presentation as jpeg. It works well in visual studio locally on my system, but when I deploy it on Azure app service, I get 500 internal server error. IIS received the request; however, an internal…
0
votes
0 answers

NetofficeFw Exception when calling GetActiveInstance

I am trying to open the active instance of Outlook 365 (32bit) with NetOfficeFw 1.7.8 on visual studio 2017 application running at 64 bit. I have Outlook 365 Opened. My class starts like this: using System; using System.Linq; using…
Randy
  • 1,137
  • 16
  • 49
0
votes
1 answer

Netoffice Outlook addin registration trouble

I'm trying to register a Netoffice Outlook Addin. After creating it with the Netoffice Developer Toolbox I am unable to start it. The error in visual studio is: assembly cannot be registered - access denied. Make sure that you run the application…
undertree
  • 79
  • 1
  • 1
  • 10
0
votes
1 answer

Export DataGridView to Excel using NetOfficeFW

I used Microsoft.Office.Interop to export my DataGridView into Excel, however I'm not willing to use MS Office anymore and shifted to LibreOffice and WPS. I decided to use an alternative approach (NetOfficeFW), and modified the original code into…
Emad Mohamed
  • 97
  • 2
  • 10