Sarah83 Posted May 13, 2005 Report Share Posted May 13, 2005 Hi! I searched for a print function for my table. It seems as there is only something for reports or for the frontpanel etc. There is a vi named print reoprt, but here I will need a refnum. And how could I get this out of a table? I like to print the whole table... Quote Link to comment
Barrie Posted May 13, 2005 Report Share Posted May 13, 2005 Hi!I searched for a print function for my table. It seems as there is only something for reports or for the frontpanel etc. There is a vi named print reoprt, but here I will need a refnum. And how could I get this out of a table? I like to print the whole table... 4738[/snapback] Hi Sarah: The refnum you refer to is probably the report refnum, created when you make a new report. For simplicity, you could use the "Easy Print VI Panel or Documentation" and just print the front panel and, presumably, your table. Otherwise, it gets a bit more complicated. It would go something like this: Create report Append table to report Print report A good starting point would be to use "Easy Text Report" and substitute "Append Text" with "Append Table" because the actual print function is not exposed on the palette and you have to dig for it. Note that when you append a table to a report, you have to pull the row and column headers using the property node and wire them to the Append VI. Cheers! Barrie Quote Link to comment
Sarah83 Posted May 17, 2005 Author Report Share Posted May 17, 2005 Hi Sarah:The refnum you refer to is probably the report refnum, created when you make a new report. For simplicity, you could use the "Easy Print VI Panel or Documentation" and just print the front panel and, presumably, your table. Otherwise, it gets a bit more complicated. It would go something like this: Create report Append table to report Print report A good starting point would be to use "Easy Text Report" and substitute "Append Text" with "Append Table" because the actual print function is not exposed on the palette and you have to dig for it. Note that when you append a table to a report, you have to pull the row and column headers using the property node and wire them to the Append VI. Cheers! Barrie 4741[/snapback] Hi Barrie, I tried out to write the table into a report and after this to print the report. I don't want to have the fron panel, I only need the content of the table. Now I remembered, I don't have network access here and I can't test my vi if it will be printable. :headbang: So I append the table to the reoprt and save the values to a file. After this I dispose the report. If I open my file, I couldn't see some values out of the table. The content of the files is: </head> 00 <body>0</body>0</html> Whats this?! Quote Link to comment
Barrie Posted May 17, 2005 Report Share Posted May 17, 2005 Hi Barrie,I tried out to write the table into a report and after this to print the report. I don't want to have the fron panel, I only need the content of the table. Now I remembered, I don't have network access here and I can't test my vi if it will be printable. :headbang: So I append the table to the reoprt and save the values to a file. After this I dispose the report. If I open my file, I couldn't see some values out of the table. The content of the files is: </head> 00 <body>0</body>0</html> Whats this?! 4771[/snapback] Hi Sarah: I substituted "append text" with "append table" in "Easy Text Report" and wired the table data to the front panel & connector. Note that "append table" is polymorphic (text or numeric). "Print/Save" and "Report Type" can be a bit confusing. "Standard Report" always prints. HTML always saves. Your saved file is HTML, but it should have a lot more to it. Are you sure you have everything wired right? To view it formatted, just open it with your browser. (Firefox right??!!! :-) ) I've attached my test VI. When I start to play with a new feature, I always start with either a high level VI or an example. That lets me concentrate on the feature with all of the surrounding code already written. Often the exisitng code needs very little modification to become part of my code. Cheers, Barrie Download File:post-658-1116355254.vi Quote Link to comment
Sarah83 Posted May 18, 2005 Author Report Share Posted May 18, 2005 Hi Sarah:I substituted "append text" with "append table" in "Easy Text Report" and wired the table data to the front panel & connector. Note that "append table" is polymorphic (text or numeric). "Print/Save" and "Report Type" can be a bit confusing. "Standard Report" always prints. HTML always saves. Your saved file is HTML, but it should have a lot more to it. Are you sure you have everything wired right? To view it formatted, just open it with your browser. (Firefox right??!!! :-) ) I've attached my test VI. When I start to play with a new feature, I always start with either a high level VI or an example. That lets me concentrate on the feature with all of the surrounding code already written. Often the exisitng code needs very little modification to become part of my code. Cheers, Barrie 4780[/snapback] Hi Barrie, thanks Now I have changed standard to HTML report and I could see my table in the IE (on this pc I don't have Firefox not even network:( ) Oh, in your example there are some practical vis e.g. set report font.... I wondered why I haven't seen this :headbang: Maybe working everyday from 7 o'clock in the morning to 17.30/18.00 o'clock in the evening isn't good for me... Now I will figure this out .... Edit: I would like to change the color with "set report font" but whatever I set (color) the text will be black As well if I change the color in your example... Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.