BookmarkSubscribeRSS Feed
cuevasj
Quartz | Level 8

I have a stored process that is called from a VA stored process container. I have several radio buttons and dropdowns all working fine, but when I try to insert a picture it will not render. If I call a second stored process and use ods PDF layout, then I can get the image to work on that ODS PDF, but I need the image to render in the current stored process.

I have tried using, what I thought would be the obvious answer:

 

%macro display_form;
data _NULL_;
file _webout;

put "<html>";
put " <head>";
put " <style media='screen' type='text/css'>";
put " .border {border-width: 1px; border-style: solid;}";

---bunch of code here---

put "<img src='//severName/folder/image.png'/>";        <--- what I thought was the obvious answer

stop;

run;

%mend;

%macro main;

  ---buch of code here---

%mend;

%main;

1 REPLY 1
AllanBowe
Barite | Level 11

your image needs to be accessible from your browser - eg, such that if you were to paste the full-path location of the image into the address bar that you would see the image.

 

Typically this means placing your image on the SAS Web Server (htdocs folder) and using a _relative_ link to it, eg `/imgs/myimage.png` - the full path to which would be `https://yourSASwebserver/imgs/myimage.png`

 

 

/Allan
SAS Challenges - SASensei
MacroCore library for app developers
SAS networking events (BeLux, Germany, UK&I)

Data Workflows, Data Contracts, Data Lineage, Drag & drop excel EUCs to SAS 9 & Viya - Data Controller
DevOps and AppDev on SAS 9 / Viya / Base SAS - SASjs

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 689 views
  • 0 likes
  • 2 in conversation