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

How to update an HTML file from a doc file with a macro ?

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
reav3r
Newbie
Newbie


Joined: 08 Feb 2006
Posts: 4

PostPosted: Wed Feb 08, 2006 2:34 am    Post subject: How to update an HTML file from a doc file with a macro ? Reply with quote

Hello everybody,

I'm new to oOo programming and I was wondering if it was possible to develop a macro that will open an HTML file, seek to a certain part (like a bookmark or stuff like that) and update this part with the content of the doc file from where the macro execution will be launched ?

Right now, I only manage to seek and replace the part I want, but not with the content of another file ...

Thanks for help Smile
Back to top
View user's profile Send private message
SergeM
Super User
Super User


Joined: 09 Sep 2003
Posts: 3211
Location: Troyes France

PostPosted: Wed Feb 08, 2006 10:33 am    Post subject: Reply with quote

Because OOo can open HTML file and doc file it is effectively possible to do that.
_________________
Linux & Windows OOo3.0
UNO & C++ : WIKI
http://wiki.services.openoffice.org/wiki/Using_Cpp_with_the_OOo_SDK
In French
http://wiki.services.openoffice.org/wiki/Documentation/FR/Cpp_Guide
Back to top
View user's profile Send private message Visit poster's website
reav3r
Newbie
Newbie


Joined: 08 Feb 2006
Posts: 4

PostPosted: Fri Feb 10, 2006 2:02 am    Post subject: Reply with quote

I can see this in the api documentation about loadComponentFromURL :

Parameter TargetFrameName
specifies the name of the frame to view the document in


what if I only want to load the document without viewing it ?
My aim is to load the HTML and modify it, I don't want oOo to show it to the macro user ...

Any help ?
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 Macros and API 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