Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Using External Graphics (.gif or .png file) in ODS HTML
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Paige Miller  
View profile  
 More options Feb 9, 2:31 pm
Newsgroups: comp.soft-sys.sas
From: Paige Miller <paige.mil...@kodak.com>
Date: Thu, 9 Feb 2012 11:31:43 -0800 (PST)
Local: Thurs, Feb 9 2012 2:31 pm
Subject: Using External Graphics (.gif or .png file) in ODS HTML
Suppose, someone has provided me with a graphic in the form of an .GIF
or .PNG file. Then, I want to insert this graphic into some ODS HTML
output. For example:

ods html file="C:\temp\report.html";
proc print data=final_report;
run;

/* Here is where I want the graphic from the .GIF or .PNG File to
appear */

proc means data=final_report;
     var sales;
run;
ods html close;

How can I do this? (Windows XP and SAS 9.3 if that matters)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ya  
View profile  
 More options Feb 9, 3:15 pm
Newsgroups: comp.soft-sys.sas
From: Ya <huang8...@gmail.com>
Date: Thu, 9 Feb 2012 12:15:48 -0800 (PST)
Local: Thurs, Feb 9 2012 3:15 pm
Subject: Re: Using External Graphics (.gif or .png file) in ODS HTML
On Feb 9, 11:31 am, Paige Miller <paige.mil...@kodak.com> wrote:

This will do:

ods html file="C:\temp\report.html";
proc print data=sashelp.class;
run;

data dum;
x='';
run;

proc report data=dum nowd;
column x;
define x /'' style=[preimage="c:\temp\groups_logo_sm.gif"];
run;

proc means data=sashelp.class;
     var weight;
run;
ods html close;

HTH

Ya


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paige Miller  
View profile  
 More options Feb 9, 4:25 pm
Newsgroups: comp.soft-sys.sas
From: Paige Miller <paige.mil...@kodak.com>
Date: Thu, 9 Feb 2012 13:25:29 -0800 (PST)
Local: Thurs, Feb 9 2012 4:25 pm
Subject: Re: Using External Graphics (.gif or .png file) in ODS HTML
On Feb 9, 3:15 pm, Ya <huang8...@gmail.com> wrote:

Thanks, Ya! Why didn't I think of that?

--
Paige Miller
paige\dot\miller \at\ kodak\dot\com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ajs2004@bigfoot.com  
View profile  
 More options Feb 10, 6:51 am
Newsgroups: comp.soft-sys.sas
From: "ajs2...@bigfoot.com" <ajs2...@bigfoot.com>
Date: Fri, 10 Feb 2012 03:51:30 -0800 (PST)
Local: Fri, Feb 10 2012 6:51 am
Subject: Re: Using External Graphics (.gif or .png file) in ODS HTML
On Feb 9, 7:31 pm, Paige Miller <paige.mil...@kodak.com> wrote:

> Suppose, someone has provided me with a graphic in the form of an .GIF
> or .PNG file. Then, I want to insert this graphic into some ODS HTML
> output.

Or add images using TITLE or FOOTNOTE statements:

ods escapechar='^';
title "^S={preimage='http://www.sas.com/images/logos/
SAS_TPTK_logo.gif'}";

proc means data=sashelp.class;
  var weight;
run;

cribbed from
http://www.runsubmit.com/questions/548/how-can-i-insert-an-image-usin...
http://groups.google.com/group/comp.soft-sys.sas/browse_thread/thread...
http://support.sas.com/rnd/base/ods/templateFAQ/Template_rtf.html#images

See also:

Really Cool Graphics With SAS/GRAPH -
Plotting and Embedding Likert Scales in Your Reports
Rick M. Mitchell, Westat, Rockville, MD
http://www.nesug.org/proceedings/nesug05/dp/dp4.pdf


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paige Miller  
View profile  
 More options Feb 10, 7:54 am
Newsgroups: comp.soft-sys.sas
From: Paige Miller <paige.mil...@kodak.com>
Date: Fri, 10 Feb 2012 04:54:38 -0800 (PST)
Local: Fri, Feb 10 2012 7:54 am
Subject: Re: Using External Graphics (.gif or .png file) in ODS HTML
Great information, thanks AJS2004!

--
Paige Miller
paige\dot\miller \at\ kodak\dot\com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »