We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Convert Visio Diagram to HTML in C# using Aspose.Diagram - Specify image format


I’m generating html from Visio file. As an output we have html files and png image with the content.
Is there a way to change options for generating this image?
For example specify that image should be jpeg instead of png or define resolution?
In Office interop you can define such options with the following code:

            var saveAsWeb = (IVisSaveAsWeb)_visio.SaveAsWebObject;
            var webSettings = (IVisWebPageSettings)saveAsWeb.WebPageSettings;

            webSettings.StartPage = 1;
            webSettings.EndPage = -1;
            webSettings.QuietMode = 1;
            webSettings.NavBar = 0;
            webSettings.Search = 0;
            webSettings.StoreInFolder = 1;
            webSettings.AltFormat = 0;
            webSettings.PriFormat = "PNG"; 
            //Output format
            //webSettings.SecFormat = "JPG"; 
            webSettings.DispScreenRes = VISWEB_DISP_RES.resSource;




We regret to share that such option is not available at the moment. However, would you kindly share a sample diagram file with us. We will log a feature request in our issue tracking system and share the ID with you.