How to direct print from Android and Intraweb
Hi,
I've developped an Application using Delphi 12.1, Intraweb 16 and the Demo version of FastReport 2025.2.2.
To run my report I use following code:
ModReports.RepExpedicion.PreviewOptions.Maximized := true;
ModReports.RepExpedicion.PreviewOptions.Modal := true;
ModReports.DSrc1.DataSet := (my query, returning a DataSet)
ModReports.RepExpedicion.LoadFromFile(ReportEntrega);
ModReports.RepExpedicion.PrepareReport;
ModReports.RepExpedicion.Print;
On the other hand, I've defined Report Print options with:
- Printer: Default
- Show Dialog: False
- Other options: by default
When running this report on a Windows computer, using Firefox as browser, the document is sent to the printer queue directly. However, when I try the same on an Android Tablet (v 13), same browser, and one printer defined, the application hangs when trying to send the document to printer.
If I export the report to PDF and I open it in browser, that works perfectly in both environments, and I can send the PDF to the printer both in Android and Windows.
Is there any specific setting or another trick I have to consider to send the report directly to the printer?
Best regards,
Venancio Lasquibar
Comments
Try to set ModReports.RepExpedicion.PrintOptions to False.
Hi,
Setting PrintOptions to False is not possible. However, I've made some progress with my incident.
My conclusion is that the Printing action is being done completely in the Server side. How can I do it in Client side?
Best regards,
Venancio Lasquibar
Do you use Delphi's application with FR in Client side on Android? FR doesn't have Android support.
Hi,
Behaviour is the same when I'm running application on a browser in Windows; there's no difference, in this aspect, between Windows and Android. In short, architecture is:
Best regards,
Venancio Lasquibar