Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Report Generator Component
Date: Fri, 26 Sep 2008 14:18:02 +0000 (UTC)
Organization: John Deere
Lines: 38
Message-ID: <gbiquq$akv$1@fred.mathworks.com>
References: <gav7hb$r89$1@fred.mathworks.com> <gb8ir1$rjo$1@fred.mathworks.com> <gb8m5q$gkj$1@fred.mathworks.com> <gbgaaq$qss$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1222438682 10911 172.30.248.38 (26 Sep 2008 14:18:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 26 Sep 2008 14:18:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 797082
Xref: news.mathworks.com comp.soft-sys.matlab:492250


Thanks. I appreciate your help on this. I was able to get this basically working.

Jim


"Arkadiy Turevskiy" <aturevsk@mathworks.com> wrote in message <gbgaaq$qss$1@fred.mathworks.com>...
> 
> 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.