We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpElectronics,  Serial Library › printing txt-document from processing
Page Index Toggle Pages: 1
printing txt-document from processing (Read 1822 times)
printing txt-document from processing
May 27th, 2009, 6:43am
 
hey!

i wrote a program, which exports txt-documents (or pdfs).
i want that documents to be printed automatically from processing!

is there any help?

or any idea, how i can print text from processing, howsoever!

thanxxxs!



hannah (sorry for so bad english)
Re: printing txt-document from processing
Reply #1 - May 31st, 2009, 2:33pm
 
Like physical print out a sheet of paper Print?
if so, you'll have to use open() and print from Command Line/Shell.

http://processing.org/reference/open_.html

I recommend creating a batch file or shell script to print your document then have processing run that script with open()

maybe use something like this for pdf:
http://www.verypdf.com/pdfprint/pdf-print-cmd.html

goodluck
Re: printing txt-document from processing
Reply #2 - Jul 26th, 2009, 10:40pm
 
take a look here, I've been able to print images but printing text should work too.

http://processing.org/discourse/yabb2/?num=1160674179
Page Index Toggle Pages: 1