Board index » delphi » Printing multiple Chart series on multiple pages

Printing multiple Chart series on multiple pages

Hi,

I have a chart with multiple inactive series and 1 active series.  When I
print, I want to have a different series on each page of my QReport.

I can put any series onto the first page, but I can't seem to make it start
a new page and put the next series on that.

Can anyone help please?

(Using Delphi 5 and the Quickreport, QRChart and TChart that come with it)

Thanks,

Rik.

 

Re:Printing multiple Chart series on multiple pages


Hi,

I found a way to do this now:

In case anyone else needs to do this, I attached a dataset containing dummy
records to force the page splits to happen without me manually doing it,
then in my OnStartPage I added this code:

    for i:=0 to qrchart1.chart.SeriesCount-1 do
    begin
           qrchart1.chart.serieslist[i].active:=false;
    end;
    qrchart1.chart.serieslist[quickrep1.PageNumber-1].active:=true;

This switches to a different series for each consecutive page.

Hope this helps someone else,

Rik.

Quote
Rik Barker <rik.bar...@visionsoft.com> wrote in message

news:3a9cd39e$1_2@dnews...
Quote
> Hi,

> I have a chart with multiple inactive series and 1 active series.  When I
> print, I want to have a different series on each page of my QReport.

> I can put any series onto the first page, but I can't seem to make it
start
> a new page and put the next series on that.

> Can anyone help please?

> (Using Delphi 5 and the Quickreport, QRChart and TChart that come with it)

> Thanks,

> Rik.

Other Threads