Thread Subject: Report Generator Component

Subject: Report Generator Component

From: James Ross

Date: 19 Sep, 2008 03:50:03

Message: 1 of 5

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.

Subject: Report Generator Component

From: Arkadiy Turevskiy

Date: 22 Sep, 2008 16:58:09

Message: 2 of 5

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.

Subject: Report Generator Component

From: James Ross

Date: 22 Sep, 2008 17:55:06

Message: 3 of 5

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.

Subject: Report Generator Component

From: Arkadiy Turevskiy

Date: 25 Sep, 2008 15:22:02

Message: 4 of 5


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, “rptgen.crg_import_file”, 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.

Subject: Report Generator Component

From: James Ross

Date: 26 Sep, 2008 14:18:02

Message: 5 of 5

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, “rptgen.crg_import_file”, 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.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
report generator Arkadiy Turevskiy 22 Sep, 2008 13:00:23
html output James Ross 18 Sep, 2008 23:55:05
component James Ross 18 Sep, 2008 23:55:05
report generator James Ross 18 Sep, 2008 23:55:05
rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com