تكوين وثيقة Visio برمجيا
Contents
[
Hide
]
تكوين رسم Visio جديد
يتيح لك Aspose.Diagram for .NET قراءة وإنشاء Microsoft Visio الرسوم التخطيطية من داخل التطبيقات الخاصة بك ، بدون أتمتة Microsoft Office. الخطوة الأولى عند إنشاء مستندات جديدة ، هي إنشاء diagram. ثم إضافة الأشكال والموصلات لبناء diagram.
إنشاء Visio نموذج لبرمجة الرسم
يظهر الكود أدناه لإنشاء رسم Microsoft Visio جديد. يرجى ملاحظة أن الرسم الفارغ يحتوي على صفحة فارغة واحدة.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-diagram/Aspose.Diagram-for-.NET | |
// The path to the documents directory. | |
string dataDir = RunExamples.GetDataDir_LoadSaveConvert(); | |
// Initialize a Diagram class | |
Diagram diagram = new Diagram(); | |
// Save diagram in the VSDX format | |
diagram.Save(dataDir + "CreateNewVisio_out.vsdx", SaveFileFormat.VSDX); |
حجم ورق الرسم هو Letter بشكل افتراضي.