I am trying to replicate the code listed in the examples fro importing a file to a richtextbox, like
Dim document As RadDocument = Nothing
Dim provider As IDocumentFormatProvider = New DocxFormatProvider()
Dim openDialog As New OpenFileDialog()
openDialog.Filter = "Documents|*.docx"
openDialog.Multiselect = False
Dim dialogResult As DialogResult = openDialog.ShowDialog()
If dialogResult = System.Windows.Forms.DialogResult.OK Then
Using stream As New FileStream(openDialog.FileName, FileMode.Open)
document = provider.Import(stream)
End Using
End If
Return document
I am unable to find what are the correct namespaces for RadDocument and IDocumentFormatProvider,
I have tried
imports telerik.wincontrols
imports telerik.wincontrols.ui
etc, but I am kind of lost,
Can you please provide some help?
Dim document As RadDocument = Nothing
Dim provider As IDocumentFormatProvider = New DocxFormatProvider()
Dim openDialog As New OpenFileDialog()
openDialog.Filter = "Documents|*.docx"
openDialog.Multiselect = False
Dim dialogResult As DialogResult = openDialog.ShowDialog()
If dialogResult = System.Windows.Forms.DialogResult.OK Then
Using stream As New FileStream(openDialog.FileName, FileMode.Open)
document = provider.Import(stream)
End Using
End If
Return document
I am unable to find what are the correct namespaces for RadDocument and IDocumentFormatProvider,
I have tried
imports telerik.wincontrols
imports telerik.wincontrols.ui
etc, but I am kind of lost,
Can you please provide some help?