Date: Fri, 25 May 2001 17:00:54 -0700
Reply-To: "William W. Viergever" <wwvierg@ATTGLOBAL.NET>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "William W. Viergever" <wwvierg@ATTGLOBAL.NET>
Subject: Re: ODS HTML background image
In-Reply-To: <4.3.2.7.2.20010525183518.01e0aee8@pop3.norton.antivirus>
Content-Type: multipart/alternative;
At 06:38 PM 5/25/2001 -0400, Ray Pass wrote:
>At 08:39 AM 05/26/2001 +1200, Steve wrote:
>>Hi SASers
>>
>>I am trying to assign a background image to my html tabulates and graphs but
>>havent been able to manage it.
>>
>>I know you can do it through proc template but I get an error message saying
>>I'm not allowed to write to it??
Are you creating a new style or modifying the default?
>>What I'd ideally like to do is assign the background image in the ODS
>>statement to save all the trooble of redoing styles. I dont want the
>>background image IN the tables but around the table ie an HTML background,
>>has anyone mastered this??
>>
>>Any help very appreciated
>>Steve
>
>
>Steve,
>
>The only way I know how to do it is via PROC TEMPLATE.
Ditto here.
>I think you should investigate the error you're getting.
... again, are you doign a new one or mod-ing an existing?
>Just in case you get that to work, here's some code I use with most of my
>ODS stuff. HTH.
>
>Ray
>
>
> proc template;
>
> define style styles.ray1;
>
> parent = styles.default;
>
> replace Body from Document /
> background = white;
try:
replace Body from Document / backgroundimage = "%path%blah_blah.jpg"
or, per the docs:
BACKGROUNDIMAGE='string'
specifies an image to use as the background. Viewers that can tile the
image as the background for the HTML table that the procedure creates will
do so. string is the name of a GIF or JPEG file. You can use a simple file
name, a complete path, or a URL. However, the most versatile approach is to
use a simple filename and to place all image files in the local directory.
Applies to:tables or cells
ODS Destinations:HTML
> replace TitlesAndFooters from Container /
> background = white;
>
> replace SysTitleAndFooterContainer from Container /
> cellspacing = 0;
> end;
> run;
>
>
>*------------------------------------------------*
>| Ray Pass, Ph.D. voice: (914) 693-5553 |
>| Ray Pass Consulting eFax: (914) 206-3780 |
>| 5 Sinclair Place |
>| Hartsdale, NY 10530 e-mail: raypass@att.net |
>*------------------------------------------------*
----------------------------------------------------------------------------
William W. Viergever Voice : (916) 483-8398
Viergever & Associates Fax : (916) 486-1488
A SAS Institute Quality Partner (USA) E-mail : wwvierg@attglobal.net
Sacramento, CA 95825
----------------------------------------------------------------------------
[text/html]