Questions tagged [office-interop]

Office Interop is the layer using the COM Interop that allows .NET or C# to communicate with standard COM objects and libraries.

Office Interop is the layer using the COM Interop that allows .NET or C# to communicate with standard COM objects and libraries.

3602 questions
1
vote
1 answer

Outlook - Interop asking if I want to approve a certificate

I'm using interop to get me a list of all local outlook contacts (code below). It all works fine except for one case: When I don't have outlook open during the time Iam using that code I get a messagebox which disappears after about 2 seconds again.…
Thomas
  • 2,886
  • 3
  • 34
  • 78
1
vote
2 answers

Powerpoint file can be deleted without consequence

I am working on a license management type application that copies a password protected zip file to the applications root. The user clicks a button "Open Presentation" and the zipped file is extracted into the root folder and then I use the Office…
John Maloney
  • 1,106
  • 3
  • 15
  • 26
1
vote
1 answer

Remove row from chart range using office interop

I am inserting a chart into a word document using the c# office interop. I am inserting the chart into the document then accessing the ActiveSheet from the charts associated workbook to change the values of the cells in order to display the data I…
1
vote
0 answers

Invoking a parameterless constructor of an interface

The other day I got a task to export some data into excel and the first thing that I looked at was Microsoft.Office.Interop.Excel library, I don't know that may not be the best way to do that but anyway, what got me in a twist was the fact that I…
Dimitri
  • 2,798
  • 7
  • 39
  • 59
1
vote
1 answer

Custom Drop Down Menu in a Custom Word Content Control

I'm able to create a DropDown ContentControl in word such that a user can select an item from the drop down and that item becomes the text displayed in the ContentControl. However I've noticed that when you create a citation that drop down list…
Eva Lacy
  • 1,257
  • 10
  • 24
1
vote
1 answer

What method would be the current equivalent of Open now that in Office 2013 Interop.Word, there is no ThisDocument.Open() method?

I am developing a Word 2013 Document add-in project in VS 2013 and want a method to be called when the document opens. Through Word 2010, there was a ThisDocument.Open() event, but it seems this has now been replaced with Background: I am…
Thronk
  • 624
  • 14
  • 37
1
vote
1 answer

How to get charts from Excel and add them to Word using Microsoft.Office.Interop?

I tried to export charts as images with Microsoft.Office.Interop.Excel.Chart.Export() method, but the quality of the images is bad (best result is with the PNG format). Is there any way how to set the resolution of images during export using only…
uetoyo
  • 329
  • 1
  • 3
  • 11
1
vote
2 answers

how to split a *.pptx file into multiple slide in visual studio 2013 by the help of C#?

I am able to split a file when the extension is ".ppt" by using the Microsoft.office.interop.powerpoint.presentation.slide export method but for the pptx files it is not working. Any help?
1
vote
0 answers

Programmatically Compare Microsoft Office Files

I am looking for the easiest way to see if two Office files have the same content using Python. My first instinct is to use filecmp.cmp, but this approach logically fails, since two files do not necessarily contain the same binary information even…
user3846506
  • 196
  • 1
  • 1
  • 11
1
vote
0 answers

Strong name assembly required only since .NET 4.0

I have an old application originally build against .NET 2.0 that used Office 97 Interop and it worked. When it was upgraded to .NET 4.0 the application crashed when it tried to load the Excel Interop with error: System.IO.FileLoadException: Could…
Łukasz Nojek
  • 1,511
  • 11
  • 17
1
vote
1 answer

how could i know that the user clicked File->Save in word document using .NET?

How could I know that the user clicked File Save in word document using .NET? If user make any action in word document then i can know what this event in my program that made using c#.
precious
  • 11
  • 1
1
vote
2 answers

Blurry image when converting DOC to PNG

Ok I have a problem that just baffles me yet again. I have some code that turns a DOC file to a PNG file. When I do it on a localhost, the image is fine. When I take the same code and put it on live server, the image is extremely small (same size…
Lukas
  • 2,885
  • 2
  • 29
  • 31
1
vote
1 answer

Word interop - hiding styles

I'm creating a new Style using Word interop (in Word 2013). It works fine, but I'd like to hide the style from the user. Basically, I'm trying to do the same thing you can do manually when you go to the Styles dialog -> Manage Styles -> Recommended…
vesan
  • 3,289
  • 22
  • 35
1
vote
1 answer

Getting outlook contacts out of a contact group

I'm currently writing an application where I'm trying to get all outlook contacts of the user that is running the program. I've got a code that works very fine for "normal" contacts, but I've got a problem when I'm running into contact groups. Is…
Thomas
  • 2,886
  • 3
  • 34
  • 78
1
vote
1 answer

How to read the hyper-link of an image in power Point using c#

I have inserted an image to powerpoint using c# and have inserted a hyperlink to the picture and its working perfectly.But now i need to read the hyperlink of that picture which i have inserted using c#. Whereas am inserting a text with hyperlink…
Dah Sra
  • 4,107
  • 3
  • 30
  • 69
1 2 3
99
100