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

add table using ole

Former Member
0 Likes
432

Hello,

How to add table and border using ole in excel sheet?

Thanks,

Regards,

Neelambari

3 REPLIES 3
Read only

former_member229729
Active Participant
0 Likes
400

Hello,

There is a Complete & Very good documentation by SAP available on this URL. Please read this.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/204d1bb8-489d-2910-d0b5-cdddb322...

Hope your query get solved.

Thanks and regards,

Ramani N

Read only

Former Member
0 Likes
400

Hi Neelambari,

U need to select the required cells using .....

CALL METHOD OF p_gs_excel 'Range' = l_gs_s_cells
    EXPORTING
    #1 = p_sel_cells.
  CALL METHOD OF l_gs_s_cells 'Select' .

here p_sel_cells. equals to A1:A1,A2:C2,A7:A7,A8:H8,A13:A13.

or u can give A1:C3.

Now drawing the box.....

DATA: l_gs_borders TYPE ole2_object.
GET PROPERTY OF l_gs_s_cells 'Borders' = l_gs_borders.
SET PROPERTY OF l_gs_borders 'LineStyle' = 1.

u can change the value 1 to other value for drawing different kind of box....

Amitava

Read only

0 Likes
400

Thanks