Error loading TCustomRVFormattedData from Stream
Posted: Mon Jul 27, 2009 6:21 pm
I have the follow code:
aSrc parameter are from RichViewEdit->RVData that have controls, like TPanel, TEdit, TLabel, etc... and generates EClassNotFound with the message "Class TPanel Not Found". How do I fix it?
PS: Previously, I was setted RVData aSrc as my header of RVPrint.
Code: Select all
void TForm::AddHeader(TCustomRVFormattedData *aSrc, TCustomRVFormattedData *aDest)
{
TMemoryStream *ms = new TMemoryStream;
aSrc->SaveRVFToStream(ms, false, NULL, NULL, NULL);
ms->Position = 0;
aDest->InsertRVFFromStream(ms, aDest->ItemCount, NULL, NULL, NULL, false); //generates exception EClassNotFound
delete ms;
}
PS: Previously, I was setted RVData aSrc as my header of RVPrint.