Page 1 of 1

Loading XML to TRVReportHelper.RichView

Posted: Sat Apr 30, 2011 5:22 pm
by DmitriPopov
Hello!

I have a problem loading XML with TRichViewXML into TRVReportHelper.RichView. I believe the problem is in bulleted list items located inside table cells. The same XML file loads fine into TRichView/TRichViewEdit but fails with Access Violation when loading into TRVReportHelper.RichView. Access Violation occurs in TRVMarkerItemInfo.GetMinWidth.

Is there any workaround?

Posted: Sat Apr 30, 2011 6:26 pm
by Sergey Tkachenko
1) What version of TRichView and RichViewXML?
2) Do you call RVReportHelper.RichView.Format? (you must not)

Posted: Sat Apr 30, 2011 7:57 pm
by DmitriPopov
TRichView: 12.6.1
TRichViewXML: 1.8.2

No, I don't call RVReportHelper.RichView.Format, access violation occurs when I call TRichViewXML.LoadFromFile.

Posted: Sun May 01, 2011 8:56 am
by Sergey Tkachenko
In this version of RichViewXML, TRichViewXML.LoadFromFile calls RichView.Format. It makes it impossible to load XML in RVReportHelper.
In the newest version of RichViewXML, the call of Format is removed.
You can either update (to TRichView 13.x + RichViewXML 1.9.1), or find the call of Format in RichViewXML code, and remove it.

Posted: Sun May 01, 2011 12:17 pm
by DmitriPopov
Romoving "Format" is the only code change that is required?

Posted: Mon May 02, 2011 10:55 am
by Sergey Tkachenko
Yes

Posted: Mon May 02, 2011 6:04 pm
by DmitriPopov
OK, thanks. Now it works without errors.