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
MacroCore library for app developers
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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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