我在WORD中插入了一个表格table,然后又在table中的一个单元格中放了一个lable.
我如何在vs2003中找到我在单元格中放的lable??
我的代码:
Word.Application WordApp = new Word.ApplicationClass();
object oFilePath = System.Windows.Forms.Application.StartupPath + "\\Modlue.doc";
object oReadOnly = false;
object MissValue = System.Type.Missing;
try
{
Word.Document document = WordApp.Documents.Open(ref oFilePath,ref MissValue,
ref oReadOnly,ref MissValue,ref MissValue,ref MissValue,
ref MissValue,ref MissValue,ref MissValue,ref MissValue,
ref MissValue,ref MissValue,ref MissValue,ref MissValue,
ref MissValue,ref MissValue);
document.Activate();
Word.Table table = document.Tables[1];
Word.Cell cell = table.Cell(2,1);
//到了这里,我就不知道该怎么找了??
}
catch(System.Exception ex)
{
throw ex;
}
我如何在vs2003中找到我在单元格中放的lable??
我的代码:
Word.Application WordApp = new Word.ApplicationClass();
object oFilePath = System.Windows.Forms.Application.StartupPath + "\\Modlue.doc";
object oReadOnly = false;
object MissValue = System.Type.Missing;
try
{
Word.Document document = WordApp.Documents.Open(ref oFilePath,ref MissValue,
ref oReadOnly,ref MissValue,ref MissValue,ref MissValue,
ref MissValue,ref MissValue,ref MissValue,ref MissValue,
ref MissValue,ref MissValue,ref MissValue,ref MissValue,
ref MissValue,ref MissValue);
document.Activate();
Word.Table table = document.Tables[1];
Word.Cell cell = table.Cell(2,1);
//到了这里,我就不知道该怎么找了??
}
catch(System.Exception ex)
{
throw ex;
}
解决方案 »
- 请问如何判断一个Object是Action和Func
- Socket通信问题,接收消息和发送消息
- 求一正则表达式
- 初学者问:写入和读取文本数据并判断第X行如何实现?
- 请问怎样模拟网页中表单提交数据?
- 如何能不让dataGrid(winForm)不能多选,或怎么去掉选中的状态
- 谁能解释一下.net
- 当剪切板中的数据类型为object时,应该如何获得?
- 如何画一矩形,想WINDOWS画图那样无闪烁!!!
- 请问:如何得到ImageButton上的坐标?
- 本地一个数据库连接open后,调用的第一个sqlcommand会出现command已与datareader对象associated错误,有哪些可能会导致这种错误产生?
- 大家看看我这到底是什么问题啊,很简单就是错
LABEL做什么用