LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

line print in dot printer

I want to print line by line in dot-line printer..
I know this method..as follows:

SetPrintAttribute (ATTR_EJECT_AFTER, 0);
PrintTextBuffer (ch, "");
SetPrintAttribute (ATTR_EJECT_AFTER, 1);

but if I use the above code, paper will be ejected
each time I use PrintTextBuffer...
I really do not want to eject paper..



I want to print my string using PrintTextBuffer continuously. do not want paper eject..


and
0 Kudos
Message 1 of 5
(3,581 Views)
Just as a suggestion: have you tried to write directly to the port with outp? You can check in control panel for the I/O interval associated with LPT1 and use it in the outp function: I never tried with the parallel port but have used a little for the serial port and it worked. One disadvantage is that you'll have to deal with control codes for your printer.
Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 5
(3,581 Views)
Hello all,

check out the link to the discussion below. They have links to example code as well.
print buffer line by line without ejecting paper

hope this helps
Bilal Durrani
NI
0 Kudos
Message 3 of 5
(3,582 Views)
Ok a thread from the past...Smiley Happy

I need the ability to print to a dot matrix printer line by line, as in the 1st post. The above link is no longer working, so can anyone point me in the right direction.

Ok I can buy a serial port for the dot matrix printer, but only if there is no other way of doing what I want Smiley Sad

0 Kudos
Message 4 of 5
(3,388 Views)

Hi daviduk,

Here is the new link to print buffer line by line without ejecting paper

 

Cheers,

David Goldberg
National Instruments
Software R&D
0 Kudos
Message 5 of 5
(3,363 Views)