LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (September 2009, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 8 Sep 2009 20:34:14 -0400
Reply-To:   Arthur Tabachneck <art297@NETSCAPE.NET>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Arthur Tabachneck <art297@NETSCAPE.NET>
Subject:   Re: Inline formatting: Getting text boxes on 2 separate lines to align
Comments:   To: Paul Miller <pjmiller_57@YAHOO.COM>
Content-Type:   text/plain; charset=ISO-8859-1

Paul,

Wouldn't using a monospace font, like courier, do what you want? E.g.,

data test; passfail = '^S={font_face=courier}Pass ^S={font_face=wingdings}o'|| '^S={font_face=courier}^-2n'||'Fail ^S={font_face=wingdings}o'; run;

ods escapechar = '^'; ods listing close; ods msoffice2k file='K:\art\test.doc' style=minimal;

proc report data=test nowindows split='|' style(report)={font_size=10pt}; column passfail; define passfail / display 'Pass/Fail' style(header) = [just=center] style(column) = [just=center cellwidth=1in]; run;

ods msoffice2k close; ods listing;

HTH, Art -------- On Tue, 8 Sep 2009 16:05:11 -0700, Paul Miller <pjmiller_57@YAHOO.COM> wrote:

>Hello Everyone, >� >I want to create a table column using Proc Report that will have a�pair of check boxes on 2 separate lines within each row. The code below produces a check box�for 'Pass' and a check box for 'Fail' in a single test row. The only thing is that I can't figure out how to get the 2 text boxes to align. Ideally, I'd like to get the 'P' in 'Pass' and the 'F' in 'Fail' to align as well.� >� >Does anyone know of a way I can do that? >� >Thanks, >� >Paul >� >data test; >passfail = 'Pass ^S={font_face=wingdings}o'||'^S={font_face=normal}^- 2n'||'Fail ^S={font_face=wingdings}o'; >run; >� >ods escapechar = '^'; >ods listing close; >ods msoffice2k file='test.doc' style=minimal; >� >proc report data=test nowindows split='|' style(report)={font_size=10pt}; >column passfail; >define passfail / display 'Pass/Fail' style(header) = [just=center] style(column) = [just=center cellwidth=1in]; >run; >� >ods msoffice2k close; >ods listing;

__________________________________________________________________ Looking for the perfect gift? Give the gift of Flickr!

http://www.flickr.com/gift/


Back to: Top of message | Previous page | Main SAS-L page