problem with printing with ICM

Hi,

In the printer interface dll, we have set the devmode parameter

devMode.dmICMMethod = DMICMMETHOD_SYSTEM;

and also implemented DrvQueryColorProfile function export in which
it specifies an icc profile to use the color management…

But when the devmode

dmICMMethod= DMICMMETHOD_NONE;

the image is printed correctly which has some of the rectangular box
drawn…

and when

dmICMMethod = DMICMMETHOD_SYSTEM;

then the image is not printed properly, there a distorted image
appearing…

Any idea on this issue will be highly appreciated…

Thanks,

Shiva P