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.
print problem after Microsoft update KB5000802
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.
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.
- Tracker Supp-Stefan
- Site Admin
- Posts: 17910
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact:
Re: print problem after Microsoft update KB5000802
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
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
Re: print problem after Microsoft update KB5000802
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)
Re: print problem after Microsoft update KB5000802
Hi Stefan,
Thanks a lot. I check last version of PDF-XChange editor. It also has like problem after some times (see scrinshort). p.s. BigMike thanks a lot I will check this update from Microsoft.
Thanks,
Evgeny.
Thanks a lot. I check last version of PDF-XChange editor. It also has like problem after some times (see scrinshort). p.s. BigMike thanks a lot I will check this update from Microsoft.
Thanks,
Evgeny.
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
print problem after Microsoft update KB5000802
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: print problem after Microsoft update KB5000802
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
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
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Re: print problem after Microsoft update KB5000802
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.
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.
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
print problem after Microsoft update KB5000802
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ