Path: news.mathworks.com!not-for-mail
From: "Vihang Patil" <vihang_patil@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: simple question on print
Date: Fri, 8 Feb 2008 18:03:04 +0000 (UTC)
Organization: Konem Solutions
Lines: 32
Message-ID: <foi5go$4jc$1@fred.mathworks.com>
References: <fof9gu$ifj$1@fred.mathworks.com> <fofcr7$ef8$1@canopus.cc.umanitoba.ca>
Reply-To: "Vihang Patil" <vihang_patil@yahoo.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1202493784 4716 172.30.248.37 (8 Feb 2008 18:03:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 8 Feb 2008 18:03:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 413701
Xref: news.mathworks.com comp.soft-sys.matlab:450206



roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in 
message <fofcr7$ef8$1@canopus.cc.umanitoba.ca>...
> In article <fof9gu$ifj$1@fred.mathworks.com>,
> Vihang Patil <vihang_patil@yahoo.com> wrote:
> 
> >Probably a  very dumb question,but how do I send the 
data
> >from a string variable to a printer?
> 
> Matlab does not provide any portable way of doing that.
> 
> 
> >But I get this error,
> >??? Error using ==> graphics\private\validate
> 
> The \ suggest you are using MS Windows. If so,
> http://groups.google.ca/group/comp.soft-
sys.matlab/msg/4f75ac214fd7ceea
> That's Peter Boettcher, Nov 13 2007, "Formatting rows"
> -- 
> This is a Usenet signature block. Please do not quote it 
when replying
> to one of my postings.
> http://en.wikipedia.org/wiki/Signature_block

Dear Walter
That was a really nice solution. The only one problem with
system(sprintf('notepad /p %s', filename)) , this command  
was that it prints Page 1, page 2 and so on at the end of 
the file which I dont want. Any way to suppress it?
Regards
Vihang