BookmarkSubscribeRSS Feed
noobs
Fluorite | Level 6

Hello EG USers,

Is it possible to embed small logo / .jpg file inside of SAS Report. Currently, I am using Electronics style.

Thanks!

Dhanashree

6 REPLIES 6
Reeza
Super User

Depends on the destination of the report.

You say SAS report and proc report. Not clear what you mean.

noobs
Fluorite | Level 6

Right, I am using proc report to generate pdf and html.

Although if I need to change the destination to embed graphics, I am more than willing to consider the new destination and then manually convert it to pdf.

Thanks in advance for your inputs!

Cynthia_sas
Diamond | Level 26

Hi:

  Generally with any procedure, (not just PROC REPORT), you can put a logo in the title of the results, as long as

1) you use an ODS destination that supports style definitions and style overrides

2) you use one of the 2 basic methods of inserting a logo:

---put the logo into the SAS TITLE statement

OR

----for some destinations, define a new style template that defines the logo

  The 3 major destinations: ODS RTF, ODS PDF and ODS HTML do support the insertion of logos into the output results. However, some destinations (ODS LISTING, ODS CSV, ODS TAGSETS.EXCELXP) do *NOT* support logos.

  Did you search the forum for previous postings on this topic? I know that I have personally responded to more than 1 previous posting with this question. And I know that there are several Tech Support notes on the topic.

cynthia

noobs
Fluorite | Level 6

Can you point me to relevant documentation. I tried searching in discussions but did not come across anything more relevant than

ods graphics / imagename='koala' imagefmt=png;

Not sure if this will serve the purpose.

In theory, I would prefer the image to be part of title statement justified to left. Now I tried to read about TITLE statement, but it mentions nothing about images. Am I missing something?

Thanks much,

Dhanashree

Cynthia_sas
Diamond | Level 26


Hi:

Here's a screen shot of the string I used to search the SAS site and found a lot of hits. This one did not show up on the first page, but will help (24229 - Place images in titles routed to ODS PDF).

  

Here are some previous forum postings:

https://communities.sas.com/message/10450#10450

https://communities.sas.com/message/124747#124747

https://communities.sas.com/message/44176#44176

(but when I searched the forum, there were 2 pages of hits -- I only put 3 here).

cynthia


search_on_sas_site.png
noobs
Fluorite | Level 6

Thanks much Cynthia, that was helpful.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 6 replies
  • 2163 views
  • 0 likes
  • 3 in conversation