Date: Sun, 5 Jan 2003 13:32:13 GMT
Reply-To: Chunkui Sun <sun8699@HOME.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Chunkui Sun <sun8699@HOME.COM>
Subject: How to output previous spaces of value of variable in pdf file (
trouble with ODS PRINTER PDF output)?
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;
|