print problem after Microsoft update KB5000802

A forum for questions or concerns related to the PDF-XChange Core API SDK

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
aleksand
User
Posts: 11
Joined: Tue Apr 24, 2018 6:55 am

print problem after Microsoft update KB5000802

Post by aleksand »

Hi,

I use coreApi sdk. I do print use like code:
if (::StartDoc(pdx->hDC, &di) > 0)
{
for (int page=fromPage-1; page<toPage; page++){
...
CRect DrawRect(0, 0, W, H);
CComPtr<PXC::IPXC_OCContext> pROpt;
g_Inst->CreateStdOCCtx(&pROpt);
pROpt->put_PrintContentFlags(PXC::RenderType_ModePrint);
::StartPage(pdx->hDC)
hr=pPage->DrawToDevice((PXC::HANDLE_T)pdx->hDC, &DrawRect, &dm, PXC::DDF_AsVector |PXC::DDF_EmbeddedFontAsCurves,
nullptr, pROpt, nullptr);
::EndPage(pdx->hDC);
}
}

Before update w10 from Microsoft all is working fine. After update ( KB5000802) in some document print began work incorrect (some pages is clean and after it application can not print any new document also my application can hang after this bug). I investigate the problem and has following result:
1) After this problem application can not create new printdialog for print (so no print)
2) It depend from documents and printers (I check 2 printers xchange and acrobat. The acrobut printer has very strange result (::EndPage(pdx->hDC) return -1). Xchange return correct result of ::EndPage but some page was empty and application will hang after some times).
3) If comment pPage->DrawToDevice all is working correct (my additional info like watermark is printed and no hang)
4) if I remove PXC::DDF_AsVector (prom call parameter "pPage->DrawToDevice") all will work correct also but time will biger.
5) DrawToDevice method working is not good for draw also (can crash after incorrect print) but I can change it to IIXC_Page::DrawToIXCPage and save it to png image. Unfortunately (as I understand sdkhelp) IIXC_Page::PrintToDC has not parameter for print as vector so this solution is bad for print.

p.s. Update KB5001567 do not fix this problem (only made it difficult to reproduce for some files).
p.s.s. I ckeck last version of xchangeApi and had the same result.

Thanks,
Evgeny.
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17818
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: print problem after Microsoft update KB5000802

Post by Tracker Supp-Stefan »

Hello Evgeny,

We are aware of the hotfix, and are sorry to hear that you've started having problems. We are investigating the effects this hotfix has on our products, and will try to find a solution!

Kind regards,
Stefan
User avatar
BigMike
User
Posts: 307
Joined: Wed Nov 07, 2007 10:07 am

Re: print problem after Microsoft update KB5000802

Post by BigMike »

Just as a hint: Microsoft patched again, there's now a patch for the patch for the patch... (it's KB5001649 for Win 10 20H2)
aleksand
User
Posts: 11
Joined: Tue Apr 24, 2018 6:55 am

Re: print problem after Microsoft update KB5000802

Post by aleksand »

Hi Stefan,

Thanks a lot. I check last version of PDF-XChange editor. It also has like problem after some times (see scrinshort).
hang.png
p.s. BigMike thanks a lot I will check this update from Microsoft.

Thanks,
Evgeny.
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

print problem after Microsoft update KB5000802

Post by Sasha - Tracker Dev Team »

:)
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: print problem after Microsoft update KB5000802

Post by Sasha - Tracker Dev Team »

Hello guys,

The Microsoft has maid another fix for the fix :)
Here's the link to our news page:
https://www.pdf-xchange.com/compan ... s/view/253

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
aleksand
User
Posts: 11
Joined: Tue Apr 24, 2018 6:55 am

Re: print problem after Microsoft update KB5000802

Post by aleksand »

Hi,

Thanks a lot. Own tests show that after last update of microsoft all is working.

p.s. Please close the topic. (I do not found like button).

Thanks,
Ecgeny.
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

print problem after Microsoft update KB5000802

Post by Sasha - Tracker Dev Team »

:)
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply