T
TriXteR
I am trying to display some HTML body in a richtextbox. Therefor I convert
the *.html file to *.rtf using the wordobject
------------------------------------------------------------------------------
'body html is a plain html file
'savertf is the path & file to save to
Dim savertf As String = sLocalpath & lbl_ourref.Text & ".rtf"
Dim objWord As New Word.Application
With objWord
.DisplayAlerts = Word.WdAlertLevel.wdAlertsNone
.Documents.Open(Bodyhtml) 'savehtm)
.ActiveDocument.SaveAs(savertf, 6)
.ActiveDocument.Close()
.Quit()
end with
---------------------------------------------------------------------------------
I've noticed that when using Word(2003) to save .html as .rtf-file Word
sometimes includes the images in the .rtf-file, but other times it does not.
I've tested this with 'www.google.com' (images are included) and
'www.forkyou.nl' (images are not included)
The actions taken are identical in Word('Open File'--'Save File As (RTF)'
Does anyone know the reason why this difference occurs, or a way to always
include the images in the RTF??
the *.html file to *.rtf using the wordobject
------------------------------------------------------------------------------
'body html is a plain html file
'savertf is the path & file to save to
Dim savertf As String = sLocalpath & lbl_ourref.Text & ".rtf"
Dim objWord As New Word.Application
With objWord
.DisplayAlerts = Word.WdAlertLevel.wdAlertsNone
.Documents.Open(Bodyhtml) 'savehtm)
.ActiveDocument.SaveAs(savertf, 6)
.ActiveDocument.Close()
.Quit()
end with
---------------------------------------------------------------------------------
I've noticed that when using Word(2003) to save .html as .rtf-file Word
sometimes includes the images in the .rtf-file, but other times it does not.
I've tested this with 'www.google.com' (images are included) and
'www.forkyou.nl' (images are not included)
The actions taken are identical in Word('Open File'--'Save File As (RTF)'
Does anyone know the reason why this difference occurs, or a way to always
include the images in the RTF??