phill.oflynn
New member
- Local time
- Today, 03:35
- Joined
- May 23, 2019
- Messages
- 1
I need to figure out a way to insert an RTF field into word table.
I have googled high and low. found a lot of info bu there seems to be nothing conclusive.
Using the "dataobject" seems to insert plain text including the HTML tags rather than formatted text. No matter what I do.
The closest I've come is to manually copy the "RTF" (which really isn't RTF these days but HTML) and use.
to paste. into word. This bit works.
So it would seem that the trick is to properly put the data onto the clipboard. So I have found a few web pages on using the windows api in a module.
However, I'm not sure how to register the datatype owing to the fact that in later versions of access, RTF uses HTML but isn't really a HTML format.
Appreciate the help. Thanks
Phill
I have googled high and low. found a lot of info bu there seems to be nothing conclusive.
Using the "dataobject" seems to insert plain text including the HTML tags rather than formatted text. No matter what I do.
The closest I've come is to manually copy the "RTF" (which really isn't RTF these days but HTML) and use.
Code:
table.Cell(table.Rows.Count - 2, 2).Range.PasteSpecial , , , , WdPasteDataType.wdPasteRTF
So it would seem that the trick is to properly put the data onto the clipboard. So I have found a few web pages on using the windows api in a module.
However, I'm not sure how to register the datatype owing to the fact that in later versions of access, RTF uses HTML but isn't really a HTML format.
Appreciate the help. Thanks
Phill