Converts MemoryStream object with Text/RTF/DOCX into Text/HTML/XHTML file. Output file will be overwritten.

Namespace:  SautinSoft
Assembly:  SautinSoft.RtfToHtml (in SautinSoft.RtfToHtml.dll) Version: 6.2.2.1

Syntax

      
 C#  Visual Basic 
public int ConvertStringToFile(
	MemoryStream inputStream,
	string outputFileName
)
Public Function ConvertStringToFile ( _
	inputStream As MemoryStream, _
	outputFileName As String _
) As Integer

Parameters

inputStream
MemoryStream
Object of MemoryStream class with Text/RTF
outputFileName
String
Path to output file

Return Value

0 - converting succesfully
2 - can't create output file, check the output path
3 - converting failed

Remarks

See Also