Adding Print and Print Preview to Richedit Control 
Author Message
 Adding Print and Print Preview to Richedit Control

I've got a Rich Edit control on my main window(not in a dialog box) which I
created using code added to my View as follows:

void CSs1wppView::OnInitialUpdate()
{

//    // Create the rich edit control
    if (!m_ctlRichEdit.Create(
          WS_CHILD | WS_VISIBLE |WS_HSCROLL|WS_VSCROLL| WS_BORDER
|WS_THICKFRAME| ES_MULTILINE|ES_SUNKEN,
          CRect(8, 26, 610, 360), this, 20003))
    {
       TRACE0(_T("Problem creating rich edit control!"));
//       return FALSE;
    }

   // Set options for this rich edit control
   m_ctlRichEdit.SetOptions(ECOOP_SET, ECO_AUTOWORDSELECTION |
      ECO_AUTOVSCROLL | ECO_WANTRETURN | ECO_SAVESEL);

   m_ctlRichEdit.DragAcceptFiles(TRUE);
   GenerateRichText();

   m_ctlRichEdit.ShowWindow(SW_SHOW);
... etc.

Is there a way to use wizard to add Print and Print Preview capability to
print the contents of the RichEdit control?

If not, is there an example somewhere that shows how to add Print and Print
Preview Capability to the RichEdit?
Thanks
Jim



Tue, 05 Feb 2002 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Print Preview Control and Print Preview Dialog - need some help ASAP

2. Print/Print Preview with MFC Rich Text Edit control

3. Rich Edit Control Printing Problem (like the print preview problem)

4. Print/Preview Control from a control?

5. Why I can't print directly after Print Preview

6. Printing/Print preview problem with CRichEditView.

7. Print Preview and Printing a Document?

8. Printing / Print Preview problem?

9. Print / Print Preview Commands

10. Display bitmaps in Print Preview and printing bitmaps.

11. image shown on print preview but not printed

12. Text on screen looks differently that when printed/print previewed

 

 
Powered by phpBB® Forum Software