According to all I've seen across the web, to convert .RTF data to plain text data I should use the plaintext function.
On reading in a .RTF file the Rich Text formatted text displays a perfect rendition. Attempting the plaintext conversion results in a display of jibberish.
I'm using Access 2016 on Windows 10
On reading in a .RTF file the Rich Text formatted text displays a perfect rendition. Attempting the plaintext conversion results in a display of jibberish.
I'm using Access 2016 on Windows 10
Code:
RTFstring=ts.readall 'read the RTF string
tbDisplayRTFstring.format= acTextFormatHTMLRichText 'set text box formatting to RichText
tbDisplayRTFstring.format.value=RTFstring ' displays RTF formatted data 'Display the Rich text data
tbDisplayTXTstring.format = acTextFormatPlain 'set the plain text format
tbDisplayTXTstring.value = plaintext(RTFstring) 'displays rubbish should be plain text.