BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
dipand
Quartz | Level 8
Hello to all,
the client I work for asks for the possibility of having certain information in a pdf file, including a series of images.
My problem is that at the moment I can't resize the images to insert because some of them are very large.
Can you help me?

 

1 ACCEPTED SOLUTION

Accepted Solutions
ChrisNZ
Tourmaline | Level 20

Please post the code as text using the appropriate icon, and post images as such.

Have you tried this syntax?

ODS text='^{STYLE [preimage=''c:\temp\saslogo.png?height=2cm&width=14cm'']}';

 

 

View solution in original post

5 REPLIES 5
ChrisNZ
Tourmaline | Level 20

Please post the code as text using the appropriate icon, and post images as such.

Have you tried this syntax?

ODS text='^{STYLE [preimage=''c:\temp\saslogo.png?height=2cm&width=14cm'']}';

 

 

dipand
Quartz | Level 8

Thanks, i resolved 

dipand
Quartz | Level 8

HELLO, TO BE ABLE TO HAVE ALL THE COLUMNS OF THE SAME SIZE, HOW CAN YOU DO IT? I USE THIS CODE BUT EACH COLUMN TAKES ITS OWN SIZE ACCORDING TO THE LENGTH OF THE VALUE IT CONTAINS ... CAN YOU HELP ME?

 

CODE:


proc report data=ESTRAZIONE_1 ls=150 nowd missing headline spacing=1
style(REPORT)={frame=box font_face=Arial}
style(REPORT)={outputwidth=100%
cellpadding=2pt}
style(HEADER)={background=#8FBC8F}
style(COLUMN)={foreground=#000000
background=WHITE}
style(column)={cellheight=0.2in};
column BIRDSPECIES_NAME_DESCRIPTION
TO_DATE
PROTECTIONRULE_DESCR
REGIONAL_PROTECTION
;

define BIRDSPECIES_NAME_DESCRIPTION / display ;
DEFINE PROTECTIONRULE_DESCR /DISPLAY;
DEFINE REGIONAL_PROTECTION /DISPLAY;
define TO_DATE/ display ;

run;

ballardw
Super User

Something like

define BIRDSPECIES_NAME_DESCRIPTION / display style(column)=[cellwidth=.5in] ;

specifies the width for a particular column. Repeat as needed. You can use other units of measure such as CM or MM if you don't like inches.

 

If the total of the column widths exceeds your page width SAS will adjust something and may not look quite as desired.

dipand
Quartz | Level 8

Thank you for your suggestion

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

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
  • 5 replies
  • 1027 views
  • 1 like
  • 3 in conversation