public void Close()
{
if(this.intGroupLevel > 0 )
throw new System.Exception("Some group does not finish");
if( myWriter != null )
{
myWriter.Close();
myWriter = null;
}
}
/// <summary> /// Test generate rtf file /// after execute this function you can open c:\a.rtf /// </summary> internal static void TestWriteFile( ) { RTFWriter w = new RTFWriter("c:\\a.rtf"); TestBuildRTF(w); w.Close(); System.Windows.Forms.MessageBox.Show("OK , you can open file c:\\a.rtf 了."); }