Troubleshooting — EricksonLopez.Printing
L3StableNuGet: v1.0.0Local HEAD: v2.0.0AOT: Partial
Common API and runtime edge cases in EricksonLopez.Printing (1.0.0).
Image() / RasterImage() Throws NotSupportedException in 1.0.0
Section titled “Image() / RasterImage() Throws NotSupportedException in 1.0.0”- Cause: In published
1.0.0,EscPosImageBuilderExtensions.Image(...)and.RasterImage(...)delegate toEscPosBuilder.Raw(...), which throwsNotSupportedExceptionwhensafeModeistrue(the default). - Fix for
1.0.0: Constructnew EscPosBuilder(safeMode: false)when emitting raster images on1.0.0. (Unreleased local2.0.0BC-005routes raster bitmaps throughinternal AppendRawRaster, permittingsafeMode = true.)
AddSerialPrinter Not Found & ZplFont Enum Names
Section titled “AddSerialPrinter Not Found & ZplFont Enum Names”AddSerialPrinternamespace: Importusing EricksonLopez.Printing;(notEricksonLopez.Printing.Serial) becausePrintingSerialServiceCollectionExtensionsis declared inEricksonLopez.Printing.ZplFontidentifiers: UseZplFont.Font0,ZplFont.FontA..ZplFont.FontH(there is noZplFont.Default).SignalRin AOT hosts:EricksonLopez.Printing.SignalRsetsIsAotCompatible=false; exclude it from<PublishAot>true</PublishAot>targets.