Thread Subject: Report Generator => Printing to PDF

Subject: Report Generator => Printing to PDF

From: Megan

Date: 5 Sep, 2008 16:13:01

Message: 1 of 3

When I create a PDF report using the report writer in MATLAB 2008, there does not appear to be any way to control the output. For example I can't seem to find a way to sekect Landscape mode. Also, there does not seem to be any way to set margins. Does MATLAB not provide a means to set margins to say 80 characters so that when a report is created everything after 80 chars is not cut off? Right now the only way I can get the many lines to print correctly is to go back through every line and hit a return after about 80 characters. That seems to be a hugh waste of time. What am I missing? Thanks for any help.

Subject: Report Generator => Printing to PDF

From: Megan

Date: 6 Sep, 2008 12:49:01

Message: 2 of 3

UPDATE... I have found that I can save the file in word format then open the file and reset the margins. It works but seems to be a waste of time. Why would MATLAB include a report generator when you can't set anything to customize the output?

Subject: Report Generator => Printing to PDF

From: Arkadiy Turevskiy

Date: 18 Sep, 2008 14:50:20

Message: 3 of 3

Hi Megan,

You can definitely customize the output in MATLAB Report Generator. To do that you would need to create a new stylesheet.

In Report Explorer go to Tools -> Edit Stylesheet, that will launch Stylesheet Editor. You can then open an existing PDF stylesheet, for example, "Paginated Sections", and modify it as you need (change page orientation, set margins, etc). Then save this stylesheet to a new file, and use that stylesheet when you generate a report.

This workflow is shown in the web demo on MATLAB Report Generator product page:

http://www.mathworks.com/products/ML_reportgenerator/demos.html?file=/products/demos/ML_reportgenerator/creating_reports/html/mlrepgen_demo.html

under section "Working with Stylesheets".

It is also described in the documentation.

HTH.

Arkadiy Turevskiy
The MathWorks


"Megan " <mlfrickman@rice.edu> wrote in message <g9tu7t$4l7$1@fred.mathworks.com>...
> UPDATE... I have found that I can save the file in word format then open the file and reset the margins. It works but seems to be a waste of time. Why would MATLAB include a report generator when you can't set anything to customize the output?

Tags for this Thread

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.

rssFeed for this Thread

Contact us at files@mathworks.com