Enum LlExportTarget
- Namespace
- combit.Reporting
- Assembly
- combit.ListLabel32.CrossPlatform.dll
Specifies the target format for export operations.
public enum LlExportTarget
Fields
Csv = 0Export as CSV (Comma-Separated Values).
Docx = 7Export as DOCX.
Html = 8Export as HTML.
Jpeg = 3Export as JPEG.
Json = 1Export as JSON.
Pdf = 2Export as PDF through the best engine available, which is what most callers want.
Resolves to PdfEnhanced where its native library can be loaded and to PdfStandard where it cannot, so a deployment that carries the library gets PDF/A conformance, encryption, e-invoices and interactive form fields, and one that does not still exports. Which engine was chosen is written to the log at debug level.
The two engines do not measure text identically, so the same report can break lines differently under each. Where that matters - a stored reference, or a set of documents that has to look alike - name PdfStandard or PdfEnhanced instead of leaving the choice to whatever is deployed.
PdfEnhanced = 9Export as PDF through the enhanced PDF engine. Writes a
.pdfdocument like Pdf does, but through the native PDF backend, which additionally supports PDF/A conformance, encryption and embedded e-invoices. Requires the native PDF library, which ships with the main package on Windows and withcombit.ListLabel32.CrossPlatform.NativeAssets.Linuxorcombit.ListLabel32.CrossPlatform.NativeAssets.macOSon Linux and macOS, and fails with a ListLabelException when it cannot be loaded.PdfStandard = 10Export as PDF through the standard PDF engine, the same rendering backend every other cross-platform export target uses. Writes a
.pdfdocument like Pdf does, but without PDF/A conformance, encryption, embedded e-invoices or interactive form fields.This target needs nothing deployed beyond what any other export target already needs - which is not the same as needing nothing. That backend has native components of its own: the native SkiaSharp assets, which ship with the main package on Windows and macOS and with
combit.ListLabel32.CrossPlatform.NativeAssets.Linuxon Linux, plus on Linux the system font and image libraries listed in the deployment documentation. What this target does without is PdfEnhanced's additional native PDF library.Use it to pin the engine where the output has to be identical on every machine whatever is deployed there - a stored comparison reference being the obvious case. Pdf is the one to reach for otherwise.
Png = 4Export as PNG.
Svg = 5Export as SVG.
Xlsx = 6Export as XLSX.