I fail at finding a way to Load a String that is NOT coming from a File into a new Instance of an RichTextBox. Specifically, the Text is coming from an Excel-Sheet, that contains RTF-formatted Text.
There is the LoadFile-Method for loading Files into a RichTextBox, that is overloaded for use with Streams:
My Progress so far:
[Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") $rtb = New-Object System.Windows.Forms.RichTextBox $rtb.LoadFile($Worksheet.Cells.Item(1,9).Text, [System.Windows.Forms.RichTextBoxStreamType]::RichText)
Is this the right way to do it? Am I heading in the wrong direction?
Any Help is greatly appreciated!