Können Sie es einmal so probieren?
{
XPathDocument XMLDoc = new XPathDocument("inspektion_struk.xml");
XmlDataProvider provider = new XmlDataProvider(XMLDoc);
combit.ListLabel24.ListLabel LL = new combit.ListLabel24.ListLabel();
LL.DataSource = provider;
LL.AutoProjectType = LlProject.List;
// Hier den vollen Pfad + Dateiname übergeben
string exportFilename = @"c:\output\export.pdf";
ExportConfiguration exportConfiguration = new ExportConfiguration(LlExportTarget.Pdf, exportFilename, "InspektionXMLnew.lst");
exportConfiguration.ShowResult = false;
exportConfiguration.ExportOptions.Add(LlExportOption.ExportQuiet, "1");
try
{
LL.Export(exportConfiguration);
}
catch (combit.ListLabel24.LL_User_Aborted_Exception e)
{
// User hat die manuelle Bestätigung abgebrochen
}
}