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: 

ole programming

Former Member
0 Kudos
69

Hi all, i am trying for page borders property for msword,

i written code, but its not working, could any one know let me send, the code,very urgent.

GET PROPERTY OF gs_actdoc 'PageSetup' = gs_pgsetup.

GET PROPERTY OF gs_selection 'Sections(1)' = gs_sections.

SET PROPERTY OF gs_selection 'Borders' = gs_borders.

*left

GET PROPERTY OF gs_selection 'Borders' = gs_borders.

SET PROPERTY OF gs_borders 'LineStyle' = '1'.

SET PROPERTY OF gs_borders 'LineWidth' = '10'.

*right

GET PROPERTY OF gs_selection 'Borders' = gs_borders.

SET PROPERTY OF gs_borders 'LineStyle' = '2'.

SET PROPERTY OF gs_borders 'LineWidth' = '10'.

*top

GET PROPERTY OF gs_selection 'Borders' = gs_borders.

SET PROPERTY OF gs_borders 'LineStyle' = '3'.

SET PROPERTY OF gs_borders 'LineWidth' = '10'.

*bottom

GET PROPERTY OF gs_selection 'Borders' = gs_borders.

SET PROPERTY OF gs_borders 'LineStyle' = '4'.

SET PROPERTY OF gs_borders 'LineWidth' = '10'.

1 ACCEPTED SOLUTION

Lakshmant1
Active Contributor
0 Kudos
46

Hi Sudhir,

Have a look at Demo program SAPRDEMOWORD97INTEGRATION.

Hope this helps.

Thanks

Lakshman

2 REPLIES 2

Lakshmant1
Active Contributor
0 Kudos
47

Hi Sudhir,

Have a look at Demo program SAPRDEMOWORD97INTEGRATION.

Hope this helps.

Thanks

Lakshman

0 Kudos
46

hi lakshman thanks for your reply, but it is not useful for me.i seen it earlier before