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

TeeChart Paging

edited May 2003 in General
I'm using RB 7.01, Delphi 5, TeeChart 4.02. My first report using
TppDBTeeChart works beautifully. It's set up to display data points for
up to 12 months. What I can't figure out is how to activate the paging
mechanism in the TeeChart component to display months 13 and beyond in a
new page. PointsPerPage is set to 12 but no subsequent pages are
printed. The ppReport component's AutoStop is set to false.

Mark Shapiro
infocusNOJUNK@swbell.net

Comments

  • edited May 2003
    Oops, AutoStop is set to true.

    Mark Shapiro
    infocusNOJUNK@swbell.net
  • edited May 2003
    Mark,

    TeeChart was not designed to be placed in a report. We have more or less
    forced it to work with ReportBuilder. In your situation, you will need to
    create the charts separate of ReportBuilder, then import the image of the
    chart to the report as you need it. For more information on this tecnique,
    search this newsgroup for past posts by Ed Dressel on the topic. He has
    helped many others out with this.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited May 2003
    Use a JIT pipeline that has as its record count the number of pages and a
    graphic for the chart (or maybe just drop a chart on the report and let it
    update itself--I donno haven't played with paging and how it would work).

    --
    Ed Dressel
    Team DM
  • edited May 2003
    Thanks for the suggestions. Here's what I finally decided to do. This
    program is in use at multiple two-tier installations. It would certainly
    complicate my maintenance requirements if I had to store and update the
    reports in multiple databases, although I would like to apply that
    approach on another project.

    Most of my users will be generating reports over no more than a 24 month
    period. So for up to 12 months, the bar chart will display on a page in
    portrait mode; for 13-24 months, it will flip over to landscape mode. A
    time series of more than 24 months will be prohibited. The width of the
    bar chart will scale based on the number of months selected. I've also
    added code to scale the bar width and axis depth to maintain the same
    absolute dimensions regardless of chart width. This solution will
    satisfy the bulk of my users within the contraints of the TppDBTeeChart
    component.
This discussion has been closed.