LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (January 2003, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 6 Jan 2003 11:41:01 +0100
Reply-To:   WIELKI Andre <wielki@INED.FR>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   WIELKI Andre <wielki@INED.FR>
Subject:   Re: How to output previous spaces of value of variable in pdf file ( trouble with ODS PRINTER PDF output)?
Comments:   To: Chunkui Sun <sun8699@HOME.COM>
In-Reply-To:   <xtWR9.170154$E_.55740@news02.bloor.is.net.cable.rogers.com >
Content-Type:   text/plain; charset="us-ascii"; format=flowed

-define lstr / style=[asis=yes]; now what happens to your line - in which height is your font defined because 192 positions for a line is high and more your have margins...

try first without a template or based later upon the pdf template not the printer template but remember style must go into your report code...

-does split really not work ?

find solutions for your output progressively:not all the problems together!

HTH Andre

At 13:32 05/01/2003 +0000, you wrote: >Dear all, > >I am experiencing output trouble with ODS PRINTER PDF and PROC REPORT. In >output window the output is perfect but it is not in the pdf. All the >previous blank spaces of vaules of variable are cut off in the pdf file. >e.g. variable lstr has value ' title xxxxx', in output window, >variable lstr display ' title xxxxx', but in the pdf file it >display 'title xxxxx', all the previous blank spaces are cut off. I don't >why. Could someone help me here? Any suggestions are warmly welcome. > >By the way, it seems that PS LS options in PROC REPORT have no effect on pdf >file too and page break neither. > >Helen > >options orientation=landscape papersize='ISO A4' DUPLEX NOCOLORPRINTING > LEFTMARGIN=0.25 RIGHTMARGIN=0.25 TOPMARGIN=0.25 BOTTOMMARGIN=0.25 > linesize=192 pagesize=55 > ; >%MACRO printerpdf; >PROC TEMPLATE; > DEFINE Style styles.pdflisting; > parent = styles.Printer; > replace fonts / > 'TitleFont2' = ("SAS Monospace, Courier New, Courier",7pt) > 'TitleFont' = ("SAS Monospace, Courier New, Courier",7pt) > 'StrongFont' = ("SAS Monospace, Courier New, Courier",7pt) > 'EmphasisFont' = ("SAS Monospace, Courier New, Courier",7pt) > 'FixedEmphasisFont' = ("SAS Monospace, Courier New, Courier",7pt) > 'FixedStrongFont' = ("SAS Monospace, Courier New, Courier",7pt) > 'FixedHeadingFont' = ("SAS Monospace, Courier New, Courier",7pt) > 'BatchFixedFont' = ("SAS Monospace, Courier New, Courier",7pt) > 'FixedFont' = ("SAS Monospace, Courier New, Courier",7pt) > 'headingEmphasisFont' = ("SAS Monospace, Courier New, Courier",7pt) > 'headingFont' = ("SAS Monospace, Courier New, Courier",7pt) > > 'docFont' = ("SAS Monospace, Courier New, Courier",7pt); > style header from header / > background=white; > style rowhead from header / > background=white; > style table/ > asis=on > OUTPUTWIDTH=100% > cellspacing=0pt > borderwidth=0pt > cellpadding=0pt > rules=none > frame=void > protectspecialchars=off;/*seems no effect on pdf instead of >html??*/ > > END; >RUN; >%MEND; >%printerpdf > >ods pdf file='c:\temp\temp.pdf' style=styles.pdflisting; >*ods html file='c:\temp\temp.htm'; >proc report data=junk nowd ls=192 ps=55 noheader > ;/*seems ls,ps and page break no effect on pdf file??*/ > column lstr; > define lstr/display ; /*previous spaces of lstr are cut off in pdf >file??*/ >run; >*ods html close; >ods pdf close; >ods listing;

___________ WIELKI Andre INED - Service Informatique 133 Bd Davout, 75 980 Paris Cedex 20 FRANCE Tel: 01 56 06 21 54


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