system
September 28, 2009, 6:21pm
1
Someone knows a function in Processing or C language that sends a file to the printer (like a "copy [file.*] LPT1" in DOS)?
If that's possible to ma this with Processing, would be insteresting, because I'll can create a beautiful interface to send data to my Arduino.
But if not possible, a little program in C will solve my problem... I just need to know how write this function with the printer.
processing is written in java. there's probably a way to execute native java code and probably some way to do the file print with java.
system
September 29, 2009, 2:24pm
3
After search about my idea is to do a interface write in java or processing, and in this program call an executable file (.bat for example) that send the file wanted to printer. But I don't know how to send a file to printer =/
system
October 1, 2009, 5:10pm
4
I finally found the solution!
I only wrote a simple code in notepad:
@echo
cls
type filename.txt > LPT1
and save it in .bat format
thanks