HTML report formatting

H

Harry

Is it possible to change the text alignment properties for Visio's HTML reports? I'd prefer to see everything left-aligned vs. Visio's right-aligned default format.

Thanks in advance,
Harry
 
C

Chris Roth [MVP]

Hi Harry,

I'm out in the middle of nowhere on New Zealand's South Island, so I couldn't check everything...but anyway

I didn't see an option for specifying a report template or anything in the dialogs. But I imagine the reports refer to some sort of stylesheet that you might be able to re-direct and/or re-define, if you are comfortable with html/xml/css.

Might be worth opening up a few files in notepad for a look.

Sorry I don't have a better answer for you, but let us know if you figure anything out!

--
Hope this helps,

Chris Roth
Visio MVP

Free Visio shapes:
http://www.visguy.com/category/shapes
Visio programming info:
http://www.visguy.com/category/programming/
Other Visio resources:
http://www.visguy.com/visio-links/

Is it possible to change the text alignment properties for Visio's HTML reports? I'd prefer to see everything left-aligned vs. Visio's right-aligned default format.

Thanks in advance,
Harry
 
H

Harry

Hi Chris,
Thanks for responding. Your idea was a lot better than mine as I hadn't thought of looking for an embedded stylesheet. I'll keep poking around with this and if I uncover anything I'll be sure and post my findings.

Harry
"Chris Roth [MVP]" <visioguy [at] hotmail [dot] com> wrote in message Hi Harry,

I'm out in the middle of nowhere on New Zealand's South Island, so I couldn't check everything...but anyway

I didn't see an option for specifying a report template or anything in the dialogs. But I imagine the reports refer to some sort of stylesheet that you might be able to re-direct and/or re-define, if you are comfortable with html/xml/css.

Might be worth opening up a few files in notepad for a look.

Sorry I don't have a better answer for you, but let us know if you figure anything out!

--
Hope this helps,

Chris Roth
Visio MVP

Free Visio shapes:
http://www.visguy.com/category/shapes
Visio programming info:
http://www.visguy.com/category/programming/
Other Visio resources:
http://www.visguy.com/visio-links/

Is it possible to change the text alignment properties for Visio's HTML reports? I'd prefer to see everything left-aligned vs. Visio's right-aligned default format.

Thanks in advance,
Harry
 
S

Scott

Harry,

If you open the HTML file produced by Save as Web Page, you'll see a <STYLE>
tag in the META data at the top of the file. Within the style tag you'll find
an entry for TH (table header) and one for TD (table data), each of which
includes "text-align: right". If you change it to "text-align: left" you'll
get the desired result.

However, I realize that this requires you to post-process the generated HTML
file. I haven't found a way to alter the default setting before the report is
produced. Might be hard coded, might be stored somewhere that you can alter,
but if it's the latter, it certainly isn't obvious!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top