LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I print a part of the front panel?

I am interested in printing a part of my front panel as one page instead of printing the entire front panel. Does anyone know if this is possible? Thanks!
0 Kudos
Message 1 of 11
(5,089 Views)
If you have a tab control for instance and you would like to print just the items on the tab and the tab you can create a reference for the tab control and use the invoke node to "get image". Under the graphics and sound>>format graphics there is a flatten to pixmap function. This will allow you to send it to a picture control in a subvi and set the subvi to print when called. Hope this helps.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
Message 2 of 11
(5,089 Views)
I am not sure if I understand what you want to do.. You have a front panel and when you use the "FILE -> PRINT" selection, it prints the whole Front Panel (obviously).

But you want only a portion of it. Is it to show someone else, or for you to markup, etc...?

What you might do is take a print-screen by reducing the LabView Front Panel to cover only what you want printed. This is done by pressing "Alt+PrintScreen" on the keyboard at the same time. You must select your Front Panel in LabView as your active screen when you press the buttons.

You can then paste the screen capture into a document, such as Word, MS-Paint or any other. From that, use the print selection. You'll have a printout of only the portion you wanted.

-JLV-
Message 3 of 11
(5,089 Views)
I'm trying to hide parts of the front panel and print the other parts that are important. My front panel is a test report. I want to know how to define the portion of the panel that will be printed out.
0 Kudos
Message 4 of 11
(5,089 Views)
You may want to include a button which is called "Print Report". By clicking it, it will send the report only to the printer. You can even format the text or get fancy by using html..

Look into the examples section under labview. There are examples on reports. Especially in LV7.

-JLV-
Message 5 of 11
(5,089 Views)
You can use the Append Control Image to Report to do a printout with just the controls that you want. Also, you could just create a subVI with just the controls and indicators that you want. Pass all the data to the subVI and in the VI Properties>Print Options, you would check Automatically Print Front Panel Every Time VI Completes Execution.
0 Kudos
Message 6 of 11
(5,089 Views)
Put the controls you want printed on a sub-vi, populate with the data
from the main vi and print the sub-vi.

Nes wrote:
> I am interested in printing a part of my front panel as one page
> instead of printing the entire front panel. Does anyone know if this
> is possible? Thanks!
0 Kudos
Message 7 of 11
(5,089 Views)
Like the man said...

🐵
Message 8 of 11
(5,089 Views)
Hi Nes,

This is the second time you are posting a variation on this question.

I was about to so NO YOU CAN'T...

but then I thought...

It is possible to print just parts of a front panel but it is a lot easier to do the things others have suggested.

If you really want to print just a part of the FP you will have to do a lot of coding and the GUI will do some strange things in the process.

I will outline the process and leave the code as an exercise for the reader.

Using property nodes determine where on the FP the objects of interest are located.
Again using property nodes, move the objects around on the FP so that they are grouped together and sized such they fit on a printed page.
Using property nodes adjust the screen size origin etc so only
the objects of interest are now visable.
Using.....nodes print only the visable part of the screen.
Using....nodes put everything back where is was when you started!

Like I said, this is not easy.

The simplest solution was suggested by BJD who said group the objects of interest on a tab page, use an invoke node to get the image and then display it on the FP of a sub-VI set to print on completion. That method will let you quickly add new interesting objects to the print out without having to change the sub-VI.

Trying to help,

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 9 of 11
(5,089 Views)
You mentioned: "Using property nodes determine where on the FP the objects of interest are located.
Again using property nodes, move the objects around on the FP so that they are grouped together and sized such they fit on a printed page.
Using property nodes adjust the screen size origin etc so only the objects of interest are now visable.
Using.....nodes print only the visable part of the screen.
Using....nodes put everything back where is was when you started!"

I haven't really used property nodes with front panels. How do I determine where the object is and move it to where I want it? Thanks for your help!
0 Kudos
Message 10 of 11
(5,089 Views)