Images not printing after the latest security update

500 views Asked by At

My application fails to print after the latest security update.

None of the API calls fail, yet the images don't show even in PDF. Text and shapes like lines print fine.

The code loads a JPG image using IPicture interface and OleLoadPicture(). Then I use its Render() call to convert it into a HBITMAP and finally StretchBlt() on printing HDC.

None of the calls fail, all return values are checked. Everyhing worked fine until today and latest Windows security updates. Sure, if I uninstall KB5000808 update on my computer or KB5000802 on my client's computer everything is back to normal but this is not a long term solution.

Anyone having similar problems as of today? Any idea how to solve this? Any other way to print images?

EDIT:

Same problem even if I use a bitmap instead of a JPG image. So there's no problem with JPG rendering. On the other hand, both JPG and BITMAP show on the screen. Only printing does not work.

1

There are 1 answers

7
Paul On BEST ANSWER

I solved by using StretchDIBits instead of StretchBlt win32 api