BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
csetzkorn
Lapis Lazuli | Level 10

I export the HTML 5 results from SAS EG to my desktop. I end up with one HTML file. When I open it on my local machine it shows figures images nicely in a browser. However, when I send it via email and open the attachment the images are not shown. Is there anything I can do to embed the images in one html file similar to a Jupyter notebook? Thanks!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

@csetzkorn wrote:
Sure but Jupyter notebook embeds images somehow, which is more user friendly ...

That's because it uses an additional layer in its backend that works like a content management system. When you use ODS HTML, you work on the level of HTML, not on the level of a CMS.

And keep in mind that you're a SAS programmer, not just a SAS user. This means that there are things you need to take care of, while also opening up a lot of flexibility. Proper definition of the path options will lead to output that is contained in a single directory tree and can be handled (for copying etc) in one fell swoop.

 

Maybe it's because I'm old, but I happily trade a lot of "comfort" for having direct control over the working of things.

View solution in original post

11 REPLIES 11
Shmuel
Garnet | Level 18

A html page with pictures is actually a file.htm and a directory that contains the pictures.

What have you sent by email? and how have you done it?

Post your code in order that the forum can help you.

csetzkorn
Lapis Lazuli | Level 10

Actually I just found the folder with the images looking at one of the HTML img tags:

 

<div class="c">
<img alt="The SGPlot Procedure" src="HTML%20-%20PA2BubblePlots1_files/img0.png" style=" height: 480px; width: 640px;" border="0" class="c">
</div>

 

Sorry! Is it possible to embed them like in a Jupyter notebook?

 

 

 

 

Shmuel
Garnet | Level 18

I'm not familiar with Jupyter notebook.

Alternatively you can zip the directory containing the html + image files.

The receiver should unzip it.

csetzkorn
Lapis Lazuli | Level 10
Sure - just not very userfriendly
PaigeMiller
Diamond | Level 26

PDF or RTF is user-friendly, would that meet your needs?

--
Paige Miller
csetzkorn
Lapis Lazuli | Level 10
Sorry but that's the requirement. I will use saspy in a Jupyter Notebook ...
csetzkorn
Lapis Lazuli | Level 10
Sure but Jupyter notebook embeds images somehow, which is more user friendly ...
Kurt_Bremser
Super User

@csetzkorn wrote:
Sure but Jupyter notebook embeds images somehow, which is more user friendly ...

That's because it uses an additional layer in its backend that works like a content management system. When you use ODS HTML, you work on the level of HTML, not on the level of a CMS.

And keep in mind that you're a SAS programmer, not just a SAS user. This means that there are things you need to take care of, while also opening up a lot of flexibility. Proper definition of the path options will lead to output that is contained in a single directory tree and can be handled (for copying etc) in one fell swoop.

 

Maybe it's because I'm old, but I happily trade a lot of "comfort" for having direct control over the working of things.

csetzkorn
Lapis Lazuli | Level 10
Totally agree ...
ballardw
Super User

Or at least knowing when I am letting the system defaults take over and what they are.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 11 replies
  • 1608 views
  • 3 likes
  • 5 in conversation