Unregistered
October 21, 2002, 15:10:34
Hi .
Any one any ideas on this one?
I'm writing a web application, that needs to print to a printer on the server, not on the client. In essence, I'm looping though the printers collection to get a printer HDC ( the printer name selected by the client), and passing the appropriate printer hdc to the TXTextControl1.PrintDevice. The printer HDC is the correct one for the printer that I need to print to.
I get the following error:
Automation error:The Object Invoked as been disconnected from its clients.
If I print to the default printer, everythings fine. If I use the MDI demo provided, and select a non default printer, I get a blank page, and the default printer is set to the printer that I selected ( wird!!)
Code-wise, my code looks identical to the example in ther help file - ok - so I've tried various orders for the lines and not joy.
I'm running Windows 2000 server, IIS and IE6, developing in VB6. I checked permissions, and everythign that needs permissions has access to everything.
Any help / comments much appreciated!
Lewin Trussler
This message was originally posted by Lewin Trussler in the old TX Text Control Support Forum.
Any one any ideas on this one?
I'm writing a web application, that needs to print to a printer on the server, not on the client. In essence, I'm looping though the printers collection to get a printer HDC ( the printer name selected by the client), and passing the appropriate printer hdc to the TXTextControl1.PrintDevice. The printer HDC is the correct one for the printer that I need to print to.
I get the following error:
Automation error:The Object Invoked as been disconnected from its clients.
If I print to the default printer, everythings fine. If I use the MDI demo provided, and select a non default printer, I get a blank page, and the default printer is set to the printer that I selected ( wird!!)
Code-wise, my code looks identical to the example in ther help file - ok - so I've tried various orders for the lines and not joy.
I'm running Windows 2000 server, IIS and IE6, developing in VB6. I checked permissions, and everythign that needs permissions has access to everything.
Any help / comments much appreciated!
Lewin Trussler
This message was originally posted by Lewin Trussler in the old TX Text Control Support Forum.