LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

code to convert .doc to .txt

Hi,

       I want to convert  a .doc file to text (.txt file) format and back to .doc file.can anyone give me the code for the same.

 

i.e., if you have a .doc file and you want to covert it to .txt file and back to .doc .

 

           seeking help from all.

 

 

Thanks,

vamsi    

0 Kudos
Message 1 of 8
(3,223 Views)

A .doc file means that you need to use the MS Word VIs which are available only with the Report GEneration toolkit.

 

Or, you should use ActiveX to read your .doc file.

- Partha ( CLD until Oct 2024 🙂 )
0 Kudos
Message 2 of 8
(3,213 Views)

Hi

       I want the labview code to convert .doc to .taxt and back to .doc file. I think you got it now what I am asking for?

 

Thanks,

vamsi

0 Kudos
Message 3 of 8
(3,200 Views)

Hi Vamsi,

 

This is a doubt-clearing forum, NOT a code-getting forum.

 

You first try to search the LabVIEW Example Finder on how to read a .doc file.

 

Also, read about using ActiveX in LabVIEW. Excel & Word files can be read & write only thro' 2 methods I had already mentioed, either you should have RG toolkit installed along with your LabVIEW or you should use ActiveX.

- Partha ( CLD until Oct 2024 🙂 )
0 Kudos
Message 4 of 8
(3,196 Views)

How's this?  Word doc in --> Word doc out! Smiley Very Happy

 

Message Edited by jcarmody on 02-10-2009 05:52 AM
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

Message 5 of 8
(3,181 Views)

Hi Vamsi,

 

See the attached VI on using ActiveX to open the MS Word Application in LabVIEW & read a .doc file.

 

Once we read its text, then it is child's play to convert it to .txt file.

- Partha ( CLD until Oct 2024 🙂 )
0 Kudos
Message 6 of 8
(3,175 Views)

Vamsi,

 

I have not taken enough care to look & close all the references concerned. You need to do that to eliminate some bizzare things that may happen out of these when integrated in a bigger application as a subroutine.

- Partha ( CLD until Oct 2024 🙂 )
0 Kudos
Message 7 of 8
(3,169 Views)

SAME QUESTION asked here and here.

 

Stop asking the same question multiple times. You're just aggravating people. 

Message 8 of 8
(3,138 Views)