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

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 1 reply
  • 597 views
  • 0 likes
  • 2 in conversation