Printing trouble once again
-
Hi Some time ago i send question here about BitBlt function in printing time.I had realized what its worked not correctly for my printer.And somebody suggest me to use StretchDIBits function but same trouble arising,when i try to print a lot of text printer not worked(but when i print a little text all work fine) This my code. //Initialize printer DC m_prtDC ... m_prtDC.StartDoc("Doc"); m_prtDC.StartPage(); StretchDIBits(m_prtDC.m_hDC,...); m_prtDC.EndDoc(); m_prtDC.EndPage(); Where is my fault here??? And wheser exist a way to printed an Memory device context into printer. Thank.
-
Hi Some time ago i send question here about BitBlt function in printing time.I had realized what its worked not correctly for my printer.And somebody suggest me to use StretchDIBits function but same trouble arising,when i try to print a lot of text printer not worked(but when i print a little text all work fine) This my code. //Initialize printer DC m_prtDC ... m_prtDC.StartDoc("Doc"); m_prtDC.StartPage(); StretchDIBits(m_prtDC.m_hDC,...); m_prtDC.EndDoc(); m_prtDC.EndPage(); Where is my fault here??? And wheser exist a way to printed an Memory device context into printer. Thank.
Although probably not solving your problem, it should probably be:
m_prtDC.StartDoc("Doc"); m_prtDC.StartPage(); StretchDIBits(m_prtDC.m_hDC,...); m_prtDC.EndPage(); // switched place m_prtDC.EndDoc(); // switched place
"Time to give a Newtonian demonstration, of a bullet, its mass and its acceleration." -Stephen Hawking the gangsta rapper