public void ExportScreenShot() { Worksheet ws = Instance.Default.Application.Worksheets[1]; Helpers.CreateSomeCharts(ws, 1); ws.ChartObjects(1).Select(); ScreenshotExporter exporter = new ScreenshotExporter(); exporter.ExportSelection(System.IO.Path.GetTempFileName()); }
private void DoExportSelection(FileNameMessageContent messageContent) { if (CanExportSelection() && messageContent.Confirmed) { using (WorkbookStorage.Store store = new WorkbookStorage.Store()) { store.Put(Properties.StoreNames.Default.ExportPath, messageContent.Value); } UserSettings.UserSettings.Default.ExportPath = Bovender.PathHelpers.GetDirectoryPart(messageContent.Value); ScreenshotExporter exporter = new ScreenshotExporter(); exporter.ExportSelection(messageContent.Value); } }
IEnumerator TakingScreenShot() { StartCoroutine(ScreenshotExporter.Save(ScreenShotName(), albumName, true)); //export screenshot takeShot = false; yield return(0); }