Converts stream of bytes 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(
	byte[] inputBytes,
	string outputFileName
)
Public Function ConvertStringToFile ( _
	inputBytes As Byte(), _
	outputFileName As String _
) As Integer

Parameters

inputBytes
array< Byte >[]()[]
Stream of bytes with Text/RTF/DOCX document
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