Printing inside a DLL called by SQL Server

I have to print a report done with QuickReport 1.1 inside a Delphi DLL.
The DLL must be called by SQL Server (as an Extended Procedure) but
QuickReport can't access the Printer object an hang down the Server.

What do I need to do to initialize the Printer object inside the DLL and
also to be sure that QuickReport is going to use that printer. I am
using QuickReport 1.1 with Delphi 2.1 and SQL Server 6.5 on Windows NT
4.0

Please Help me !!!

Sylvain Tremblay
MDI