473,834 Members | 2,319 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Office - manipulate Word document in C#

I would like to manipulate a Word document in my C# application (Visual C#
2005):

1) Put a button on my C# Form
2) When the button is pressed, my application will open a named Word
document, eg. mySalary.doc
3) Only enble the Save option in MS Word
4) When the user press the 'Save' in MS Word, it will save the document as
other name, eg. mySalary01.doc

Is it possible to do this ?


Sep 25 '06 #1
0 1243

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2439
by: Steve Drake | last post by:
All, I am trying to open a word document and get all the properties using .NET (c#), if I create the wordapp, call the correct methods I get invalid cast (see code examples), but if I create a WORD PROJECT (from C#) and use the Application (thisApplication) the word project creates, it works fine, but this is far from a acceptable work around as doing it this way means I have to trigger the code from word. This does not work (Watch...
3
1425
by: trint | last post by:
I can't find a good example for this: 1. Can someone help me find a good example for writing to a Word document and displaying it? 2. I was told and read that a WebForm can't do this because that would be like the server executing Word on the local computer to have the Web App to manipulate and display a Word document. If this is not impossible, can someone point me toward an example or a helpful description?
7
1524
by: scorpion53061 | last post by:
Has anyone done automation with Office 2003 with vb.net? How did it go(esp Word, Excel, Access)? Any problems I should be aware of? I am getting my copy next week so I thought I should do some checking........
0
1362
by: Karel | last post by:
Hi, I have developed a vb.net application to create a mail-merged document by using Automation to word from VB.NET. I added the following reference to the application: Microsoft Office 10.0 Object Library In runtime, when I click that button, I open a word doc. I create a commandbar whith in that commandbar a combobox with a list of fields
2
11488
by: William LaMartin | last post by:
I have created a program that allows for the automation of things in Word documents, like changing the values of DocVariables and the links to Excel Sheets. I did it using interoperoperatability, where, after adding a reference to Microsoft.Office.Core and a reference to Microsoft Word I declare objects as follows: Dim oWordApp As New Microsoft.Office.Interop.Word.Application, . Everything works fine on the development computer...
1
5512
by: BK | last post by:
I have a .NET Solution (currently in 2003, FW 1.1) that uses Office automation for a few things (generates a Word document, dumps datagrids to Excel, etc.). One of my programmers works on the project from time to time. We always have problems when he loads up the latest version of the Solution however, and it appears to be a compatibility issue with difference in Office versions. My development platform is Xp Professional running...
3
1316
by: Alan T | last post by:
I would like to start a MS Word program to open a specified document, that's fine by calling Process.Start(). However, I would like to offer the user only Save option to save the document, ie no "Save As". Any idea?
2
2550
yayh
by: yayh | last post by:
Dear all i tried this fine artical which guide you to write php code to create ms office file using COM. http://web.informbank.com/articles/technology/php-office-documents.htm the problem that all the examples in this guide worked fine except the ms word example i am getting the following error: this is the output:
3
2202
by: =?Utf-8?B?VGVycnkgSG9sbGFuZA==?= | last post by:
Not sure if this is the most appropriate group - feel free to redirect me. If I have a web application that needs to programatically create and manipulate office documents (word & excel), what options do I have other than installing MS Office on the web server? Can I just install an Office SDK or a version of Office that has no user interface? tia
0
9643
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10786
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10544
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9326
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7754
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6951
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5790
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4425
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3079
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.