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
}
}