Hello Thomas!
Am 23.11.2007 17:13 schrieb Thomas Krumbein:
> I do have some strange problems using insertDocument. Maybe someone can
> give me some advise?
>
> Situation:
> I do have two writer Documents (lets call them "MasterDoc" and "Doc2").
> In all documents my Standard charFont ist "Arial", the properties of OOo
> even shows "Arial" as a standard font for all selections.
>
> Now, I am using insertDocumentFromURL() to insert Doc2 in my
> MasterDocument. It works fine - but afterwards the Paragraph-style
> "Standard" of my MasterDoc is changes and charFont is now "Times New
> Roman"????
It could be, that the paragraph style "Normal" in the original document
is not changed to "Arial".
So if you have no text in your "MasterDoc" (so no paragraph style is
used) writer overwrites "Default" with the formats of the imported
"Normal" paragraph style.
So this problem could be solved if you insert a (empty) paragraph and
delete it after the import. At the same way i worked around the
described "Default" problem in the former message. I insert a paragraph
at the end of the document, insert the new document at the paragraph
before the last paragraph and delete the last paragraph after import.
Greetings
Mathias
--
·-· cut here ·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·->8·-·
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]