 | OO-Snippets: Document BackgroundCommons| Keywords | document background, background, background color |
|---|
| Language | ooRexx |
|---|
| Application | Writer |
|---|
| Authors | Matthias Prem (initial)
|
|---|
| Supported Versions | 2.0.x |
|---|
| Supported OS | All |
|---|
| Question | How can I change the document's background color?
|
|---|
| Answer | |
|---|
xScriptContext=uno.getScriptContext()
oDoc=xScriptContext~getDocument
xFamiliesSupplier=oDoc~XStyleFamiliesSupplier
xStyle=xFamiliesSupplier~getStyleFamilies~getByName("PageStyles")~XNameContainer
xBackground = xStyle~getByName("Standard")~xPropertySet
xBackground~setPropertyValue("BackColor", box("int", "123456"x ~c2d))
::requires UNO.CLS
|
Changelog| Date | User | Modification |
|---|
| 2006-07-10 | matthiasprem | Initial version |
|