windows - PrintWindow and Microsoft Edge -


we have problem printwindow function on windows 10 (build 10166). when call printwindow (https://msdn.microsoft.com/ru-ru/library/windows/desktop/dd162869(v=vs.85).aspx) capture image of microsoft edge (project spartan) browser window black image.

does know reason of , how fixed/avoided? or maybe other way capture image of window, can in background , hided behind windows?

update: we've tried sending wm_printclient , wm_print messages, , calling defwindowproc wm_print, results same - black image. tried use bitblt copy window's dc memory surface, it's not working too. best solution have bringing browser window foreground, capturing entire screen , cropping screenshot window's client size; can interrupt , annoy users because of switching application that's in use.

if want take screenshot of page on browser. try javascript library: http://html2canvas.hertzen.com/ script traverses through dom of page loaded on. gathers information on elements there, uses build representation of page. in other words, not take screenshot of page, builds representation of based on properties reads dom.

i tried on machine on microsoft edge , chrome , worked on both.hope job!


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -