trichview.com

trichview.support




Re: ChartDemo problem 1: TRVChartItemInfo information lost...


Return to index


Author

Message

Sergey Tkachenko

Posted: 08/30/2002 14:58:07


Hi,


Yes, there is a problem in ChartItem - when created with constructor

CreateEx (as in the demo), it has StyleNo property = rvsComponent.

So it is saved and loaded as standard RV TRVControlItemInfo item class.


Solution: add a new constructor (in addition to Create):


constructor TRVChartItemInfo.CreateEx(RVData: TPersistent; AChart: TChart;

AVAlign: TRVVAlign);

begin

  inherited CreateEx(RVData, AChart, AVAlign);

  StyleNo := rvsChart;

end;


>

> Hi Sergey!

>

> Thank you very much for your references to the Chart demo regarding my

printing

> problems!

>

> However, I encounter two problems when running this demo (and implementing

> the same functionality myself).

>

> 1. The TRVChartItemInfo information seems to be "lost" somewhere when

saving

> the file containing the charts, exiting the app, running it again and

loading

> back the file. When printing the loaded file, it doesnt trig the

TRVChartItemInfo.Print

> method, and the page output is blank. How to solve this?

>

>





Powered by ABC Amber Outlook Express Converter