BookmarkSubscribeRSS Feed
DonH
Lapis Lazuli | Level 10

I am trying to use the preimage attribute in a title statement:

ods escapechar = '^';

. . . .

title j=left '^S={preimage="path to gif file on the server"} Title Text';

but the image is not included in the SAS Report output. If I change my settings to produce HTML, the image is included.

So is there some other technique/trick I need in order to have the SAS Report  tagset include the image?

And note that using the SAS Report output is a requirement as the user I am mocking this up for needs to use the File => New => Report facility to combing multiple output reports into a single document.

TIA,

Don Henderson

6 REPLIES 6
DonH
Lapis Lazuli | Level 10

Meant to add that using File=>New=>Report and putting the image in the upper left box is not an option for two reasons:

  1. The title has to have both the image and title text - and the title text includes macro variables from the Prompt Manager so the text can not be hard-coded into the Report template.
  2. Inserting an image apparently requires the image to be local instead of on the server.
Cynthia_sas
SAS Super FREQ

Hi, Don:

  I'm not sure that PREIMAGE would work with SASReport XML -- if it works -- it might only work in certain clients...and probably only in destinations like RTF, PDF and HTML results -- not in SASReport XML results. What is your client app for running the stored process?

  cynthia

DonH
Lapis Lazuli | Level 10

No stored processes involved. I am trying to set up sample EG projects for a client whose users are not SAS programmers and currently do their reports using Crystal Reports.

I need to figure out a way to do this in EG.

I've hit a number of things that Crystal can do pretty easily (per the users) that are pretty cumbersome in EG. So far, they've bought into more cumbersome but more flexible. Not sure how much longer that will last however.

I've done some things with macro to generate text that they seem ok with as the complexity is mostly hidden. Maybe I'll have to look into that and keep my fingers crossed.

Cynthia_sas
SAS Super FREQ

Did you see this note:

http://support.sas.com/kb/34/138.html

cynthia

DonH
Lapis Lazuli | Level 10

No. But I don't think it is relevant.

To clarify my point about SAS Report vs HTML, I changed my EG settings so that both a SAS Report and an HTML output object are created. I ran the code and there are no error messages. The HTML output contains the image. The SAS Report output does not.

And, as I describbd, I need the SAS Report output since using that is already part of the workaround for what the client wants that EG can't do (a single output report from multiple tasks).

Cynthia_sas
SAS Super FREQ

Oh, sorry for misunderstanding. I am so used to dealing with SASReport XML in SPs, that I went down the wrong road. Hmmm, well, if the image works in HTML, but not in SASReport XML, then it implies to me that when the SASReport XML is rendered, the <IMG> tag (which is created by PREIMAGE) is somehow not being used or not even put into the XML.

  You might want to open a track with Tech Support on this. I notice that when I use SASReport XML and HTML to product a report using the EGdefault style, that the HTML output has a banner image in EG and the SASReport XML does NOT have a banner image. So even with the EGdefault style and nothing special, there seems to be a difference in whether the banner image is in the SASReport output or not.

cynthia

sas-innovate-2024.png

Today is the last day to save with the early bird rate! Register today for just $695 - $100 off the standard rate.

 

Plus, pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 6 replies
  • 3666 views
  • 0 likes
  • 2 in conversation