P
pdev
Hi,
is there a way to write rich text from a database field to word directly
without having to use intermediate richtext box ocx to first save the text
(from DB) to this ocx and then copy from there to word like what Iam doing
here as follows ?
Do While Not rs.EOF
txtReference.TextRTF = IIf(IsNull(rs("ReferenceText")), "",
rs("ReferenceText"))
Clipboard.Clear
Clipboard.SetText txtReference.TextRTF, vbCFRTF
Word.Selection.PasteAndFormat wdFormatOriginalFormatting
rs.MoveNext
Loop
is there a way to write rich text from a database field to word directly
without having to use intermediate richtext box ocx to first save the text
(from DB) to this ocx and then copy from there to word like what Iam doing
here as follows ?
Do While Not rs.EOF
txtReference.TextRTF = IIf(IsNull(rs("ReferenceText")), "",
rs("ReferenceText"))
Clipboard.Clear
Clipboard.SetText txtReference.TextRTF, vbCFRTF
Word.Selection.PasteAndFormat wdFormatOriginalFormatting
rs.MoveNext
Loop