BookmarkSubscribeRSS Feed
patel1987
Calcite | Level 5

Hi,

I am lokking for this solution. Because I am really wondering to do this job done. Right now I m working on this code whichever you mentioned. So I am really appreacite that you give me this solution to Create title page in excel via XML rpeort.

Thanks.

Cynthia_sas
SAS Super FREQ
Hi:
In addition to Vince's suggestions (to simplify your stored process as a means of debugging), I want to mention that many of these system options, specified at the top of your code are inappropriate for TAGSETS.EXCELXP output:
[pre]
options orientation=landscape leftmargin=0.5in rightmargin=0.5in
topmargin=0.5in bottommargin=0.5in ls=160 ps=50 mprint symbolgen;
[/pre]

Several of these system options are LISTING-destination only options, such as LINESIZE and PAGESIZE and other options, such as ORIENTATION, and the MARGIN options only work for "paged" destinations like RTF and PDF.

When you are using TAGSETS.EXCELXP for output generation, attributes like orientation and print settings are controlled by suboptions specified like this:
[pre]
ods tagsets.excelxp ...... style=sasweb
options(suboption-list);

an example of a suboption list would be:

ods tagsets.excelxp ...... style=sasweb
options(doc='Help' embedded_titles='Yes' orientation='landscape' zoom='150');
[/pre]

ExcelXP will not use LINESIZE and PAGESIZE and will not use the system option settings for print settings.

This user-group paper discusses more of the print-related sub-options used with TAGSETS.EXCELXP:
http://www.nesug.org/proceedings/nesug08/ap/ap06.pdf

cynthia
saspert
Pyrite | Level 9
Thank you Cynthia. I am reworking a code that was built by the previous programmer. In the process, I ignored these lines which were meant for PDF destination.

I should make it a point to make a mental note of this. 🙂

Regards

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 17 replies
  • 5331 views
  • 0 likes
  • 4 in conversation