From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

MS Office Report Toolkit Formatting Column Header data as a Row in Excel

Solved!
Go to solution

....sorry for the duplicate post.....I'm having issues this morning.

 

I know I'm going to feel silly when I get the answer for this one.  But I'm not getting anywhere on my own now.

 

I'm using the MS Office Report Toolkit to create an Excel report from a table in a LabVIEW application.  

 

I spent some time figuring out how to create Named Ranges in the Excel Template I created.  That seems to be working, because I can see the inputs to the icon on the LabVIEW block diagram.  

 

The problem I'm having is with the Table's Column Headers.  

 

I created a Named Range that is an entire row of my Excel Template.  When I use the property node to send the Column Header values to the template, the data appears as a column in the spreadsheet.  So far, I haven't been able to figure out how to enter this data as a row instead of a column.  

 

Is there a way? 

 

ms office report code.jpg ms office report output.jpg

---------------------
Patrick Allen: FunctionalityUnlimited.ca
0 Kudos
Message 1 of 3
(3,030 Views)
Solution
Accepted by topic author pallen

Looks like I found my own answer. 

 

Seems that all I need to do was convert my Header data into a 2D array. 

 

ms office report code works.jpg ms office report output works.jpg

 

 

Don't know why that one was so tricky to figure out.  But it's working now.   

---------------------
Patrick Allen: FunctionalityUnlimited.ca
0 Kudos
Message 2 of 3
(3,028 Views)

Great!

Usually you create a Row input, it will get in Row.

You create as column input, it will fit in column. 

0 Kudos
Message 3 of 3
(1,481 Views)