trichview.com

trichview.support




Undo and the TRVOfficeConverter


Return to index


Author

Message

Pieter E.

Posted: 10/29/2004 12:39:16


I use the following code for importing documents with TRVOfficeConverter:


OpenDialog1->Filter = "RTF-bestand|*.rtf|" + rvc->GetImportFilter();

if(OpenDialog1->Execute())

{

  rve->Clear();

  rve->Format();

  rve->Update();

  rve->Clear();


  bool bImported;

  if(OpenDialog1->FilterIndex == 1)

        bImported = rve->LoadRTF(OpenDialog1->FileName);

  else  {

          bImported = rvc->ImportRV(OpenDialog1->FileName, rve, OpenDialog1->FilterIndex

- 2);

        }


  if(bImported == false)

      Application->MessageBox("Import Error!","Import Error!", MB_OK | MB_ICONWARNING);


  rve->Format();

  rve->Modified = true;

  rve->SetFocus();

}  


When the imported document is dropped in the RichViewEdit the undo function

is not active.


Is this normal or can I do something about it?


Thank.


Pieter E.





Powered by ABC Amber Outlook Express Converter