如题。
解决方案 »
- 求一正则表达式
- web调用OCX控件的初始化方法,需要父窗口句柄?
- 使用usercontrol,为什么不支持Properties.Resource的资源提取方法?
- 求助啊!兄弟们来帮帮忙100分!
- 怎样使用正则表达式判断字符串必须为[a-z][A-Z][0-9][_][中文]
- 请问这是什么问题???高手给指点一下.
- 免费空间支持ASP.NET的免费空间 不限制上传文件大小
- 怎么把一台电脑上的数据库或表拷贝到另一台电脑的SQL server中(有连内部网)
- 谢谢你的帮助~~~~~~~~~~~~~~急 求助 送分
- 在form 的activated event 里面使用messagebox的问题
- NET中如何做分布式的程序,不是WEB的 ,就好象DELPHI的三层分布式,
- 加密的问题
using System;
using Visio;namespace TestVisio
{
class Class1
{
[STAThread]
static void Main(string[] args)
{
ApplicationClass visio = new ApplicationClass();
visio.Documents.Open(@"c:\绘图1.vsd");
IVPage p = visio.ActivePage;
IVShapes ss = p.Shapes; foreach (IVShape s in ss)
{
short CustomPropertyCount = s.get_RowCount(243);
if (CustomPropertyCount > 0)
{
Console.WriteLine("Shape Index:{0}", s.Index);
for (short i=0; i<CustomPropertyCount; i++)
Console.WriteLine("\tLabel:{0} Value:{1}", s.get_CellsSRC(243, i, 2).Formula, s.get_CellsSRC(243, i, 0).Formula);
}
}
visio.ActivePage.Document.Close();
visio.Quit();
}
}
}
还有,写CustomProperties的时候怎么弄呢?我的msn:[email protected],加我啊,有好多问题请教呢。
s.AddSection((short)tagVisSectionIndices.visSectionProp);
short rowIndex = s.AddRow((short)tagVisSectionIndices.visSectionProp, (short)tagVisRowIndices.visRowLast, 0);
s.get_CellsSRC((short)tagVisSectionIndices.visSectionProp, rowIndex, 2).Formula = "";
s.get_CellsSRC((short)tagVisSectionIndices.visSectionProp, rowIndex, 2).Formula = "\"ABC\"";