BookmarkSubscribeRSS Feed
tommy81
Obsidian | Level 7
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;
1 REPLY 1
Cynthia_sas
SAS Super FREQ
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

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

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

 

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
  • 640 views
  • 0 likes
  • 2 in conversation