撰写文件摘要

VSTO

下面是写Visio文档摘要的代码:

  Application.ActiveDocument.Creator = "Zeeshan";

 Application.ActiveDocument.Company = "Aspose";

 Application.ActiveDocument.Category = "Drawing 2D";

 Application.ActiveDocument.Manager = "Self";

 Application.ActiveDocument.Title = "Zeeshan";

 Application.ActiveDocument.Subject = "Visio Diagram";

Aspose.Diagram

写作 Microsoft Visio 文档摘要信息

文档属性类公开了一些属性来设置或获取 Microsoft Visio diagram 的摘要信息。 Aspose.Diagram for .NET 可以更新图纸汇总信息,然后将图纸文件写回VDX。

要更新现有 VDX 或 VSD 文件的图纸摘要信息:

  1. 创建一个实例Diagram班级。
  2. 设置 Diagram.DocumentProps 公开的属性以定义 Visio 绘图文件的摘要信息。
  3. 调用Diagram类的Save方法将Visio绘图文件写入VDX。

查看摘要信息:

  1. 在Microsoft Visio打开输出VDX文件。
  2. 选择信息来自文件菜单。
  //Call the diagram constructor to load diagram from a VDX file

 Diagram vdxDiagram = new Diagram("Drawing1.vdx");

 //Set some summary information about the diagram

 vdxDiagram.DocumentProps.Creator = "Ijaz";

 vdxDiagram.DocumentProps.Company = "Aspose";

 vdxDiagram.DocumentProps.Category = "Drawing 2D";

 vdxDiagram.DocumentProps.Manager = "Sergey Polshkov";

 vdxDiagram.DocumentProps.Title = "Aspose Title";

 vdxDiagram.DocumentProps.TimeCreated = DateTime.Now;

 vdxDiagram.DocumentProps.Subject = "Visio Diagram";

 vdxDiagram.DocumentProps.Template = "Aspose Template";

 //Write the updated file to the disk in VDX file format

 vdxDiagram.Save("output.vdx", SaveFileFormat.VDX);

下载示例代码

下载运行代码