キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

Print two objects without Report Gen Toolkit

解決済み
解決策を見る

Okay, I do not have the RGTK and I only need to print two items.  A serial number text box with multiple entries and a chart.  Is there a was to do this?  I have been unable to find any examples that don't use a special tool...

 

Thanks!

0 件の賞賛
メッセージ1/8
4,000件の閲覧回数

Have you tried exlploring the built in examples that ships with LabVIEW? If not try it out sometime where you can see some beautiful example... However here is one which uses activex to do your task on MS excel.

 

C:\Program Files\National Instruments\LabVIEW 2009\examples\comm\ExcelExamples.llb\Excel Macro Example.vi

 

 

 

 C:\Program Files\National Instruments\LabVIEW 2009\examples\comm\ExcelExamples.llb\Write Table To XL.vi

 

 

I guess you want to print them in MS word or excel...

Regards
Guru (CLA)
0 件の賞賛
メッセージ2/8
3,985件の閲覧回数
I'm looking at the examples but it's not quite what I'm needing.  Turns out there are plenty of options in the Print command to print the front panel... Is there a way to programmatically run this print command?
0 件の賞賛
メッセージ3/8
3,978件の閲覧回数
There are VI methods for printing. And, long before properties and methods existed, you just passed the values to a subVI that was set to automatically print when completed (VI Properties>Print Options). I still use this one, by the way.
0 件の賞賛
メッセージ4/8
3,972件の閲覧回数
解決策
トピック作成者sterryが受理
This should work. You need to give it an address for the VI that you want to print.
Tim
GHSP
メッセージ5/8
3,970件の閲覧回数

Thanks.  The print vi you sent looks like it would work alright.  I'm trying to load it while inside my program and I do only want it to print the visible items.  So attached is the code I came up with.  I'm only a novice user so any idea why I might be getting this error?

 

Open VI Reference in Print Panel.vi->Hydrostatic Test.vi
To load a VI into memory with the Open VI Reference function, a path must be wired for the VI Path input.

VI Name: L:\Hydrostatic Test.vi

0 件の賞賛
メッセージ6/8
3,963件の閲覧回数

My bad, the error is :

 

Error 1004 occurred at Open VI Reference in Print Panel.vi->Hydrostatic Test.vi

 

0 件の賞賛
メッセージ7/8
3,950件の閲覧回数
Your vi worked perfectly 🙂  I just forgot that since it was loading as a string and not a path that it was just the filename, not the full path.  Arigato!
0 件の賞賛
メッセージ8/8
3,942件の閲覧回数