Usage Note 24222: Why am I getting a new page after the BODY's PREIMAGE when STARTPAGE=NO in ODS PRINTER?
Unfortunately, ODS forces a new page after the BODY's PREIMAGE,
even when STARTPAGE=NO. This is a bug and it will be fixed in SAS 9.2.
Here is an example of the code that does not work:
proc template;
define style styles.preimage;
parent=styles.printer;
replace Body from Document /
preimage="mini_lvm_o.jpg";
end;
run;
ods pdf file="ty.pdf" style=preimage startpage=no;
proc print data=sashelp.class(obs=6); run;
proc print data=sashelp.class(obs=6); run;
ods pdf close;
And here is the workaround:
ods escapechar="^";
ods pdf file="ty.pdf" startpage=no;
ods pdf text="^S={just=c preimage='mini_lvm_o.jpg'}^m";
proc print data=sashelp.class(obs=6); run;
proc print data=sashelp.class(obs=6); run;
ods pdf close;
Operating System and Release Information
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
| Type: | Usage Note |
| Priority: | low |
| Topic: | SAS Reference ==> ODS (Output Delivery System) System Administration ==> Printing
|
| Date Modified: | 2005-03-16 15:17:40 |
| Date Created: | 2005-02-09 15:25:53 |