LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Load data from word in same shape of format

Solved!
Go to solution

Hi all 

I want to load data from Microsoft word into labview 

but keep same format and template , 

attach word template file 

how I can do that in labview 

 

thanks

wisam  

 

0 Kudos
Message 1 of 12
(2,703 Views)

That's not clear to me at all.

 


@Elyan_wisam wrote:

I want to load data from Microsoft word


Data? What data? The text, the table the images, all, any?

 


@Elyan_wisam wrote:

 into labview 


During run time? Or while editing? What should it be in LabVIEW? A Word ActiveX container? Or an image? What do you want to do with it?

 


@Elyan_wisam wrote:

 

but keep same format and template ,  


What do you expect? That LabVIEW uses Word as a template? Or that you can edit the Word "template" in LabVIEW?

 


@Elyan_wisam wrote:

 

attach word template file 


That's really a Word document. Guess it's being used as a template somehow?

 


@Elyan_wisam wrote:

 

how I can do that in labview  


That depends on what it is you want exactly. Please explain.

0 Kudos
Message 2 of 12
(2,680 Views)

Hi 

what I want to do take all what in word document and present it in labview 

by keep same  image , data and tables 

 

 

 

0 Kudos
Message 3 of 12
(2,673 Views)

Not sure why you'd want to open a Word doc in Labview ?

However if it is simply to display a page or two of information then you could capture the doc pages as jpgs and display those fairly simply within Labview.

0 Kudos
Message 4 of 12
(2,665 Views)

@Elyan_wisam wrote:

Hi 

what I want to do take all what in word document and present it in labview 

by keep same  image , data and tables 


So make a screen shot with snipping tool, and paste the image on your FP. it will look exactly the same.

0 Kudos
Message 5 of 12
(2,653 Views)
Solution
Accepted by topic author Elyan_wisam

There exits a .NET Rich Text Control

NET_control.PNG

If you spawn one on the Frontpanel, you can copy&paste the word documents content via  strg+a, strg+c and strg+v

I suppose, this can be done programmatically, if the word document was saved as a .rtf

 

most of the formatting will be preserved:

NET_richtext.PNG

Regards,
Alex

 

 

 


@NeilR

 

 

0 Kudos
Message 6 of 12
(2,646 Views)
Solution
Accepted by topic author Elyan_wisam

@alexderjuengere wrote: suppose, this can be done programmatically, if the word document was saved as a .rtf

rtf_programmatically.png

0 Kudos
Message 7 of 12
(2,643 Views)

Thanks you very much 

0 Kudos
Message 8 of 12
(2,611 Views)

Hi 

Is there a way not  to clear the RichTextBox  when press on stop button 

since now when I press on stop button  the vi stop and the  RichTextBox cleared 

 

Thanks 

Wisam 

 

0 Kudos
Message 9 of 12
(2,590 Views)

And that's just one reason why the .NET "solution" is usually not really a solution. It's a quick fix, that usually causes more problems that it solves. But feel free to experiment.

 

As soon as the VI stops, the .net object is disposed. Nothing you can do about that. You can 1) not stop your VI (use it in a larger architecture) or 2) accept that it's disposed.

0 Kudos
Message 10 of 12
(2,574 Views)