Click or drag to resize

HtmlToRtfMergeRtfFile(String, String, String) Method

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

Namespace: SautinSoft
Assembly: SautinSoft.HtmlToRtf (in SautinSoft.HtmlToRtf.dll) Version: 2023.12.6
Syntax
public int MergeRtfFile(
	string rtfFilePath1,
	string rtfFilePath2,
	string singleMergedRtf
)

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

Int32
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