F
François Uldry
Hi all,
Just in case, if you want to do it someday.
Current version of RTF2 control (1.4) does support this :
Assign RTF data to the RTFText property.
Set the SelStart property to 0.
Set the SelLength property to the len of the RTF data.
Use the copy method of the RTF2 control.
Now you have properly formatted RTF data in the clipboard that you can paste
wherever you please.
Some questions :
What happens if we set the SelStart property to a value bigger that the
length of the data in the control ?
What happens really when we put a number which is bigger than the control in
the SelLength property ?
This trick, while not documented, allows anyone to automate the creation of
a Word document from within Access with RTF data.
Without using an RTF file, which was important for me.
Thanks for your attention,
*Back to lurk*
Francois
Just in case, if you want to do it someday.
Current version of RTF2 control (1.4) does support this :
Assign RTF data to the RTFText property.
Set the SelStart property to 0.
Set the SelLength property to the len of the RTF data.
Use the copy method of the RTF2 control.
Now you have properly formatted RTF data in the clipboard that you can paste
wherever you please.
Some questions :
What happens if we set the SelStart property to a value bigger that the
length of the data in the control ?
What happens really when we put a number which is bigger than the control in
the SelLength property ?
This trick, while not documented, allows anyone to automate the creation of
a Word document from within Access with RTF data.
Without using an RTF file, which was important for me.
Thanks for your attention,
*Back to lurk*
Francois