dcPrint????
-
I would like to understand how you can print the string from an edit box using dcPrint? Example: dcPrint.TextOut(50,150,Editbox string here); anyhelp greatly appreciated ThankYou in advance. Still no advice on how to achive this, does anyone have any sugestions that I might try?:confused::~ :sigh:
-
I would like to understand how you can print the string from an edit box using dcPrint? Example: dcPrint.TextOut(50,150,Editbox string here); anyhelp greatly appreciated ThankYou in advance. Still no advice on how to achive this, does anyone have any sugestions that I might try?:confused::~ :sigh:
hi, ON_COMMAND(ID_FILE_PRINT, OnFilePrint) printing goes like this void CMyDialog::OnFilePrint() { CString strValue; int iRet; CPrintInfo Info; //set your info flags PRINTDLG pdsetup; HDC hdc; //get your hdc from pdsetup CDC dc; //dcPrint??? //Attach hdc with dc //set drawing rect //call OnPreparePrinting(&Info); //call OnBeginPrinting(&dc, &Info); DOCINFO docInfo; // make your docinfo if needed //iRet = dc.StartDoc(&docInfo); //iRet = dc.StartPage(); //OnPrepareDC(&dc, &Info); myEditBox.GetWindowText(strValue); dc.TextOut( 200, 200, strValue); //place own coordinates //dc.EndPage(); //dc.EndDoc(); //OnEndPrinting(&dc, &Info); //dc.Detach(); hope it helps dan