Path: news.mathworks.com!not-for-mail
From: "Arkadiy Turevskiy" <aturevsk@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Report Generator Component
Date: Thu, 25 Sep 2008 15:22:02 +0000 (UTC)
Organization: MathWorks
Lines: 32
Message-ID: <gbgaaq$qss$1@fred.mathworks.com>
References: <gav7hb$r89$1@fred.mathworks.com> <gb8ir1$rjo$1@fred.mathworks.com> <gb8m5q$gkj$1@fred.mathworks.com>
Reply-To: "Arkadiy Turevskiy" <aturevsk@mathworks.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1222356122 27548 172.30.248.38 (25 Sep 2008 15:22:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 25 Sep 2008 15:22:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 779229
Xref: news.mathworks.com comp.soft-sys.matlab:492010



Hi James,
Thanks for explaining the problem. I talked to product developer and he suggested the following solution:
write a custom component and programmatically call the Import File component, &#8220;rptgen.crg_import_file&#8221;, to set the temporary file name.

If you find it hard to do this yourself, please contact technical support and they should be able to assist you.

Arkadiy



"James Ross" <ross.remove.jamesh@johndeere.remove.com> wrote in message <gb8m5q$gkj$1@fred.mathworks.com>...
> Arkadiy,
> 
> Thanks for your response. Unfortunately, this does not solve my problem. I actually have the html content in a string variable in Matlab (having extracted it from other sources in an m-file evaluated by the report). So, my HTML content does not actually exist in a file. I can't import a temporary file because the Import File component requires that the file be found at report design time. I would actually need to write a variable number of temporary files at report generation time and import these temporary files.
> 
> I really need to be able to dump the Matlab variable contents in and have it interepreted as html since my report will actually have a variable number of HTML components to insert - the report design will loop over a cell array and insert the HTML text from each cell.
> 
> "Arkadiy Turevskiy" <aturevsk@mathworks.com> wrote in message <gb8ir1$rjo$1@fred.mathworks.com>...
> > Hi James,
> > 
> > Please use "Import File" component - under group "Report Generator". Set the option "Import files as" to "Formatted text (HTML/RTF)". That should get you what you want.
> > 
> > Hope this helps.
> > 
> > Arkadiy Turevskiy
> > The MathWorks
> > 
> > "James Ross" <ross.remove.jamesh@johndeere.remove.com> wrote in message <gav7hb$r89$1@fred.mathworks.com>...
> > > Has anyone figured out how to put existing HTML into the output of a report? The standard text component escapes all the tags so that the content ends up as text with the HTML tags rather than formatted text.
> > > 
> > > I've tried to create my own custom component for this, but can't figure out how to make that work.