Traditional web-based reporting with SAS BI tools

Adding logo to WRS pdf report

Reply
Frequent Contributor
Posts: 83

Adding logo to WRS pdf report

Hi

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

run;
SAS Super FREQ
Posts: 8,643

Re: Adding logo to WRS pdf report

Hi:
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.

cynthia
Post a Question
Discussion Stats
  • 1 reply
  • 127 views
  • 0 likes
  • 2 in conversation