C# Sample code for generating VDX documents. Use this code for creating VDX files within VB.NET, Asp.NET or any .NET based application....the first page of the diagram. Add text in the page. Use Save...the first page of the diagram. Page page = diagram.Pages[ 0 ]; //...