Hello
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;
webSettings.SaveSettings();
Thanks