3,637 questions
1
vote
1
answer
126
views
Unable to Save/SaveAs .xls and .xlt files using Microsoft.Office.Interop.Excel in VB.NET despite File Block Settings being unchecked in Trust Center
I have a Windows Forms application developed in VB.NET. I am trying to open an Excel file, manipulate it by adding new sheets and data, and then save the file using Microsoft.Office.Interop.Excel.
All ...
0
votes
0
answers
223
views
Italian locale settings break Excel Formulas in my code
I wrote a small Excel COM automation code that works on my machine.
Since everything worked fine, I have decided to test it on a client machine. Only formulas didn't work.
I always get #NOME? for ...
1
vote
0
answers
28
views
Word.Application.Documents.Open - document opens showing "Reviewing"
We use Interop to open Word Documents. Very simple, with a Word.Application object named oWApp we would open a document file:
oWDoc = oWApp.Documents.Open(FileName:=sFile)
We activate the document ...
5
votes
1
answer
183
views
Word.Document Close ComException [closed]
We have some legacy code that late binds to Microsoft.Office.Interop.Word to do various things with documents.
This code has worked fine for years.
The Solution is written in VB.NET and consists of ...
0
votes
0
answers
82
views
Issue with UndoRecord.StartCustomRecord in VSTO add-in: Undo stack breaks after bullet/numbering
I am using UndoRecord.StartCustomRecord in Microsoft.Office.Interop.Word to create custom undo records in my VSTO add-in. However, I’ve encountered some unexpected behavior that makes the Word undo ...
1
vote
1
answer
328
views
Outlook E-Mail Drag and Drop in C# Application
I want to drag / drop an e-mail from outlook in my c# / .net 4.8 application. This works with attachments since the file stream is directly sent but not with e-mails itsel. I expected them to coe as ....
0
votes
1
answer
1k
views
Interop.Excel not working with Office 2024
My C# project uses Office.Interop.Excel to create and save Excel files. It was working fine with Office 2013 but I just installed Office 2024 and now there is a big problem - The project builds fine ...
0
votes
0
answers
59
views
Word - not all hyperlinks exposed in WordprocessingDocument.MainDocumentPart
I am using C# to convert a Word .doc to PDF, and while doing so, all other documents referenced should also be changed from .doc to PDF, including all links within the documents (recursively).
The ...
0
votes
1
answer
80
views
How can I test if a Powerpoint 2003 file is password-protected?
I'm trying to create a Powershell script to iterate over files on a NAS to create custom properties on files fulfilling certain criteria. The bulk of the script is fine and working as expected. I came ...
0
votes
0
answers
93
views
Outlook Interop Window/Inspector Activate Behavior
In C#, I am using the Microsoft.Office.Interop.Outlook library to open a new Outlook email (in an Outlook inspector). Essentially creating a MailItem object and displaying it:
MailItem.Display();
...
0
votes
2
answers
65
views
Find Outlook ContactItem for Birthday AppointmentItem
When the birthday or anniversary for a contact item is set an appointment item is created automatically. If the contact is removed those appointments are not. This article Find Outlook AppointmentItem ...
0
votes
2
answers
204
views
C# WinForms timer is stuck/hangs while creating my Office.Interop.PowerPoint
Creating PowerPoint presentations in C# Visual Studio, I realized that my WinForm timer hangs; I can't even move my Application around the screen. Is there a way to create my PowerPoint in the ...
0
votes
2
answers
53
views
Property not supported exception
I am trying to get the AppointmentRecur property (PT_BINARY) of an Outlook 2007 appointment using this DASL: http://schemas.microsoft.com/mapi/id/{00062002-0000-0000-C000-000000000046}/82160102 with ...
0
votes
1
answer
59
views
Monitoring all sent items folders in add in
So I have an add in that monitors the sent items folder and uploads emails to an azure storage when a new item hits it, if it meets certain criteria.
my issue is that it only works on the default ...
0
votes
0
answers
57
views
Check whether two Word tables are under the same heading
I am using Microsoft Office Interop Word in C# to edit word files. Is there a way to check the tables are under same heading?
My End goal is to delete an empty table from Word Document. That is - if ...