Page 1 of 1

Image-XChange, VB6, and SMTP

Posted: Mon Mar 03, 2008 7:25 pm
by MattM1121
Greetings,

I need to be able to print the body of an incoming email as an image. I would like to use an inprocess DLL - written in VB6 - attached as an SMTP sink on a Windows 2003 server.

Can Image-XChange provide the ability to print from within an inprocess DLL?

Thanks,

-Matt

Posted: Tue Mar 04, 2008 6:29 am
by Ivan - Tracker Software
Image-XChange has no separate API for printing. What it can do - is to draw image on passed DC. So, if your DLL can provide printer's DC, Image-XChange can draw on it.

Posted: Tue Mar 04, 2008 4:06 pm
by MattM1121
I apologize for my ignorance here, but what do you mean by "DC"?.
Can you give a quick explination for this?

Thanks
Ivan - Tracker Software wrote:Image-XChange has no separate API for printing. What it can do - is to draw image on passed DC. So, if your DLL can provide printer's DC, Image-XChange can draw on it.

Posted: Tue Mar 04, 2008 5:15 pm
by Ivan - Tracker Software
May I suggest that you research a little about printing in Windows, perhaps on MSDN - this may help you.

In VB terms, the Printer object has a handle (in the Window API it is the Device Content Handle (DC)). Passing this handle to Image-XChange draws the function - and you can draw the image (print) to this handle.

Hope that helps