Desktop productivity for business analysts and programmers

Graphics in Proc Report

Reply
Contributor
Posts: 73

Graphics in Proc Report

Hello EG USers,

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

Thanks!

Dhanashree

Grand Advisor
Posts: 17,394

Re: Graphics in Proc Report

Depends on the destination of the report.

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

Contributor
Posts: 73

Re: Graphics in Proc Report

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!

SAS Super FREQ
Posts: 8,720

Re: Graphics in Proc Report

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

Contributor
Posts: 73

Re: Graphics in Proc Report

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

SAS Super FREQ
Posts: 8,720

Re: Graphics in Proc Report


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

Attachment
Contributor
Posts: 73

Re: Graphics in Proc Report

Thanks much Cynthia, that was helpful.

Ask a Question
Discussion stats
  • 6 replies
  • 458 views
  • 0 likes
  • 3 in conversation