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

Strange behaviour if presented by Webtier

edited December 2005 in Server
This is a sample code on how i make a Gaugebar on my report.

In the preview this works fine, by a normal rsclientreport also, but when
presented to the webtier over html this code results in something strange,
the calculated value is correct but he doesn't change the with of the
capacity_gauge object (tppshape).

But when we print the report over the web (generated to pdf, it works again
!!!)





procedure ...Oncalc(var Value : Variant)

var

lSeatOcc : Double;

lWidth : Integer;

begin

lSeatOcc := 100 /Features['HALL_CAPACITY'] * Features['DSH_TICKETS'];

lWidth := Int(0.8 * lSeatOcc);


Value := lSeatOcc;

Capacity_Gauge.Width := lWidth;

Oeps := lWidth;

Comments

  • edited December 2005

    What is the class type of Capacity_Gauge, is it a custom descendant of
    TppImage?





    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited December 2005
    Was mentioned in the post TppShape.

    Im placing a rectable with a width of 100 as border clwhite brush, and on
    top a filled rectangle with same same brush color as the border of the
    rectangle.
    The widt of the filling object is calculated.


  • edited December 2005

    Can you create a simple example and email to support@digital-metaphors.com
    in zip format. We can check it out in the debugger.





    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited December 2005
    On what data should it be done ?

  • edited December 2005

    The DBDemos data that is included with Delphi.Or a small MS Access database
    if you prefer.




    Best regards,

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