LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make LabVIEW print to different paper size?

I tried to print experiment labels through LabVIEW from Zebra label printer. Label size is 2.5'' X 0.5'', much smaller than regular paper size. 

 

I used to Report Generation VIs to do the printing. The VI works fine if printing from a regular printer (regular paper size); but if printing from the Zebra label printer, VI finished running without error, but nothing printed out of the printer. My guess is because the paper size is not set right and the Zebra printer simply ignores the printing task. So can LabVIEW set up different paper size to print on?

 

How LabVIEW communicate with printers anyway? Through Windows system?

 

Thanks for any help. 

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

Which VIs are you using? The Print Report.vi builds a HTTP report and then prints it using a web browser. You could always create a word report and then use an ActiveX automation of the Word Object Library to call the PrintOut method. I think that will let you do a little more configuration, you can find all of the information about the methods and properties of this automation on msdn. I hope that helps!

Verne D. // Software R&D // National Instruments
0 Kudos
Message 2 of 3
(2,967 Views)

it has to be this complicated? Why LabVIEW does not have a function to configure paper size?

 

But I will try that route. Will post result or further questions. Thanks. 

0 Kudos
Message 3 of 3
(2,959 Views)