10-07-2008 10:07 AM
10-07-2008 01:16 PM
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. ![]()
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.
10-07-2008 02:20 PM
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
10-07-2008 03:10 PM
10-08-2008 12:02 AM