On Dec 18, 2007 7:20 PM, Oliver Brinzing <[EMAIL PROTECTED]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi Matthias, > > > Sorry, but your code copies even less. Header and footer are > > completely missing in the copied page style whereas with my code > > yes you are right, i found some errors too :-( > but this should hopefully work for *spreadsheet*' documents:
Maybe, but it still won't copy the header and footer of a text document page style. The respective properties (which are of type XText) are read-only, so it's simply not possible to copy them with a getPropertyValue()/setPropertyValue() pair. It seems like I have to copy the contents of header and footer manually which is basically impossible to do 100% with a reasonable effort since there's no way to simply copy text portions. You need to analyse their type (e.g. they could be any kind of special text field) and recreate them. Matthias --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]