Hi All,
I need to read .rtf file and process those records. Let me know how to read those .rtf files in uipath.
Thanks in advance
Regards,
Vivek Haldorai
Hi All,
I need to read .rtf file and process those records. Let me know how to read those .rtf files in uipath.
Thanks in advance
Regards,
Vivek Haldorai
Hello, did you find a solution? I am facing the same.
Thanks
Here are several workarounds: What can I use to read RTF file?
There are also various nuget packages (NuGet Gallery | Packages matching rtf) that convert .rtf to different formats which can then be worked with a little more easily.
I used Invoke Power Shell avtivity and this script:
[void] [System.Reflection.Assembly]::LoadWithPartialName(“System.Windows.Forms”)
$Path = ‘C:\test.rtf’
$Rtb = New-Object -TypeName System.Windows.Forms.RichTextBox
$Rtb.Rtf = Get-Content $Path -Raw
$Rtb.Text | Out-File -FilePath ‘C:\test.txt’