From 68541621d97e69c441c787d000a5e042d10856ae Mon Sep 17 00:00:00 2001 From: Elias Fierke Date: Fri, 15 May 2026 18:34:25 +0200 Subject: [PATCH] [fix?:] windows file path for label export? --- MainWindow.axaml.cs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/MainWindow.axaml.cs b/MainWindow.axaml.cs index 26370b1..974538c 100644 --- a/MainWindow.axaml.cs +++ b/MainWindow.axaml.cs @@ -781,18 +781,25 @@ public partial class MainWindow : Window DefaultExtension = "pdf", Filters = { new FileDialogFilter { Name = "PDF-Dateien", Extensions = { "pdf" } } } }; + + // hier nach winpafd prüfen var filePath = await saveDialog.ShowAsync(this); if (!string.IsNullOrEmpty(filePath)) { + if (Uri.TryCreate(filePath, UriKind.Absolute, out var uri) + && uri.IsFile) + { + filePath = uri.LocalPath; + } + var builder = new PdfBuilder(Settings._instance.pdfExport); - builder.CreateAddressLabelPdfFromAddressSetWithPlaceholder(( - (KasAddressList)LstCustomerAdressSets.SelectedItem).ID, + builder.CreateAddressLabelPdfFromAddressSetWithPlaceholder( + ((KasAddressList)LstCustomerAdressSets.SelectedItem).ID, "Company Logo/Info", filePath ); - //return true; } }