Consultor Eletrônico



Kbase 21883: WIN32 API -- Printing Problems With PrintWindow Function
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   3/12/2002
SUMMARY:

This Solution allows to solve a printing problem that can occur when using the PrintWindow function from the dibapi32.dll library.

In fact, when the Print Setup Dialog box appears it is possible to specify another printer as well as the number of copies. However it appears that when you use the dibapi32 DLL located in %DLC%\bin, it always prints to the default printer and does not take the number of copies into consideration.

SOLUTION:

Download the dibapi32.dll file from the Microsoft web site:

http://support.microsoft.com/default.aspx?scid=kb;en-us;Q130804