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

need to make text bold in using vb.net

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


Joined: 10 Feb 2006
Posts: 19

PostPosted: Wed Mar 08, 2006 8:48 am    Post subject: need to make text bold in using vb.net Reply with quote

hi i have the following code in vb.net

Dim oRD, oDesk, oDoc, oSM As Object 'OOo objects
Dim strBkName, breakDesc, OPayDesc As String

oSM = CreateObject("com.sun.star.ServiceManager")
oDesk = oSM.createInstance("com.sun.star.frame.Desktop")
oDoc = oDesk.loadComponentFromURL("file://server/Company%20Programs/contract/docs/contract.odt", "_blank", 0, New unoidl.com.sun.star.beans.PropertyValue(0) {})


oRD = oDoc.createReplaceDescriptor
oRD.searchRegularExpression = True



'find/replace clients address
oRD.setSearchString("<custaddress>")
oRD.setReplaceString(txtClientAddress.Text)
oDoc.replaceall(oRD)

'find/replace clients name
oRD.setSearchString("<clientname>")
oRD.setReplaceString(txtClientName.Text)
oDoc.replaceall(oRD)

'find/replace users name/position
oRD.setSearchString("<name>")
oRD.setReplaceString(txtUname.Text)
oDoc.replaceall(oRD)

'find/replace specification text
oRD.setSearchString("<specificationtext>")
oRD.setReplaceString("hi\nfg")
oDoc.replaceall(oRD)


how would i make text bold which i insert and also add bullets?
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 Mar 08, 2006 9:24 am    Post subject: Reply with quote

Sorry, I have no answer.
please post your questions in "Macro and API forum". "Code snippets" forum is for working code.
_________________
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
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