PDA

View Full Version : Print content of .txt file


Gmc_fx
05-03-2009, 08:56 PM
Hello,

I need to print content of .txt file from local machine on which is running my AIR application.

What i am trying to do is to print some data on Samsung bixolon POS printer, so i need to print plain text formated to fit on paper roll. I figure it out that i could write my data to .txt file and then send it to printer. But i am not sure how to send that file.

Please help!

evride
05-03-2009, 09:02 PM
AS3 has a PrintJob class.

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/printing/PrintJob.html

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/printing/PrintJobOptions.html