LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Implementing VB code in Labview

Attached is Visual basic code. I need to implement this code into my Lab view application. the major problem I am having is accessing the printer Objects. I havent done any programming in calling DLL's or Active X controls or Objects. Could any one show how do I set the properties of the Printer. I appreciate any help.
 
thanks,
Mudda.
0 Kudos
Message 1 of 5
(2,869 Views)
Hello,
 
I think the answer to your question comes down to how you have defined "Printer" in your code.  I haven't done this in VB, so I'm not familiar - what type is "Printer" and where is it instantiated?  I suspect near or in that code you will see how it connects to the printer, and hopefully we can use a similar mechanism (be it an ActiveX control or something else) in LabVIEW.
 
Best Regards,
 
JLS
Best,
JLS
Sixclear
0 Kudos
Message 2 of 5
(2,841 Views)

PS - you can print from LabVIEW - see a property node from the applications control palette, and choose the printing category there.  Also, if you search the example code on developer zone for the keyword "print" you should find a number of examples involving printing.

Best Regards,

JLS

Best,
JLS
Sixclear
0 Kudos
Message 3 of 5
(2,840 Views)
Hi,
      thanks for the response, In the VB code the "print" was an object. like in the code if you type Print. it was bringing up all the properties associated with it, like the font size, style, X position and all. I searched the Knowledge base but could not find the examples that are related to my application.
 
Thank you,
 
mudda.
0 Kudos
Message 4 of 5
(2,838 Views)
Have a look at the "Report Generation" subpalette. You will find the basic LV tools to control a printer output.
Chilly Charly    (aka CC)
0 Kudos
Message 5 of 5
(2,831 Views)