microsoft.public.word.vba.general - Microsoft office word
Hi, i have searched and asked this, thus I think it is a general problem: I have a customized content type in sharepoint and an infopath 2007 form in which I use this content type (column as money-type) for a document information panel. When I now go and take the quick part with the money field in my word 2007 document, the field loses all formatting which it has a) in sharepoint and b) in the infopath form. I cannot bring it back to the right money formatting. Example: Having '10,00 $' becomes a '10,000000000000'. It would be great if word 2007 would not lose the formatting of in this case money-fields. best regards, Heyko
I'm investigating the potential to use Content Controls and bound custom XML for a server side document generation solution. Is it possible to use the contents of a Content Control (i.e. data from the bound custom XML) to condition formatting? e.g. how do I conditionally hide a paragraph if Content Control 'MyText' = "ABC"?
"Parul" < XXXX@XXXXX.COM > wrote in message news:161c01c3847f$b7b8cb00$ XXXX@XXXXX.COM ... > There is some formatted text I need to display in a text > box. It appears very unreadable when seen in a regular > text box control. However when copied into a word document > it is very readable. > Any pointers on if I need to change a setting for the text > box control. Will using the rich text box help fix this. > Yes, it sounds like you need to use a RichTextBox. The standard textbox doesn't support formatting. Mike
In a userdefined dialogbox there are textboxs. Textbox with one linje is working fine, but not with multilines. I first clean-up the text in the mulitiline textbox and replace vbCr with vbCrLf: Dim objCC As ContentControls Dim txt1 As String Dim txt2 As String Dim posTab As Integer txt1 = Trim(.TextBoxADRESS.Text) txt2 = "" posTab = 1 Do While 0 < posTab posTab = InStr(1, txt1, vbCr) If 0 < posTab Then txt2 = txt2 & Left(txt1, posTab - 1) & vbCrLf txt1 = Mid(txt1, posTab + 2) Else txt2 = txt2 & txt1 End If Loop And then the text is inserting in a text content control: Set objCC = ActiveDocument.SelectContentControlsByTag("Adress") objCC(1).Range.Text = txt2 The error is in the last line What do I wrong? (Thanks for the answer)