Try the fastest and simplest way to install ONLYOFFICE

How to center to page rather than margins

Integration questions/issues

How to center to page rather than margins

Postby robertotomas » Fri Jan 05, 2018 4:51 pm

I know to use `oParagraph.SetJc("center")` to get a centered paragraph for insertion .. but how can I insert , for example a banner header, centered across the entire top of the page?

The bounds I know that we need are to support 1inch left and right margins, and to center the content.
robertotomas
 
Posts: 24
Joined: Thu Aug 31, 2017 4:05 pm

Re: How to center to page rather than margins

Postby Maxim » Tue Jan 09, 2018 7:37 am

Hello robertotomas!
I suppose it will help you!
Maxim
 
Posts: 1576
Joined: Tue Oct 11, 2016 2:34 pm


Return to API

Who is online

Users browsing this forum: No registered users and 1 guest

cron