Loading XML to TRVReportHelper.RichView

General TRichView support forum. Please post your questions here
Post Reply
DmitriPopov
Posts: 29
Joined: Tue Dec 15, 2009 10:01 am

Loading XML to TRVReportHelper.RichView

Post 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?
Sergey Tkachenko
Site Admin
Posts: 17308
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

1) What version of TRichView and RichViewXML?
2) Do you call RVReportHelper.RichView.Format? (you must not)
DmitriPopov
Posts: 29
Joined: Tue Dec 15, 2009 10:01 am

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17308
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
DmitriPopov
Posts: 29
Joined: Tue Dec 15, 2009 10:01 am

Post by DmitriPopov »

Romoving "Format" is the only code change that is required?
Sergey Tkachenko
Site Admin
Posts: 17308
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Yes
DmitriPopov
Posts: 29
Joined: Tue Dec 15, 2009 10:01 am

Post by DmitriPopov »

OK, thanks. Now it works without errors.
Post Reply