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 (January 2008, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 2 Jan 2008 10:36:14 -0800
Reply-To:   Jack Hamilton <jfh@STANFORDALUMNI.ORG>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Jack Hamilton <jfh@STANFORDALUMNI.ORG>
Subject:   Re: ODS oo question?
Comments:   To: Randy Herbison <RandyHerbison@WESTAT.COM>, mpajoh@ODOT.ORG
In-Reply-To:   <668936B243AC5F4DB61EAE1878E9302708D4070D@mailbe1.westat.com>
Content-Type:   text/plain; charset="ISO-8859-1"

I think the original poster wanted the value in a *single* cell to be partly bold and partly not bold.

That can be done using in-line formatting:

===== (tested code) ods html; ods listing close;

ods escapechar='\';

data _null_;

dcl odsout odsMan();

projects = 'ab713(d)';

odsMan.table_start(); odsMan.row_start(); odsMan.format_cell(text: '\S={font_weight=bold}Project Number:\S={} ' || projects); odsMan.row_end(); odsMan.table_end();

odsMan.delete();

run;

ods _all_ close; ods listing; =====

A bit cumbersome, but do-able.

On Mon, 31 Dec 2007 15:02:29 -0500, "Randy Herbison" <RandyHerbison@WESTAT.COM> said: > Masoud, > > Try using separate cells for the label and value and use a font weight > override for the label cell: > > ods listing close; > ods pdf file='c:\temp\test.pdf'; > > title 'Two cells are better than one!'; > > data _null_; > projects='ab713(d)'; > dcl odsout odsMan(); > odsMan.table_start(overrides: "rules=none"); > odsMan.row_start(); > odsMan.format_cell(text: 'Project Number:', overrides: > "font_weight=bold"); > odsMan.format_cell(text: projects); > odsMan.row_end(); > odsMan.table_end(); > odsMan.delete(); > run; > > ods pdf close; > ods listing; > > title; > > -Randy > > -----Original Message----- > From: owner-sas-l@listserv.uga.edu [mailto:owner-sas-l@listserv.uga.edu] > On Behalf Of mpajoh@ODOT.ORG > Sent: Friday, December 28, 2007 11:28 AM > To: SAS-L@LISTSERV.UGA.EDU > Subject: ODS oo question? > > > This: > Bid.row_start(); > Bid.format_cell(text: "Project Number: " || > trim(Projects)); > Bid.row_end(); > > Writes: > Project Number: ab713(d) > > How would I rewrite the above for the "Project Number:" to be in bold > letters while the "ab713(d)" is not? > > thanks, > Masoud

-- Jack Hamilton Sacramento, California jfh@alumni.stanford.org


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