QuickReport throws "There Is No Default Printer Currently Selected" Exception

Posted by M Schenkel on Stack Overflow See other posts from Stack Overflow or by M Schenkel
Published on 2010-04-05T17:45:14Z Indexed on 2010/04/05 18:43 UTC
Read the original article Hit count: 914

Filed under:
|
|

I have created a Delphi Service which prints TQuickReports. Everything works fine if compiled and run as a Windows Application. But when converted to operate as a service trying to create a form containing a TQuickRep component throws the exception.

This service runs fine on many other boxes but not this one in particular. Here are some details:

  • Using QuickReport version 4.07
  • Box is a Windows Server 2008 operating system.
  • Using Delphi 2007
  • Printer.Printers.Count is returning a positive value. In fact I can list out all of the printers.
  • I have tried running the service both using Local System Account and Logged on as an Admin.

© Stack Overflow or respective owner

Related posts about delphi

Related posts about windows-services