public void Print() { using (var powerPointProcessor = new PowerPointHidden()) { if (!powerPointProcessor.Connect(true)) return; powerPointProcessor.PrintPresentation( _tempCopy.FullName, SelectedThumbnail.Index, printAction => MainController.Instance.ProcessManager.Run( "Printing...", cancellationToken => printAction())); } }
private void barButtonItemPrintLink_ItemClick(object sender, ItemClickEventArgs e) { using (var powerPointProcessor = new PowerPointHidden()) { if (!powerPointProcessor.Connect(true)) return; powerPointProcessor.PrintPresentation( _viewedFile.FullName, comboBoxEditSlides.SelectedIndex + 1, printAction => MainController.Instance.ProcessManager.Run( "Printing...", cancellationToken => printAction())); } }
private void barButtonItemPrintLink_ItemClick(object sender, ItemClickEventArgs e) { using (var powerPointProcessor = new PowerPointHidden()) { if (!powerPointProcessor.Connect(true)) return; powerPointProcessor.PrintPresentation( _tempFileCopy.FullName, SelectedThumbnail.Index, printAction => MainController.Instance.ProcessManager.Run( "Printing...", cancellationToken => printAction())); } }