Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

RB 14.05 and Developer Express 2012.1.3 seem to interfere with each other???

edited August 2012 in General
Hi,

Once in a while I get and "Division by zero"-error on the following line
in procedure PrepareTextEditDrawTextFlags (cxTextEdit):

cxMakeTextRows(ACanvas.Canvas, PChar(Text), Length(Text), R, ATextParams,
ATextRows, ARowCount, (TextRect.Bottom - TextRect.Top + ATextParams.RowHeight
- 1) div ATextParams.RowHeight + 1);

The error isn't always triggered, not even when I execute the exact same
code of my application. The only thing is that it happens since I use version
RB14.
My guess is that RB 14.05 and Developer Express 2012.1.3 interfere with each
other which make the error ocure.

Can you please have a closer look at this, maybe even contact DevExpress
to combine forces?
I know that at least one other user has reported this problem too at DevExpress.

Does anybody else noticed this behaviour (and maybe have a solution for it)?

Thanks,
Stef

Comments

  • edited August 2012
    Hi Stef,

    We're going to need more information about how your application is
    designed and how the cxTextEdit relates to any RB components.

    At what time is the MakeTextRows routine called? Does this occur on
    every machine with every printer?

    If you set the PreviewFormSettings.SinglePageOnly property to True, does
    the issue go away?

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2012
    Hello Nico,

    MakeTextRows is called a numerous number of times. My guess is that it is
    called for every control on the form.

    Why do you suggest setting particulary this property to True?

    On a form I have some DevExpress controls and a TppReport.
    The report is loaded either from a file or from the database.
    Some users have their custom version of the report.
    Pressing the Print-button will initiate the preview on the screen. The error
    might ocure during that of might also ocure only after the report is printed.
    So it is very hard to determine where it goes wrong. Also the error doesn't
    always ocure, which makes it more mysterious.

    Using Delphi XE2 update 4
    RB 14.05
    DevExpress 2012.1.3
    Application is compiled for Win32 platform
  • edited August 2012
    Hello Nico,

    I got some answer on my previously sent E-mail from Nard.
    He suggested the same as you, but put it in the OnLoadEnd-event of the TppReport.
    I'll try to see if this is working for me.

    Regards,
    Stef
This discussion has been closed.