BookmarkSubscribeRSS Feed
LMstat11
Calcite | Level 5

Hi,

 

I am trying to create an rtf report with an image, followed immediately by a comma. Somehow there is a space added between the image and the comma in the output report. I have tried using a compress function with no luck. The current line of code is: 

 

ods rtf text = "~S={Just = C  width = 30% VJust = center preimage = '&image_loc.image1.png'}, where";

 

Any help appreciated! 

1 REPLY 1
ballardw
Super User

I can't solve the space issue as I suspect it is buried well into the guts of the whole ODS structure code.

 

However, the only reason I could come up with for the requirement with the comma involves your "image" looking like text.

If you would share the image, click on the Photos Icon and navigate to an example, it might be possible to create text that looks like your image with text decoration options. Maybe.

 

Or possibly edit the image to make a copy with the appropriate size comma as part of the image.

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