Application Development 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: 

SAP OLE excel - To Maximize the window

Former Member
0 Kudos

Hi All,

Can anybody give me the solution of maximizing the window through OLE in excel.

Thanks in advance,

Swapna

4 REPLIES 4

former_member189059
Active Contributor
0 Kudos

Hello,

Try this



DATA:   EXCEL     TYPE OLE2_OBJECT.
CREATE OBJECT EXCEL 'EXCEL.APPLICATION'.

*** other activities ***

set PROPERTY OF EXCEL 'WindowState' = 3.

0 Kudos

Hi Kris,

Thank you for a quick response. It is working fine, but... as soon as this statement is executed an excel sheet is opened before the complete execution of the report. Can you tell me how to avoid this?

Regards,

Swapna.

0 Kudos

Hi Kris,

Thank you for a quick response. It is working fine, but... as soon as this statement is executed an excel sheet is opened before the complete execution of the report. Can you tell me how to avoid this?

Regards,

Swapna.

0 Kudos

Hi,

Please use the below code for hiding the excel sheet.

SET PROPERTY OF EXCEL 'visible' = 0.

Regards,

Kiran