LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Print Report using ASCII command through printer selection available on windows

Hi,

 

I'm using Labview 2009 to create a report using Report Generation Toolkit.

 

Creating a report is not the problem, the problem is I need to print the report manually by sending an ASCII Code.

I noticed that there are few example on send ASCII code command, but neither of them are related to printing.

 

The printer I use is Panasonic dot matrix printer KX-P1121E with USB port. (Fanfold type of paper)

 

I used "NI_report_lvclass: Print report.vi" from Report Generation before this to print my report, everything is okay and not receiving any error.

But I noticed that after finish printing, the paper will automatically feed out as if that VI (Print report.vi) is sending out "Form Feed" (FF) Command to the printer. 

 

My application cannot use this method because I need to print a set of data in every minute. If the data only have 2 rows, then it will be a wasting a lot of paper if everytime finished printing paper feeding out. I want the printer to continue standby on the same paper after finished printing previous data. In other words, maybe just manually send "Line Feed or Carriage Return" to the printer.

 

So I have a few things need to be clarified step by step;

 

1. How can I send an ASCII Code to my printer? Do you have any example for this? link below is the character of ASCII Codes that can be use :http://webpages.charter.net/dperr/links/esc_p83.htm

2. Can I send a report created by report generation to be printed using this ASCII command method?

3. If my printer is setup by using windows (Meaning: Available on "Printer and Faxes" list), How can I configure the printer setup in sending the ASCII Code? 

 

Really appreciated your reply

 

Thanks!

 

0 Kudos
Message 1 of 1
(2,426 Views)