public static void Run() { try { // ExStart:ExportToSWFWithoutViewer // The path to the documents directory. string dataDir = RunExamples.GetDataDir_Diagrams(); // Instantiate Diagram Object and open VSD file Diagram diagram = new Diagram(dataDir + "ExportToSWFWithoutViewer.vsd"); // Instantiate the Save Options SWFSaveOptions options = new SWFSaveOptions(); // Set Save format as SWF options.SaveFormat = SaveFileFormat.SWF; // Exclude the embedded viewer options.ViewerIncluded = false; // Save the resultant SWF file diagram.Save(dataDir + "ExportToSWFWithoutViewer_out.swf", SaveFileFormat.SWF); // ExEnd:ExportToSWFWithoutViewer } catch (System.Exception ex) { System.Console.WriteLine(ex.Message + "\nThis example will only work if you apply a valid Aspose License. You can purchase full license or get 30 day temporary license from http:// Www.aspose.com/purchase/default.aspx."); } }
public static void Run() { //ExStart:UseSWFSaveOptions // The path to the documents directory. string dataDir = RunExamples.GetDataDir_LoadSaveConvert(); // Call the diagram constructor to load diagram from a VSD file Diagram diagram = new Diagram(dataDir + "Drawing1.vsdx"); SWFSaveOptions options = new SWFSaveOptions(); // Summary: // value or the font is not installed locally, they may appear as a block, // set the DefaultFont such as MingLiu or MS Gothic to show these // characters. options.DefaultFont = "MS Gothic"; // sets the number of pages to render in SWF. options.PageCount = 2; // sets the 0-based index of the first page to render. Default is 0. options.PageIndex = 0; // discard saving background pages of the Visio diagram options.SaveForegroundPagesOnly = true; // specify whether the generated SWF document should include the integrated document viewer or not. options.ViewerIncluded = true; diagram.Save(dataDir + "UseSWFSaveOptions_Out.swf", options); //ExEnd:UseSWFSaveOptions }
public static void Run() { try { // ExStart:ExportToSWFWithoutViewer // The path to the documents directory. string dataDir = RunExamples.GetDataDir_Diagrams(); // Instantiate Diagram Object and open VSD file Diagram diagram = new Diagram(dataDir + "ExportToSWFWithoutViewer.vsd"); // Instantiate the Save Options SWFSaveOptions options = new SWFSaveOptions(); // Set Save format as SWF options.SaveFormat = SaveFileFormat.SWF; // Exclude the embedded viewer options.ViewerIncluded = false; // Save the resultant SWF file diagram.Save(dataDir + "ExportToSWFWithoutViewer_Out.swf", SaveFileFormat.SWF); // ExEnd:ExportToSWFWithoutViewer } catch (System.Exception ex) { System.Console.WriteLine(ex.Message + "\nThis example will only work if you apply a valid Aspose License. You can purchase full license or get 30 day temporary license from http:// Www.aspose.com/purchase/default.aspx."); } }
public static void Run() { // ExStart:UseSWFSaveOptions // The path to the documents directory. string dataDir = RunExamples.GetDataDir_LoadSaveConvert(); // Call the diagram constructor to load diagram from a VSD file Diagram diagram = new Diagram(dataDir + "Drawing1.vsdx"); SWFSaveOptions options = new SWFSaveOptions(); // Summary: // value or the font is not installed locally, they may appear as a block, // set the DefaultFont such as MingLiu or MS Gothic to show these // characters. options.DefaultFont = "MS Gothic"; // Sets the number of pages to render in SWF. options.PageCount = 2; // Sets the 0-based index of the first page to render. Default is 0. options.PageIndex = 0; // Discard saving background pages of the Visio diagram options.SaveForegroundPagesOnly = true; // Specify whether the generated SWF document should include the integrated document viewer or not. options.ViewerIncluded = true; diagram.Save(dataDir + "UseSWFSaveOptions_out.swf", options); // ExEnd:UseSWFSaveOptions }
static void Main(string[] args) { Aspose.Diagram.License lic = new License(); lic.SetLicense("Aspose.Diagram.lic"); Diagram diagram = new Diagram("./../../Samples/Sample.vdx"); SWFSaveOptions options = new SWFSaveOptions(); options.SaveFormat = SaveFileFormat.SWF; // Exclude the embedded viewer options.ViewerIncluded = false; diagram.Save("./../../Output/Output.swf", options); Console.WriteLine("Done"); Console.ReadKey(); }
public static void Main(string[] args) { // The path to the documents directory. string dataDir = Path.GetFullPath("../../../Data/"); //instantiate Diagram Object and open VSD file Diagram diagram = new Diagram(dataDir + "drawing.vsd"); //Instantiate the Save Options SWFSaveOptions options = new SWFSaveOptions(); //Set Save format as SWF options.SaveFormat = SaveFileFormat.SWF; // Exclude the embedded viewer options.ViewerIncluded = false; //Save the resultant SWF file diagram.Save(dataDir + "Output.swf", SaveFileFormat.SWF); }
public static void Run() { // The path to the documents directory. string dataDir = RunExamples.GetDataDir_Diagrams(); //instantiate Diagram Object and open VSD file Diagram diagram = new Diagram(dataDir + "ExportToSWFWithoutViewer.vsd"); //Instantiate the Save Options SWFSaveOptions options = new SWFSaveOptions(); //Set Save format as SWF options.SaveFormat = SaveFileFormat.SWF; // Exclude the embedded viewer options.ViewerIncluded = false; //Save the resultant SWF file diagram.Save(dataDir + "Output.swf", SaveFileFormat.SWF); }
public static void Run() { //ExStart:ExportToSWFWithoutViewer // The path to the documents directory. string dataDir = RunExamples.GetDataDir_Diagrams(); //instantiate Diagram Object and open VSD file Diagram diagram = new Diagram(dataDir + "ExportToSWFWithoutViewer.vsd"); //Instantiate the Save Options SWFSaveOptions options = new SWFSaveOptions(); //Set Save format as SWF options.SaveFormat = SaveFileFormat.SWF; // Exclude the embedded viewer options.ViewerIncluded = false; //Save the resultant SWF file diagram.Save(dataDir + "Output.swf", SaveFileFormat.SWF); //ExEnd:ExportToSWFWithoutViewer }