|
On Sun, 26 Aug 2007 08:35:23 -0400, Richard A. DeVenezia
<rdevenezia@WILDBLUE.NET> wrote:
>Is there a way to have ODS HTML wrap a wide table in the same manner that
>ODS PDF does ?
I doubt it.
A PDF generator is working with all sorts of measurements (page dimensions,
margins specs, font metrics, etc.). It can compute where to wrap.
An HTML generator does not have anything like that i nformation, and
wouldn't know how to use it in any case. HTML is about data structure, not
page layout. The HTML generator does not know what the output mechanism will
be (print, screen, audio, ...), let alone dimensions, so it would be hard
pressed to know just where the wrap points should be.
The wrapping of your HTML output would be the responsibility of the HTML
*consumer* (typically, a browser). There it would depend on the device
(screen vs. print) and of course on details of the device (print margins,
screen size and resolution). I would also expect to see a wrapping request
in CSS code rather than HTML.
>
>Sample:
>
>data foo;
> array name[5] $8 ('One' 'Two' 'Three' 'Four' 'Five');
> do _n_ = 1 to dim(name);
> level1 = 'This is ' || name[_n_];
> do instance = 1 to 180;
> if instance / 40 < _n_ then output;
> end;
> end;
>run;
>
>ods html file="%sysfunc(pathname(WORK))\report.html" style=meadow;
>ods pdf file="%sysfunc(pathname(WORK))\report.pdf" style=meadow;
>
>proc tabulate data=foo missing;
> class level1 / order=data;
> class instance;
> classlev level1 / style=[asis=yes];
>
> table level1,instance*n;
>run;
>
>ods pdf close;
>ods html close;
>
>
>--
>Richard A. DeVenezia
>http://www.devenezia.com/
|