fluxpunk General User

Joined: 10 Feb 2006 Posts: 19
|
Posted: Wed Mar 08, 2006 8:48 am Post subject: need to make text bold in using vb.net |
|
|
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? |
|