Visual C++ 6 : Problème impression d'écran noir
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:
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
Personne n'a rencontré le problème ?
Ca vient peut être des impirmantes, mais je peux pas leur dire de changer d'imprimante...
Personne n'a jamais rencontré ce problème : impression d'une page noir alors qu'à l'écran j'ai bien une page normale?
En plus, que sur certaines machines, sur d'autres ça marche très bien !!!!