Bonjour,
Je rencontre un problème d'impression sur certaines machines (ou imprimantes ?) qui au m'imprime une page totalement noir.
Avez vous déjà rencontrer ce problème ?
Le code utilisé pour l'impression est le suivant :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
 
pApp->CreatePrinterDC(printDc);	
if (NULL == printDc.m_hDC)
{
return;
}
CRect printRect(0,0, printDc.GetDeviceCaps HORZRES),printDc.GetDeviceCaps(VERTRES));
printDc.StartDoc(&docInfo);
 
if (printDc.StartPage() >=0 )
{
       CPoint marge = CalcMargin(&printDc,100,100);
       printRect.DeflateRect(marge.x, marge.y);
       if (!DrawView(&printDc, printRect, true,pdlg))
       {
	printDc.AbortDoc();
        }
       else
       {
	printDc.EndPage();
	printDc.EndDoc();	 
       }
}
else
{
       printDc.AbortDoc();
}
pdlg->EndDialog(IDOK);
printDc.DeleteDC();
Merci