TX保存成功后二次加载RTF文件出错,求助
我成功将RTF文件转换为二进制保存到数据库后,二次调出转换为RTF文件,加载出现如下提示,求助。回复 1楼zjl880的帖子
你好,我这边没有重现问题,能否提供 Demo调试?
TX保存成功后二次加载RTF文件出错,求助
1、代码如下/// <summary>
/// 删除内容记录
/// </summary>
/// <param name="empID">医生编号</param>
/// <param name="empName">医生姓名</param>
public void MedicalContentDel(int empID, string empName)
{
if (this.textControl.Selection.Length == 0x00)
return;
int currentLine = this.textControl.InputPosition.Line;
int currentColumn = this.textControl.InputPosition.Column;
int currentPage = this.textControl.InputPosition.Page;
int start = this.textControl.Selection.Start;
int length = this.textControl.Selection.Length;
this.textControl.Selection.Strikeout = true;
this.textControl.Selection.ForeColor = Color.Red;
//痕迹保留,记录删除内容
DeleteField delTextField = new DeleteField(this.textControl, this.textControl.Selection.Text, empID.ToString(), empName);
this.textControl.Selection.Start = start;
this.textControl.Selection.Length = length;
this.textControl.Selection.ForeColor = Color.Black;
this.textControl.Selection.Text = string.Empty;
if (currentColumn == this.textControl.Lines.Length || currentColumn == this.textControl.Lines.Length - 1)
{
if (currentLine == this.textControl.Lines.Count)
{
this.textControl.InputPosition = new TXTextControl.InputPosition(currentPage, currentLine, currentColumn);
}
else
{
this.textControl.InputPosition = new TXTextControl.InputPosition(currentPage, currentLine + 1, 0);
}
}
else
{
this.textControl.InputPosition = new TXTextControl.InputPosition(currentPage, currentLine, currentColumn + 1);
}
}
2、执行以上代码效果如下:
当手工将光标移动到“吸”后边保存为RTF文件,二次加载后如下:
求助,谢谢 我将这行代码: this.textControl.InputPosition = new TXTextControl.InputPosition(currentPage, currentLine, currentColumn + 1);
改为: this.textControl.InputPosition = new TXTextControl.InputPosition(currentPage, currentLine, currentColumn );
出现第一个问题,UnKnown Format. 回复 4楼zjl880的帖子
你好,我使用以上代码运行正常,楼主能否提供调试 Demo?
页:
[1]