LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can I add a word document to another word document. I wrote an VB makro, but labview didnot find the document I want to add.

Try to keep the full description of the problem within the body of the message, rather than the title. Lots of space in the body. Don't be afraid to talk. Smiley Wink

 

It's not clear whether your question has to do with LabVIEW or with MS Word, or with VBA, or with the Word object model. Why don't you go ahead and post your VI and your macro. You will need to zip up the macro since I don't believe the forum software allows scripts to be directly posted. 

0 Kudos
Message 2 of 5
(3,390 Views)

Thanks for your reply,

 

I try to poste my Vi and the VB:

 

 

Documents.Open FileName:="C:\AS-K.doc", ConfirmConversions:=False, ReadOnly:= _

False, AddToRecentFiles:=False, PasswordDocument:="", PasswordTemplate:= _

"", Revert:=False, WritePasswordDocument:="", WritePasswordTemplate:="", _

 

Format:=wdOpenFormatAuto

Selection.WholeStory

Selection.Copy

Windows(1).Activate

Selection.MoveDown Unit:=wdScreen, Count:=28

Selection.Paste

Sorry I cannot copy my vi into this sheet. You see I am just a beginner.

 

I use the report generation toolkit. I open a new report with a template, run the described macro and save the new report. My problem is that

I get the report that I want to add twice and it is not added to the template.

In the second step I want to add not a fix dokument, but a dokument I can choose in labview.

 

I hope this describes my problem clearer.

 

The general problem I have to solve is:

 

We have different templates and different autotexts (tables, headers and text) which we have to summarize in very different ways.

The report generation report toolkit only adds images or text or tables. And it is too much work to define each possibility of combination.

Therefore I want to combine the templates with different worddokuments but it is necessary to have a possibility to choose the name of the worddokument in labview not as in the moment as a fixed name in theVB.

 

It would be nice to hear from you

 

 



 

0 Kudos
Message 3 of 5
(3,382 Views)
To post your VI, look for a link "Add Attachments" below the editor windows.  Click that and browse to the VI file you want to add.
0 Kudos
Message 4 of 5
(3,378 Views)