OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Replacing a field in the header or footer in a document

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Writer
View previous topic :: View next topic  
Author Message
bertisimon
Newbie
Newbie


Joined: 05 May 2009
Posts: 1

PostPosted: Tue May 05, 2009 5:54 am    Post subject: Replacing a field in the header or footer in a document Reply with quote

Hi!
I'm using OO 3.0 on Vista and have to open a MS Word document via C# (see below).

[code]
object usm = Activator.CreateInstance(Type.GetTypeFromProgID("com.sun.star.ServiceManager"));
object desk = Invoke(usm, "createInstance", "com.sun.star.frame.Desktop");
object writeDoc = Invoke(desk, "loadComponentFromURL", PathConverter(@"D:\Projekte\OpenOfficeTest\b030101.doc"), "_blank", 0, new object[0]);
[/code]

So far, the document is open and well shown, the document contains a header and a footer with fields defined in MS Word. My question is how to replace the fields with informations generated during runtime in the header or footer programmaticly?

Thank you in advance for your time!

Berti
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Writer All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group