The SAS Output Delivery System and reporting techniques

How to set the page size of an excel sheet using ods tagsets.excelxp options?

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 9
Accepted Solution

How to set the page size of an excel sheet using ods tagsets.excelxp options?

Hi ,

Can you guys please help me out how to set the page size of an excel sheet using ods tagsets.excelxp options

and can you please tell me what is the default size of a page using ods tagsets.excelxp.

ex:

If the default page size is A3 and i what it to be changed to A4...


Accepted Solutions
Solution
‎04-11-2013 11:01 AM
SAS Super FREQ
Posts: 8,647

Re: How to set the page size of an excel sheet using ods tagsets.excelxp options?

Hi:

  This worked for me. See screen shot. Then use DOC='HELP' info in log to set margins, headers, etc.

cynthia

options papersize='A4';

  

ods tagsets.excelxp file='c:\temp\want_a4.xml' style=sasweb
    options( Sheet_name = 'wantA4' Orientation = 'landscape' doc='help');

proc report data=sashelp.class(obs=5) nowd;
  column name age sex height;
run;

ods _all_ close;

View solution in original post

Attachment

All Replies
Solution
‎04-11-2013 11:01 AM
SAS Super FREQ
Posts: 8,647

Re: How to set the page size of an excel sheet using ods tagsets.excelxp options?

Hi:

  This worked for me. See screen shot. Then use DOC='HELP' info in log to set margins, headers, etc.

cynthia

options papersize='A4';

  

ods tagsets.excelxp file='c:\temp\want_a4.xml' style=sasweb
    options( Sheet_name = 'wantA4' Orientation = 'landscape' doc='help');

proc report data=sashelp.class(obs=5) nowd;
  column name age sex height;
run;

ods _all_ close;

Attachment
Occasional Contributor
Posts: 9

Re: How to set the page size of an excel sheet using ods tagsets.excelxp options?

Thanks for your help and its working..........

Contributor
Posts: 71

Re: How to set the page size of an excel sheet using ods tagsets.excelxp options?

Here at my site we set OPTIONS PAGESIZE = 'ISO A4' in the SAS autoexec program, because the default is 'LETTER', a US paper size standard.

We shouldn't have to because the locale should default it to A4 (non-US). No matter...setting it explicitly avoids problems between platform and SAS version upgrades. 8-)

Super Contributor
Posts: 367

Re: How to set the page size of an excel sheet using ods tagsets.excelxp options?

I assume you mean OPTIONS PAPERSIZE:

1    OPTIONS PAGESIZE = 'ISO A4';

             --------

             18

ERROR 18-12: Option value for SAS option PAGESIZE must be between 15 and 32767.

2    OPTIONS PAPERSIZE = 'ISO A4';

Post a Question
Discussion Stats
  • 4 replies
  • 3806 views
  • 2 likes
  • 4 in conversation