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

OLE2_OBJECT

Former Member
0 Likes
463

Hi,

I have used the OLE Object ole2_object

as an include to create an excell file.

I can successfully download the data,

But need all the rows and columns to be left aligned,

Not sure which property to set.

Please help.

Thanks and Regards

Lalitha

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
385

constants: xlCenter type i value '-4108',

xlBottom type i value '-4107',

xlLeft type i value '-4131',

xlRight type i value '-4152'.

CALL METHOD OF hExcel 'COLUMNS' = hColumn

EXPORTING #1 = p_ColNum . "column number

SET PROPERTY OF hColumn 'HorizontalAlignment' = xlLeft.

Don't forget those points.

2 REPLIES 2
Read only

Former Member
0 Likes
386

constants: xlCenter type i value '-4108',

xlBottom type i value '-4107',

xlLeft type i value '-4131',

xlRight type i value '-4152'.

CALL METHOD OF hExcel 'COLUMNS' = hColumn

EXPORTING #1 = p_ColNum . "column number

SET PROPERTY OF hColumn 'HorizontalAlignment' = xlLeft.

Don't forget those points.

Read only

0 Likes
385

Hi John,

Thank you,

This solved the problem

Appreciate it

Lalitha