private void xrRichText1_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e) { IDocumentBody body = this.GetCurrentColumnValue("Body") as IDocumentBody; if (body != null) { if (body.Document != null) { using (MemoryStream m = new MemoryStream(body.Document)) { XRRichText t = sender as XRRichText; t.LoadFile(m, XRRichTextStreamType.RtfText); //t.Rtf = Encoding.UTF8.GetString(body.Document); } } } }
// Used by Resync to create an open chameleon private ChameleonDocumentBody(IDocumentBody openedChameleon) { OpenChameleonFrom(openedChameleon); }