Desktop productivity for business analysts and programmers

PREIMAGE in a TITLE with SASREPORT

Reply
Frequent Contributor
Posts: 148

PREIMAGE in a TITLE with SASREPORT

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

Frequent Contributor
Posts: 148

PREIMAGE in a TITLE with SASREPORT

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.
SAS Super FREQ
Posts: 8,719

PREIMAGE in a TITLE with SASREPORT

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

Frequent Contributor
Posts: 148

PREIMAGE in a TITLE with SASREPORT

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.

SAS Super FREQ
Posts: 8,719

PREIMAGE in a TITLE with SASREPORT

Did you see this note:

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

cynthia

Frequent Contributor
Posts: 148

PREIMAGE in a TITLE with SASREPORT

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).

SAS Super FREQ
Posts: 8,719

PREIMAGE in a TITLE with SASREPORT

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

Ask a Question
Discussion stats
  • 6 replies
  • 1796 views
  • 0 likes
  • 2 in conversation