Path: news.mathworks.com!not-for-mail
From: "Vihang Patil" <vihang_patil@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: simple question on print
Date: Thu, 7 Feb 2008 15:53:02 +0000 (UTC)
Organization: Konem Solutions
Lines: 21
Message-ID: <fof9gu$ifj$1@fred.mathworks.com>
Reply-To: "Vihang Patil" <vihang_patil@yahoo.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1202399582 18931 172.30.248.35 (7 Feb 2008 15:53:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 7 Feb 2008 15:53:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 413701
Xref: news.mathworks.com comp.soft-sys.matlab:449903


Hello
Probably a  very dumb question,but how do I send the data
from a string variable to a printer?

ex: 
str = 'My nams is Vihang';
print(str);

But I get this error,
??? Error using ==> graphics\private\validate
Error using ==> graphics\private\validate
No Figure to print.

I dont have any figure window, just want to print the value
from the string to the printer.
And one more thing, I dont want any dialog box to open after
I issue the print command. It should automatically send the
data from the string to the default printer.

Regards
Vihang