we want to generate/export PDFs from previously created reports in an Azure Web App. As of version 27 the printer driver is no longer required which was previously the problem.
A very condensed version of the code looks like this:
var listLabel = new ListLabel(new ListLabelLogger());
listLabel.LicensingInfo = "<license>";
listLabel.Printerless = true;
listLabel.ExportOptions.Clear();
listLabel.ExportOptions.Add(LlExportOption.ExportQuiet, "1");
listLabel.ExportOptions.Add(LlExportOption.ExportShowResult, "0");
listLabel.AutoShowSelectFile = false;
listLabel.AutoShowPrintOptions = false;
listLabel.DataSource = new ObjectDataProvider(new List<object> { new object() });
MemoryStream resultStream = new MemoryStream(32000);
var exportConfiguration = new ExportConfiguration(LlExportTarget.Pdf, resultStream, "ReportFile.lst")
{
ProjectType = LlProject.List
};
listLabel.Export(exportConfiguration);
It runs fine on a lokal development machine but once deployed to an Azure Web App we get this message:
ERROR CXLL28 : LoadLib(<path>\CXLL28EX.LLX) failed
WARNING CXLL28 : LLX loader: <path>\CXLL28EX.LLX is not a library (LoadLibrary() failed)
Can anyone confirm that it is indeed possible to use List Label in Azure Web Apps and maybe post an example?
tmetternich
(combit Support - Thomas Metternich)
2
Hello Sven,
we suspect that the deployment is not complete and possibly the PDF module combit.ListLabel28.ConversionTools.x64 is missing and this is a consequence. Please check which List & Label files were deployed. In the file “restidt.xt” (Documentation directory underneath the List & Label installation) you find an overview of the files required for distribution.
Hi Thomas,
thank you for your swift response. Unfortunately I am not able to track down a missing assembly. Here is a list of all the deployed assemblies:
I even added combit.ListLabel28.Web.dll though I am not sure this one is needed.
Are you able to provide a running C# example that runs in an Azure Web App?
tmetternich
(combit Support - Thomas Metternich)
4
Hi Sven,
sorry, that it is an Azure Web App, we had briefly overlooked. Unfortunately, this is not possible directly, since GDI is blocked here. In your case, you would have to host the app in a Windows Docker container. Unfortunately, there is no other option here. You can find more information about this in this blog.