LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting Printer Properties

Hi,
       I am working on a lab view application to print a barcode. I have active X controls to print to the printer but to change the properties like Font, color, position and all those things how do I or where do I access the printer properties. Are there any active X controls through which I can access the Printer properties. I appreciate your help.
 
Thanks,
 
Mudda.
0 Kudos
Message 1 of 4
(3,585 Views)
How are you entering the barcode info to print?? Is it a string cell inside labview?? Then you would use property nodes. Or do you want to adjust default printer settings inside the printer?? I think we need some more info on the equipment being used.
0 Kudos
Message 2 of 4
(3,573 Views)

Hi,

      After posting my question I made some progress on my issue. The things which I am doing are:

1) Priting a bacode

2) Putting some text strings next to barcode.

For putting the text I am using the simple generate report VI's. The problem with this are I am not able to position the text on the barcode. I was able to change the font style and also the fnt size but is it possible to change the position where I want to put the text?

the next question is for printing the barcode, I have some active X controls for the printer to print the barcode. Could you tell me when can I use this one like before writing the text or after writing the text or does it at all matters?

there is another problem with using the Active X controls. When I use that, it is poping up an undefined error. I am new to Active X controls and all I am doing is opening the Active X control, feeding the input to print the Number and the position and then closing it.

I appreciate if you could direct me in a proper way to resolve this. For reference I am attaching my code with this message.

Thanks,

Mudda.

0 Kudos
Message 3 of 4
(3,564 Views)

Mudda,

I don't think that using the report generation toolkit to add the image and text is the correct way to do what you want. Have you though of programattically creating the image of the barcode and inserting text into the image? I am not a huge expert at Report Gen Toolkit, but I do know that you want to place things one at a time and it looks like a report. Not like text, text, image, etc..... My way you can actually alter the image with the text, then print the image alone. Let me know what you think.

Tyler H.

National Instruments

0 Kudos
Message 4 of 4
(3,544 Views)