No printing options available.
I have a .Net 5 Worker service, I have installed the Fast Report Core nuget. I can create an instance of a report and load the template. I can then use the Prepare method.
This where the problems start, I want to print the report, without any UI. But if I look at the report methods available to me, there is no Print Settings or PrintPrepared methods or properties, in fact the only Print related property or method I can find is IsPrinting.
What am I missing? I tried to find a missing nuget maybe FastReport.print or something similar, but nothing.
I have looked in the documentation, and it mentions the PrintPrepared in the .Net documentation.
I am at a loss, can someone tell me what I am missing.
Thanks
This discussion has been closed.
Comments
Hello!
The absence of the Print(), PrintPrepared() and PrintSettings methods in the FastReport.Core package is intended behaviour by design: FastReport.Core is a cross-platform library (Linux/macOS/Docker) and does not include the Win32/GDI printing subsystem for physical printers.
As you are using a Windows Worker Service on .NET 6+:
Switch to the commercial FastReport.Net package (target platform in .csproj specified as net5.0-windows / net8.0-windows, with WinForms/Windows Desktop SDK) – this includes both Report.Print() and Report.PrintPrepared(PrinterSettings).