LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

PrintPanel to a file

When you use the PrintPanel command (or the printCtrl) and DO NOT specify a file name,
you get a print out of the Panel as it looked on your screen.  However, when you use the PrintPanel command
(or the printCtrl) and specify a file name, what good is that file?
In other words, I create the file and it is on my disk, but what can I do with it?
Is there an apllication that i can open it with and see the Panel that I printed?
Or can I send that file to a printer and it prints the panel?
I opened it in wordpad and it is gibberish (printer commands?).
I tried once to send it to a printer (I think) and it just printed the gibberish.
Unfortunately, the computer I am running/developing on is not hooked to a printer
right now so I can't re-test that thought process.
0 Kudos
Message 1 of 3
(3,167 Views)

The file is most useful, when you are running on a computer that is not connected to a printer - which is your situation, I believe. It allows you to put the file on a floppy disk (or Flash drive), walk across the room/office/building/works site/city to a computer that does have a printer, and use the "copy /b printfile.prn LPT1" command from a suitable (DOS) window and voila! you should end up with your hardcopy. Just make sure to use the /b option, and to use the same type of printer as defined for the original CVI application.

JR

0 Kudos
Message 2 of 3
(3,163 Views)
Hello scomack,

You can also choose to convert this printer file into a postscript file and later view it in PostScript viewer like Ghostscript.  The following KnowedgeBase: What Are the File Formats Created by PrintPanel or PrintCtrl? explains how to do this.

Thanks

Message Edited by Wendy L on 03-31-2006 11:16 AM

Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 3 of 3
(3,143 Views)