473,472 Members | 1,831 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

.doc to .txt conversion. Need a different way of doing it without

A 4 line solution I found using VB.NET BUT needing Word application as a part
of the codes is:

'reportPath and writePath are strings to the name of origin files and
destination files respectively
Imports Microsoft.Office.Interop

Dim WordApp As Word.Application = New Word.Application
Dim WordDoc As Word.Document =
WordApp.Documents.Open(fileName:=reportPath, readonly:=True)
WordDoc.SaveAs(writePath, Word.WdSaveFormat.wdFormatDOSText)
WordApp.Quit()

Problem is, I wanted to try to do the saveas/conversion without having Word
installed on computer.
Anyway around this? like using wordpad to do the same thing? but as far as I
know .Net doesn't have support such as that

Nov 21 '05 #1
1 1004
Hi,

You'll need a 3rd party tool like this one:

http://www.softinterface.com/WCE/WCE.htm

There are other 3rd party tools out there. Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"try2nd" <tr****@discussions.microsoft.com> wrote in message
news:B6**********************************@microsof t.com...
A 4 line solution I found using VB.NET BUT needing Word application as a part of the codes is:

'reportPath and writePath are strings to the name of origin files and
destination files respectively
Imports Microsoft.Office.Interop

Dim WordApp As Word.Application = New Word.Application
Dim WordDoc As Word.Document =
WordApp.Documents.Open(fileName:=reportPath, readonly:=True)
WordDoc.SaveAs(writePath, Word.WdSaveFormat.wdFormatDOSText)
WordApp.Quit()

Problem is, I wanted to try to do the saveas/conversion without having Word installed on computer.
Anyway around this? like using wordpad to do the same thing? but as far as I know .Net doesn't have support such as that

Nov 21 '05 #2

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

Similar topics

22
by: kalio80 | last post by:
Hi everyone I am trying to create a file that converts text files from unix to windows and windows to unix I understand the general concept of it as unix uses line feed LF Windows uses CRLF...
1
by: Jimmy Seow | last post by:
Dear All, Hope somebody can help me with this. I have created a class and have got it to serialize and deserialize using XmlSerialization without any problems. I've also read the documentation...
16
by: John | last post by:
Hi I am converting my access front-end/backend mdb app to adp. Are there any pitfalls I should be aware of? Thanks Regards
31
by: Bjørn Augestad | last post by:
Below is a program which converts a double to an integer in two different ways, giving me two different values for the int. The basic expression is 1.0 / (1.0 * 365.0) which should be 365, but one...
15
by: Peter Afonin | last post by:
Hello, I'm struggling with the string conversion to MD5 which I've never user before. I have a string that I need to encode which looks approximately like this: ...
11
by: santosh | last post by:
Hello all, Conversion macros along the name of INT8_C, INT16_C etc, are defined in stdint.h to convert their argument into suitable representations for their corresponding types, i.e. int8_t,...
8
by: d major | last post by:
I was very puzzled about the conversion between float and long, I cann't understand why a long val can convert to a float, as the below codes show: typedef unsigned long u_long; float val =...
43
by: John | last post by:
Hi This .net is driving me crazy!! In VB6 I had a type which contained a couple of multi-dimentional arrays which i used to create and read records: Type AAA : Array1(10,10,2) as Integer
4
by: dondigitech | last post by:
I want to convert hex to binary without losing bits. I want to preserve the 8-bits because I ultimately need a 24-bit string to grab information from. I am just using this line of code for the...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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,...
1
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.