回复 3楼mindrayguowei的帖子
按照你的描述我修改了代码->保存为 rtf文件再打开,并没有重现这个问题:
- private void Form1_Load(object sender, EventArgs e)
- {
- TXTextControl.Image img = new TXTextControl.Image("..\\..\\Balloon.bmp", 1);
- TXTextControl.Image img1 = new TXTextControl.Image("..\\..\\Penguin.bmp", 1);
- this.textControl1.Save("..\\..\\test.rtf", TXTextControl.StreamType.RichTextFormat);
- this.textControl1.Load("..\\..\\test.rtf", TXTextControl.StreamType.RichTextFormat);
- this.textControl1.Images.Add(img,0);
- this.textControl1.Images.Add(img1,1);
- this.textControl1.ImageDeleted += new TXTextControl.ImageEventHandler(textControl1_ImageDeleted);
- foreach (TXTextControl.Table tb in this.textControl1.Tables)
- {
- MessageBox.Show(tb.ID.ToString());
- }
- }
- void textControl1_ImageDeleted(object sender, TXTextControl.ImageEventArgs e)
- {
- foreach (TXTextControl.Image img in this.textControl1.Images)
- {
- if (img.FileName==e.Image.FileName)
- {
- MessageBox.Show("delete image`s name is "+e.Image.FileName);
- }
- }
- }
复制代码
能否请你发送个demo到论坛用于重现问题? |