C# Sample code for generating VSSM documents. Use this code for creating VSSM files within VB.NET, Asp.NET or any .NET based application.... Add text in the page. Use Save method...= diagram.Pages[ 0 ]; // Add Text shape. Shape shape = page.AddText(...