Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Making a document that can be opened in MS-Word
Message
From
20/07/2007 08:26:44
 
 
To
19/07/2007 14:12:25
Dave Nantais
Light speed database solutions
Ontario, Canada
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
Database:
MS SQL Server
Miscellaneous
Thread ID:
01242093
Message ID:
01242284
Views:
9
>How can I build a document that can by opened in MS-Word 2003 or greater
>(say XML.. or a word .doc file)
>using VS2005 .NET 2.0 framework and C#?
>
>I need to send an email after someone fills out a form on the web.
>This email must have a document that is openable in MS Word.

If you wish to avoid creating the Word ML structure, you can create an empty document in Word with a flag such as ThisIsTheTextToReplace. Then, you can save that document as Word ML. This will then be a XML file. Thus, from your application, you can then simply open that file and replace the ThisIsTheTextToReplace with the desired text. This will keep the document as a Word ML document and will be openable from Word as a Word file.

But, Word can also open a TXT file. You can as well simply just create a TXT file.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform