Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Print on a windows service

Hi,

I want to print a report in a windows service. I have Enterprise Edition.

I use this properties to false:
ppReport.ShowCancelDialog:=False;
ppReport.ShowPrintDialog:=False;
ppReport.ShowAutoSearchDialog := False;

What could be the problem? In a VCL aplication works fine.

Comments

  • Hi Tania,

    A Windows Service has different requirements than a VCL app.

    A couple of basic things to check

    - typically runs under a different windows user account. You may want to create a special account for the windows service and install the required printer driver for the user account.

    - multi-threaded. This requires thread-safe data access - meaning a separate database connection component for each thread.



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • Thank you, i'll try to do it
Sign In or Register to comment.