Ok, I need help in initializing/formatting the printerDC.

I read contents of file into a buffer.

then this code executes:

if( StartDoc(hdcPrn, &di) > 0)

{

if(StartPage(hdcPrn) > 0)

{

TextOut(hdcPrn,0,0,szText,lstrlen(szText) );

if( EndPage(hdcPrn) > 0)

EndDoc(hdcPrn);

else

{

free(szText);

DeleteDC(hdcPrn);

return FALSE;

}

}

}

and what happens is the file prints but all on one line!!!!

Even the ASCII \n character is ignored. What is going on?

What variables must I set to properly format my printjob so

that the file prints out correctly?


please no flaming.


thanxs


mgarcia