General TRichView support forum. Please post your questions here
pdcuser
Posts: 17 Joined: Tue Jan 17, 2006 9:00 pm
Post
by pdcuser » Mon Jul 11, 2011 6:29 pm
After upgrading to TRichView 13.0.5, I am receiving a DivideByZero error in both TRVStyle.GetAsDevicePixelsX and TRVStyle.GetAsDevicePixelsY. PSaD.ppixScreen and PSaD.ppixDevice are both set to 0 by the time this routine executes in certain cases.
Sergey Tkachenko
Site Admin
Posts: 17566 Joined: Sat Aug 27, 2005 10:28 am
Contact:
Post
by Sergey Tkachenko » Mon Jul 11, 2011 8:24 pm
Can you create a simple project reproducing this problem and send it to me?
pdcuser
Posts: 17 Joined: Tue Jan 17, 2006 9:00 pm
Post
by pdcuser » Mon Jul 11, 2011 9:33 pm
Yes I will. Give me a day or two to isolate the issue.
pdcuser
Posts: 17 Joined: Tue Jan 17, 2006 9:00 pm
Post
by pdcuser » Mon Jul 11, 2011 10:53 pm
I just submitted an email with the title, "Sample Application." Let me know if it doesn't reach you.
Sergey Tkachenko
Site Admin
Posts: 17566 Joined: Sat Aug 27, 2005 10:28 am
Contact:
Post
by Sergey Tkachenko » Wed Jul 13, 2011 7:50 pm
Do not call RVReportHelper.RichView.Format. RVReportHelper is formatted when you call its Init method.
This is quite a common error... In the next update, RVReportHelper.RichView.Format will raise a special exception.
pdcuser
Posts: 17 Joined: Tue Jan 17, 2006 9:00 pm
Post
by pdcuser » Wed Jul 13, 2011 11:07 pm
Thanks!