Load() public method

load rtf
public Load ( RTFReader reader ) : void
reader RTFReader RTF text reader
return void
Esempio n. 1
0
        /// <summary>
        /// test
        /// </summary>
        internal static void Test()
        {
            var doc = new RTFRawDocument();

            doc.Load(@"d:\abc.rtf");
            //System.Console.WriteLine( doc.Text );
            var writer = new RTFWriter(@"d:\a.rtf");

            writer.Indent = true;
            doc.Write(writer);
            writer.Close();
        }
 /// <summary>
 /// test 
 /// </summary>
 internal static void Test()
 {
     RTFRawDocument doc = new RTFRawDocument();
     doc.Load(@"d:\abc.rtf");
     //System.Console.WriteLine( doc.Text );
     RTFWriter writer = new RTFWriter(@"d:\a.rtf");
     writer.Indent = true ;
     doc.Write( writer );
     writer.Close();
 }