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

Builder controls and RB14.06

edited November 2012 in General
Hi,

Is BuilderControls still supported in rb14? SimpleGrid does not display.
Looking at the code, the draw() procedure expects either a
TppPrintDevice or TppScreenDevice, but it only gets TppGraphicsDevice.
Changing the "if" statement to also allow TppGraphicsDevice allow the
outline of the grid to show, but there are no grid lines.

The FColCount and FRowCount properties are correct on the
TDrawSimpleGrid right up until "FinishReport" is called, and then they
both revert to 1.

Can anyone shed any light on this?

Thanks,

Steve Branley

Comments

  • edited November 2012
    You can download the latest from this page. I just updated it with a fix for
    the rendering issue, thanks for reporting this.

    http://digital-metaphors.com/download/report_component_library.html

    -
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited November 2012
    Thanks Nard,

    That works fine, but we had to make some changes to the dpk's that you
    may want to be aware of:

    The "requires" lines in both DPKs refer to the 1010 versions of the
    files rather than the 1412 versions (this is in the zip file intended
    for RB14 - looks like a copy/paste job).

    The "contains" line in BuilderControlsPackage.dpk causes a "Unit name
    mismatch" error when building the project as the ".pas" has been left on
    the end of the left-hand unit name, i.e:
    BuilderPDFRendererGrid.pas in 'BuilderPDFRendererGrid.pas'
    should be:
    BuilderPDFRendererGrid in 'BuilderPDFRendererGrid.pas'

    With those changes it builds nicely and fixes the grid issue.

    Thanks,

    Steve


  • edited November 2012
    Thanks for the feedback, I made those corrections and refreshed the download
    file on our server.

    -
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.