LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Submit LabView Cluster to Word macro

Hello,
I want to run a word macro (Test100) from LabView and therefor its neccesary to submit the following argument (NewTable) to word:

Type BookType
    KeyIn As String
    ValueIn As String
End Type
Type PSEXTable
    TKey As String
    TValue(0 To 100, 0 to 100) As String
    TColumnWidth (0 to 100) As Single
End Type
Private NewTable(0 To 50) As PSEXTable

Sub Test100(NewTable)
'Execute Macro with NewTable-Cluster
End Sub

I have tried to combine the values in LabView to a cluster-array, changed the single items or the complete cluster to variant, but Word was not able to read the values
Has anybody an idea how it will work?

Thanks an best regards, Helmut


0 Kudos
Message 1 of 3
(2,684 Views)

I'm not sure that this is the best way to solve this problem, but try to create this table not in MS Word, but in MS Excel, then insert this table to word.

Workin' on tranlating data from LabVIEW to MS Application I've had the same problem, but it would be my way to solve it.

LabVIEW 7.1
0 Kudos
Message 2 of 3
(2,653 Views)
Thanks for your answer,

but unfortunately I had to solve the problem in word.

I have written a very big business-application in LabView (dont ask me why..) which controlls the complete workflow of a (also very big) company.
I have included a tool which allows to write Word-Documents with special keywords, and LabView (together with Word) is able to replace or refreshe this keys with the values (or complete tables with pictures) of some different databases.
Currently I have solved it with more-dimensional arrays, but it`s not perfect because of the memory usage.

Has anybody else an idea what to do?

Best regards, Helmut

0 Kudos
Message 3 of 3
(2,640 Views)