I would like to print an image created on the fly to a printer connected on server. Image can be created in JPEG or PNG format. Printer functions accepts only BMP. Is there any way of doing this? I prefer not to use temp files.
The possible solutions that I came up with till now are:
1) Convert JPEG to BMP using an command line tool. Then print via printer functions.
2) Use COM functions to embedd JPEG into a Word document then print.
3) Create RTF file (not sure if image can be embedd in rtf) and then print using COM under Word.
4) Create pdf file (not sure if it can be printed on server side)
5) Find a imaging software supports COM and print image from software.
Those solutions seems either too hard or too complex. All assumes using temp files which I would like to avoid. Any suggestions?
Thanks for your suggestions in advance.
Tolga Orhon