C#操作(获取)lotus(rtf域)对象.
来源:互联网 发布:android 数据加载动画 编辑:程序博客网 时间:2024/05/18 08:19
在程序编写过程中遇到一个比较棘手的问题就是怎样获取lotus数据库中 rtf域的对象,并修改该对象的值。 NotesItem ni= doc.GetFirstItem("log");
NotesRichTextItem nrti = null;
if (ni != null)
{
nrti = ni as NotesRichTextItem; //关键地方,得到rtf域对象,只能用as操作符来实现,强制转换会失败
//doc.RemoveItem("log1");
}
// NotesRichTextItem nrti = doc.CreateRichTextItem("log1");
string log = ReadLogPath();
//log = "E://e//DailyBuild200509//bin//DailyBuildLog2008-07-07-17-15-36.txt";
if (log != string.Empty)
{
if (File.Exists(log))
{
doc.ReplaceItemValue("log", ""); //清空rtf域对象
NotesEmbeddedObject neo= nrti.EmbedObject(EMBED_TYPE.EMBED_ATTACHMENT, string.Empty, log, "log"); //追加附件
//doc.ReplaceItemValue("log",neo);
}
}
- C#操作(获取)lotus(rtf域)对象.
- C#操作(获取)lotus(rtf域)对象
- 使用LotusScript操作Lotus Notes RTF域
- C#操作RTF文档
- C#操作RTF文档
- C#操作RTF文档
- C#操作RTF文档
- C#操作RTF文档
- C#操作word:将rtf中的ole对象通过MathType转换成MathML
- C#简单操作Lotus Notes邮件
- lotus notes表单中实现RTF域的值的拷贝
- lotus notes表单中实现RTF域的值的拷贝
- 通过LS操作RTF文本域
- JS对Lotus域的操作
- C# 获取对象超链接
- C# 获取type对象
- c#获取Graphics对象
- C#中打印Rtf文档
- 如何向线程传递对象
- java 初级程序员的练习
- java 初级程序员的练习
- java 初级程序员的练习
- 如何判断文件是否存在
- C#操作(获取)lotus(rtf域)对象.
- 如何将SCtring 转换为 const char *
- 南北桥芯片 转自百度知道
- 历代吟咏赤壁诗词选
- How to prevent resizing of views in a splitter window
- xml 製作圖片player
- 新学期新目标
- 暑期学习计划
- Oracle随机函数