office-interop Questions
9
Solved
(Somewhat of a follow on from the post (which remains unanswered): https://stackoverflow.com/q/6197829/314661)
Using the following code
Application app = new Application();
_Document doc = app.Do...
Savill asked 21/7, 2011 at 14:11
7
Solved
I have a C# winforms app and I am simply trying to open an Excel sheet. When I try to add a reference to Microsoft.Office.Interop, the "Office" part is red and says "Can't resolve symbol 'Office'"....
Rael asked 23/7, 2013 at 22:35
6
Solved
I using Microsoft.Office.Interop.Excel I get returned a 2D array of type object[,] which contains double for elements. Note that the index lower bound is 1 instead of the default 0, but I can deal ...
Pyxis asked 22/2, 2011 at 20:28
6
Solved
PowerPoint.Application PowerPoint_App;
PowerPoint_App = new PowerPoint.ApplicationClass();
PowerPoint_App.DisplayAlerts = PowerPoint.PpAlertLevel.ppAlertsNone;
PowerPoint.Presentation presentation;...
Error asked 24/2, 2014 at 12:41
6
Such as read-only confirm, other alerts.
What to do with these popups? Or ignore them?
Heder asked 7/4, 2011 at 2:0
6
My application (vb.net windows application deployed via ClickOnce) uses Word to open and fill .dot templates to create new Word documents. I reference Microsoft Word 14 Object Library and uses this...
Meitner asked 7/3, 2012 at 16:45
5
Solved
I have written this code to view the unread items in my outlook mail box and here is the code:
Microsoft.Office.Interop.Outlook.Application app;
Microsoft.Office.Interop.Outlook.Items items;
M...
Windshield asked 11/1, 2011 at 10:0
5
Solved
I have an application that calls
Email hello = new Email(appropriate constructor);
hello.Email_Send();
I'm receiving the exception:
Retrieving the COM class factory for component with CLSID {...
Surplusage asked 12/10, 2012 at 14:18
5
My application has a feature to export to Microsoft Word, but it hasn't worked since I've upgraded from Microsoft Office 2010 to Microsoft Office 2013.
Here is the code:
Microsoft.Office.Interop...
Amaliaamalie asked 12/3, 2014 at 2:0
3
Solved
I am trying to duplicate a table row in Word, using VBA, without using the Selection object or the clipboard. That is, I want a new row that has the same content as an existing row.
To do this, I ...
Problematic asked 12/9, 2013 at 17:9
2
Solved
Struggling to open Office files from a C# application, .NET 6. Note this works just fine using .NET framework.
The official MS nuget package Microsoft.Office.Interop.Word appears to support only up...
Decontrol asked 26/11, 2022 at 14:6
2
Solved
Marshal.GetActiveObject("Outlook.Application") throws Operation unavailable (Exception from HRESULT: 0x800401E3 (MK_E_UNAVAILABLE)) when Outlook is started and continues while it is running until a...
Chaldean asked 7/2, 2019 at 22:59
7
Solved
I am trying to create about 600 reports in Microsoft office Word. The documents are populated with data from a database, and images found on a local drive.
I have figured out, that I might create a...
Wilmott asked 29/11, 2010 at 13:34
4
Solved
Just wondering if anyone knows how to not save a document after creation when using Microsoft.Office.Interop.Word.
Basically i am using mail merge to print off a report from c#, the document get m...
Ebsen asked 5/3, 2013 at 19:0
13
Solved
Iam exporting a DataTable to an Excel-file using office interop. The problem is, that Excel does not recognize dates as such, but instead it displays numbers. In another case I pass a string which ...
Gayl asked 22/7, 2010 at 15:55
3
Solved
I am trying to set the data type to an excel column in C#, in this case the data types number, text and date.
How does one set a format to an entire excel column?
Ectogenous asked 11/12, 2012 at 20:9
12
Solved
I have a .Net-Windows application in C#. I need to open an excel and process it. How can I do this without using Microsoft.Office.Interop.Excel libraries?
Imputation asked 6/2, 2012 at 4:40
7
Solved
I am trying to read an Excel file into a list of Data.DataTable, although with my current method it can take a very long time. I essentually go Worksheet by Worksheet, cell by cell, and it tends to...
Fushih asked 10/7, 2013 at 17:32
1
We are inserting content controls programmatically in word document and we don't want to add actions to the undo stack of word. The only way that we found is to access the undo commandbar-combobox ...
Inspectorate asked 22/5, 2012 at 14:15
3
Solved
I am developing an application for automatic Excel to PDF generation. Every now and then (and without any apparent cause, the following popup comes up while the program runs:
Print driver host f...
Mobcap asked 24/7, 2014 at 14:38
2
Solved
I'm writing an app that will manipulate Outlook data. I want to make a backup of that data first and am hoping I could just loop through the contact/calendar items, etc and write them out to a PST ...
Knave asked 12/11, 2009 at 19:33
1
Solved
I'm using Visual Studio 2022. I have created a .net 6 project.
I added the COM references: Microsoft Excel 16 Object Library (Microsoft.Office.Interop.Excel) and Microsoft Office 16 Object Library ...
Rhoden asked 11/11, 2021 at 1:7
3
Solved
I have an xlsx file that includes charts each in sheets. I want to save it as pdf file.
I made a sample using excel.interop:
Application excelApplication = new Application();
Workbook wkb = excel...
Virgy asked 16/2, 2016 at 10:53
3
I'm using Microsoft.Bcl.Async in my Word addin, my addin is compiled as an exe (test_addin.exe) file, that is loaded as an assembly from Microsoft Word, when I start the executable directly, everyt...
Washedout asked 4/9, 2014 at 11:31
13
Solved
I have a windows service that opens up an Excel spreadsheet via the Microsoft.Office.Interop.Excel.Application object.
Application xlApp = new Application();
Workbook workbook = xlApp.Workbooks.Op...
Backward asked 11/4, 2011 at 21:4
1 Next >
© 2022 - 2025 — McMap. All rights reserved.