Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Excel file generation

Former Member
0 Likes
462

Hi,

I had an requirement in which i need to generate an excel file with multiple sheet in the presentation server.

I can succssfully create the excel file through the program using OLE concept. But now i am facing an issue,

if the number of worksheets is excel is set as '2' and my program is generating '4' sheets, in excel it is showing only '2'.

Is there anyway this can be controlled through ABAP program?

For eg. if there is 5 worksheet to be generatedand the setting in the worksheet is to show only 2 worksheet, then also my program need to

generate an excel with five sheets.

Thanks,

Arun.

2 REPLIES 2
Read only

Former Member
0 Likes
410

Hi Arun,

How is the setting -- to show only 2 worksheet in the worksheet, done ?

You should keep calling ADD WORKSHEET ,and give a name to worksheet, and paste data.

I couldnt understand how it is restricting you for only 2 sheets.

Thanks,

Nisha Vengal.

Read only

0 Likes
410

Setting is not done in the program,but in excel,path is tools-options-general-Sheets in new workbook.

If we put here 2 only 2 worksheet will display.

Anyway thanks for your time i managed to solve it out by including the following code.

SET PROPERTY OF APPLICATION 'SheetsInNewWorkbook' = 10.