office-automation Questions

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

4

Solved

I am looking to run a macro, let's call it Macro01 from WorkSheet01 on WorkSheet02. Using Microsoft.Office.Interop.Excel Namespace I have opened a WorkSheet01. public void Main_CodedStep() { //...
Dewhurst asked 9/1, 2013 at 23:54

1

Solved

PowerPoint has a feature to compare 2 PowerPoint files in the UI. It's in the Review ribbon and then Compare. I'd like to configure git to be able to compare & merge 2 PowerPoint files from the...
Adhamh asked 1/2, 2022 at 18:33

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

5

Solved

I need to automate the creation of a presentation (either OpenOffice or Powerpoint). The presentation should take the first two slides of each of the presentations in a given directory, and then co...

4

Solved

I could see a lot of very similar threads all around, but nothing seem to give me a solution which ought to be very basic. From my winforms application, I need to close a running instance of a wor...
Gesticulate asked 16/9, 2011 at 13:58

3

Solved

I wrote a Delphi program that extracts and consolidates data from several different spreadsheets of a single .XLS file, to a text file for later processing. It is a Delphi 7 console program. An ex...
Westbrooks asked 6/9, 2012 at 16:27

4

I am writing a program that uses a .dotx template and does a merge of data in an aspx page. The program works perfect on my Dev workstation locally but when I deploy it to a test IIS server, it fai...
Halfway asked 25/2, 2011 at 16:52

1

I've a perfectly working function to find and replace a variable with text in word documents. HRESULT CMSWord::FindReplace( CString szVar, CString szText, bool bOnlyOnce/*=false*/ ) { if(m_pWApp...
Icbm asked 20/12, 2012 at 14:53

5

Solved

I’m well aware of the Microsoft support base article stating that it’s not supported to automate office products UI less. It seems that Windows Server 2008 x64 and Excel 2007 enforce the given stat...
Dilks asked 14/5, 2009 at 15:4

8

We have a database application that stores data that we want to report in Microsoft Word. Suppose all information of my customers is stored on a database system and I am now requested to cre...
Granulose asked 18/1, 2013 at 6:52

0

I want to spell/grammar check the content of a TDBRichEdit component using Word automation (early binding) while preserving the RTF-formatting of the source during the process. The obvious way of d...
Manoff asked 8/7, 2013 at 15:50

2

Solved

I am currently trying to change some settings in a .pptx files via C# and Microsoft.Office.Interop.PowerPoint. I have some .wmv movies linked on several slides of the presentation. At the time the ...
Crossbar asked 13/12, 2010 at 12:39

1

We're in the process of moving a slew of our applications from Windows XP to Windows 7 and have run into an old problem with Word Automation. We had an issue in one of our applications where we wo...
Pontone asked 28/6, 2012 at 16:38

2

Solved

Folks, I have the exact same issue that's presented here, except that I'm trying automate Excel using a non-system (user) account. The solution of creating a desktop folder doesn't work, because t...
Attendance asked 7/3, 2011 at 23:15

2

I am trying to automate multiple parallel instances of Office InfoPath 2010 via a windows service. I understand automating Office from a service is not supported however it is a requirement of my ...

1

I am writing a web service and would like to change the .docx or .doc to .xps. I'm using office com to help me to save as .xps format as following: [WebMethod] public string GetDocPreviewUrl(str...
Rostand asked 12/9, 2011 at 2:11

1

I have a commandbar model which automates PowerPoint. I recently faced a strange problem that when PowerPoint is opened through my application, and the data is being loaded through my application t...
Hyperpyrexia asked 4/3, 2010 at 12:50

1

Solved

I'd like to copy (or move) a worksheet from one workbook to another workbook with Powershell. I had done this before and cant remember how. I think I used CopyTo() function. Just to get started. ...
Brunhilde asked 12/7, 2010 at 5:37

3

Solved

Is there a way to check to see if an Microsoft Office process (i.e. Word, Excel) has hung when using Office Automation? Additionally, if the process is hung, is there a way to terminate it?
Joanjoana asked 13/8, 2008 at 14:42
1

© 2022 - 2024 — McMap. All rights reserved.