Is any way to uncheck File Link property in Page Style background properties?
When as store odt file with checked Link the background jpeg is no embeded into odt.
oStyle = oDoc.StyleFamilies.GetByName("PageStyles").GetByName("Standard")
oStyle.BackGraphicURL = "file:///c:\bg.jpg"
' How to uncheck Link ? This property do not work.
oStyle.BackGraphicLink = false
Last edited by TheGurkha on Mon Jan 24, 2011 10:08 pm, edited 3 times in total.
Reason:Tagged Solved, TheGurkha
Tibor Kovacs, Hungary; LO7.5.8/25.8.5.2 /Win7-10-11 x64Prof.
PortableApps: LO3.3.0-25.8.5.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
Sub EmbedImageIntoPageBackground
sURL = "file:///home/asuka/Documents/images/logo.png"
sName = "Logo"
oDoc = ThisComponent
oBitmapTable = oDoc.createInstance("com.sun.star.drawing.BitmapTable")
If NOT oBitmapTable.hasByName(sName) Then
oBitmapTable.insertByName(sName, sURL)
End If
sInternalURL = oBitmapTable.getByName(sName)
oStyleFamilies = oDoc.getStyleFamilies()
oStyleFamily = oStyleFamilies.getByName("PageStyles")
oStyle = oStyleFamily.getByName("Standard")
oStyle.BackGraphicURL = sInternalURL
End Sub
Please, edit this thread's initial post and add "[Solved]" to the subject line if your problem has been solved.
Apache OpenOffice 4-dev on Xubuntu 14.04