Aspose.Cells.Examples.CSharp.Articles.WorkingWithHTMLFormat.ImplementIStreamProvider.Run C# (CSharp) Method

Run() public static method

public static Run ( ) : void
return void
        public static void Run()
        {
            // ExStart:ImplementIStreamProvider
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);

            string outputDir = dataDir + @"out\";

            // Create workbook
            Workbook wb = new Workbook(dataDir + "sample.xlsx");

            HtmlSaveOptions options = new HtmlSaveOptions();
            options.StreamProvider = new ExportStreamProvider(outputDir);

            // Save into .html using HtmlSaveOptions
            wb.Save(dataDir + "output_out.html", options);
            // ExEnd:ImplementIStreamProvider
        }
    }
ImplementIStreamProvider