Merge two RTF files and create new sinlge RTF document. Output file will be overwritten.

Namespace:  SautinSoft
Assembly:  SautinSoft.HtmlToRtf (in SautinSoft.HtmlToRtf.dll) Version: 4.1.8.13

Syntax

      
 C#  Visual Basic 
public int MergeRtfFile(
	string rtfFilePath1,
	string rtfFilePath2,
	string singleMergedRtf
)
Public Function MergeRtfFile ( _
	rtfFilePath1 As String, _
	rtfFilePath2 As String, _
	singleMergedRtf As String _
) As Integer

Parameters

rtfFilePath1
String
Path to 1st RTF document
rtfFilePath2
String
Path to 2nd RTF document
singleMergedRtf
String
Local path to save output RTF

Return Value

0 - merged successfully
1 - can't open 1st RTF document
2 - can't open 2nd RTF document
3 - merging failed
4 - can't create output file, check the output path

Remarks

A merged RTF document will contain 1st RTF document and next 2nd RTF document by order.

See Also