print problem
-
hello, I have a big problem, I want to print a page (with MFC) and everything worked fine until I tried to print a colored text .... if I try to draw on printer CDC a color line or rectangle it works but with text don't ! why ?... if my color is less then RGB(255,128,0) the text is black if my color is greater the text is white ... please help ... thanks!
-
hello, I have a big problem, I want to print a page (with MFC) and everything worked fine until I tried to print a colored text .... if I try to draw on printer CDC a color line or rectangle it works but with text don't ! why ?... if my color is less then RGB(255,128,0) the text is black if my color is greater the text is white ... please help ... thanks!
maybe a silly answer.. but maybe your printer driver has got gray-scale set as default? check out the DEVMODE -structur (membervar in CPrintDlg). It has a member dmColor. It can be set to DMCOLOR_COLOR or DMCOLOR_MONOCHROME. Set it correctly and it should work.
CPrintDialog dlg; m_DC = new CDC; // Attach a printer DC m_DC->Attach(r_printdlg.GetPrinterDC()); m_DC->m_bPrinting = TRUE; DEVMODE* pDevMode = r_printdlg.GetDevMode(); pDevMode->dmColor = DMCOLOR_COLOR; m_DC->ResetDC (pDevMode);
Maybe this works..
"I'm from the South Bronx, and I don't care what you say: those cows look dangerous."
U.S. Secretary of State Colin Powell at George Bush's ranch in Texas