protected static void SaveSuiteResults(string keySuffix) { var suite = Suite(keySuffix); Assert.IsTrue(_context.SaveResults(suite)); _context.RunProcess(@"C:\Windows\explorer.exe", PdfReport.CreateReport(suite)); }
private void CreateReportBtn_Click(object sender, RoutedEventArgs e) { var pdfReport = new PdfReport() { Title = "Raport z bazy AzurDB, tabela Customer", Author = "Witek M", CoverImagePath = "logo.jpg" }; var report = pdfReport.CreateReport(); report.Save(string.Format("report_{0}.pdf", Guid.NewGuid())); MessageBox.Show("Zapisano plik", "Sukces", MessageBoxButton.OK, MessageBoxImage.Exclamation); }
private void ExportButton_Click(object sender, RoutedEventArgs e) { try { var PdfReport = new PdfReport(); PdfReport.CreateReport(Tags.Text); this.Close(); } catch (FileNotFoundException exception) { // LOG EXCEPTION HERE } //MessageBox.Show("Can't delete this photographer because it its assigned to a picture.", "Alert", MessageBoxButton.OK, MessageBoxImage.Information); }
private void CreateReportBtn_Click(object sender, RoutedEventArgs e) { // Tworzenie raportu PDF var pdfReport = new PdfReport { Title = "Raport z bazy AzureDB, tabela Customer", Author = "Ja", CoverImagePath = "image.png", SearchName = GetFirstLetterTb.Text }; // Generowanie raportu var report = pdfReport.CreateReport(); // Zapis do pliku report.Save($"report_{Guid.NewGuid()}.pdf"); // Komunikat o udanym zapisie MessageBox.Show("Zapisano plik", "Sukces", MessageBoxButton.OK, MessageBoxImage.Information); }
private void ExportPdfSingle_Click(object sender, RoutedEventArgs e) { var PdfReport = new PdfReport(); PdfReport.CreateReport(_controller.CurrentPicture); }