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.

  • edited July 19

    Hi,

    Setting PrintOptions to False is not possible. However, I've made some progress with my incident.

    • My application runs in SA mode
    • I've activated by code the report option "Show Dialog", just to investigate what happens (in the future, this option will be set to False).
    • In test environment, I start the application in interactive mode, rather than in Windows Service mode
    • In such circunstances, when, from a Client computer, I try to print, the Print dialog is show IN THE SERVER SCREEN, instead of the client one. That happened both in Windows client and in Android client

    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:

    • Server Windows, Application develooped Delphi 12 CE with Intraweb 16.0.11 and FR Demo 2025.2.4. Component fxReport is used. Application runs in StandAlone mode, as Windows Service. For developping and testing, I run it in interactive mode.
    • Client Windows running Firefox web browser, last version
    • Client Android running Firefox web browser, last version

    Best regards,

    Venancio Lasquibar











Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.