471,610 Members | 1,326 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,610 software developers and data experts.

hmtl output class - C#

Hello good people

I know there are several classes to handle XML but i haven't found
a HTML output class (to a file, not an ASP context)

I want to be able to generate some reports to a "nice" output but don't want
to
know the html specifics .

Ideally i want to be able to load some XML style sheet and then
do some function calls (in C#) to pass a label then the text ...
title1="my dog has fleas" function call ,
paragraph="blah blah" etc.
tableheader="widgets,freddos"
tablerow="abc, def, ifk"
tablerow (repeated)
tableend

where the details for the oject type is encoded in the XML

Want something simple that allows you to pretty up what was a boring textual
output before .
Alternatively if the XML isn't there then some control of some simple
primatives like font size, color, bold
What magic lies out there ?


Thanks
Dec 6 '05 #1
2 1079
Have you looked at XSL?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.

"Greg Roberts" <gr*********@NOSPAMLOWLIFEcitect.com> wrote in message
news:%2*****************@tk2msftngp13.phx.gbl...
Hello good people

I know there are several classes to handle XML but i haven't found
a HTML output class (to a file, not an ASP context)

I want to be able to generate some reports to a "nice" output but don't
want to
know the html specifics .

Ideally i want to be able to load some XML style sheet and then
do some function calls (in C#) to pass a label then the text ...
title1="my dog has fleas" function call ,
paragraph="blah blah" etc.
tableheader="widgets,freddos"
tablerow="abc, def, ifk"
tablerow (repeated)
tableend

where the details for the oject type is encoded in the XML

Want something simple that allows you to pretty up what was a boring
textual output before .
Alternatively if the XML isn't there then some control of some simple
primatives like font size, color, bold
What magic lies out there ?


Thanks

Dec 6 '05 #2
Greg,
Consider Kevin's suggestion.

Transform your XML using XSLT and stream it to a file or memory.

Dec 7 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Mark | last post: by
2 posts views Thread by MrNobody | last post: by
1 post views Thread by mapoza | last post: by
2 posts views Thread by Oli Thissen | last post: by
reply views Thread by jebbyleezer | last post: by
reply views Thread by MichaelMortimer | last post: by
reply views Thread by CCCYYYY | last post: by
1 post views Thread by ZEDKYRIE | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.