SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

Опять Excel (выравнивание)



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP
View previous topic :: View next topic  
Author Message
lepricosha
Участник
Участник



Joined: 21 Apr 2008
Posts: 17

PostPosted: Tue Jan 20, 2009 5:51 pm    Post subject: Опять Excel (выравнивание) Reply with quote

Мне нужно выравнять всю мою табличку в Экселе по центру - написала такой код и никак :


Code:
FORM selec  USING    P_TOP_1
                     P_LEFT_1
                     P_TOP_2
                     P_LEFT_2.

CALL METHOD OF h_excel 'Cells' = o_cells.
  CALL METHOD OF o_cells 'Select'.
  CALL METHOD OF h_excel 'ActiveSheet' = o_sheet.

*** Start
  CALL METHOD OF o_sheet 'Cells' = o_start
    EXPORTING
    #1 = p_top_1
    #2 = p_left_1.

*** End
  CALL METHOD OF o_sheet 'Cells' = o_end
    EXPORTING
    #1 = p_top_2
    #2 = p_left_2.

  CALL METHOD OF o_sheet 'range' = o_range
    EXPORTING
    #1 = o_start
    #2 = o_end.

CALL METHOD OF o_range 'Select'.

***ВЫРАВНИВАНИЕ ***

  SET PROPERTY OF o_range 'HorizontalAlignment' =  'xlCenter'.

ENDFORM.                    " selec
Back to top
View user's profile Send private message
Alex80
Старший специалист
Старший специалист


Age: 44
Joined: 24 Jan 2008
Posts: 129

PostPosted: Tue Jan 20, 2009 6:10 pm    Post subject: Reply with quote

Может быть нужно:
Code:
 SET PROPERTY OF o_range 'HorizontalAlignment' =  -4108.
Back to top
View user's profile Send private message
lepricosha
Участник
Участник



Joined: 21 Apr 2008
Posts: 17

PostPosted: Wed Jan 21, 2009 10:36 am    Post subject: Reply with quote

Большое Вам спасибо. Вы совершенно правы - все получилось Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG.
Every effort is made to ensure content integrity. Use information on this site at your own risk.