OLE from VB6 in C#
Visual Basic
1
Posts
1
Posters
0
Views
1
Watching
-
How can I extract a content from the OLE object as Text in C#? I have create in VB6: ... OLE1.object.saveas "c:\tryFile.rtf" ... and after that I started the Automation like Set wordAutomation = CreateObject("Word.Application") With wordAutomation .Visible = False .Application.Documents.Open ("c:\tryFile.rtf") .Application.ActiveDocument.Select .Application.ActiveDocument.content.Copy 'now is in Clipboard as Text End With ... How can I transform and implement this Code in C#? Best regards