BookmarkSubscribeRSS Feed
Obsidian | Level 7

I`m trying to embed an image to my pdf report in WRS , using stored process.

The problem is logo gets printed to page 1 and contents to page2.

However when i try the code in Base SAS the logo and other data gets printed on the same page

ods escapechar = '^';

ods text='^{style [just=R postimage="/data/co/apps/macro/logo.jpg"] }';

title1 "^{style systemtitle[just =R color = blue fontsize=40pt font_face=Calibri ] TELE}";

title2 "^{style systemtitle[just =L color = dark blue fontsize=18pt] Summary Report }";

title3 "^{style systemtitle[just =L color = black fontsize=11pt ] For:" &lname"Dealer:"&pname "}";

title4 "^{style systemtitle[just =L color = black fontsize=11pt ] Period: "&period "}";

/*title4 "Currperiod:" &currperiod;*/

proc print data=final noobs ;

var BonusSummary / style=[CELLWIDTH=2.2IN background=$fmt.];

Var MonthlyCount / style=[CELLWIDTH=1.5IN ];

Var Q1 Q2 Q3 Q4 / style=[CELLWIDTH=1IN ];

format Summary $bonus. ;

Generally, any reports generated in Web Report Studio, even with a stored process, are generated in SASReport XML format. I thought you needed to register your logo and other graphics in the Metadata in order to use them in a WRS report. So I would not expect ODS ESCAPECHAR with POSTIMAGE/PREIMAGE to work in a WRS report.

Also, It was my understanding that the "Print to PDF" feature of WRS Reports was using a different capability to create the PDF file other than ODS PDF. My understanding was that the WRS SASReport XML was being converted to PDF using Java techniques and under that scenario, it would be entirely possible for a PDF version of a WRS report to look different from an ODS PDF report generated in Base SAS.

I think your best bet for help with this question might be to work with Tech Support.




Time is running out to save with the early bird rate. Register by Friday, March 1 for just $695 - $100 off the standard rate.


Check out the agenda and get ready for a jam-packed event featuring workshops, super demos, breakout sessions, roundtables, inspiring keynotes and incredible networking events. 


Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 1 reply
  • 2 in conversation