Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Report Generator Component
Date: Mon, 22 Sep 2008 17:55:06 +0000 (UTC)
Organization: John Deere
Lines: 20
Message-ID: <gb8m5q$gkj$1@fred.mathworks.com>
References: <gav7hb$r89$1@fred.mathworks.com> <gb8ir1$rjo$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1222106106 17043 172.30.248.37 (22 Sep 2008 17:55:06 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 22 Sep 2008 17:55:06 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 797082
Xref: news.mathworks.com comp.soft-sys.matlab:491371


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.