How can I chart type property

Hi All,

How can I change the chart type to use source code?

thanks

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 8:17PM
    Hi your question is somewhat vague, please explain what you are trying to do.
    regards ;)
  • edited 8:17PM
    pardon I am not perfect speak english,

    I want to change chart settings of page2 from page1

    example :

    page2.chart1.chart.Type = Pie or page2.chart1.chart.topon = 5 ...

    thanks
  • gordkgordk St.Catherines On. Canada.
    edited 8:17PM
    Some properties belong to chart some to chart options
    sub pagenumber.chartobjname for c

    c.LegendObj := 'Memo2'; // string vals required
    c.ValueObj := 'Memo6';
    //c.Top10Label := ''; // takes a string
    c.ChartOptions.ChartType := 3;//actually byte 0 to 4 valid
    c.ChartOptions.Dim3D := true;
    c.ChartOptions.Top10Num := 0;
    c.ChartOptions.Colored := true;
    c.Top10Label:='Top 10 by';
    c.ChartOptions.ShowLegend :=true;
    c.ChartOptions.ShowAxis :=true;
    c.ChartOptions.ShowMarks := true;
    c.ChartOptions.MarksStyle := 0;
    hope this helps
    regards ;)
  • edited 8:17PM
    Special Thanks ;)
  • edited 8:17PM
    ;)

    I am write onbeforeprint event of page2

    c.ChartOptions.ChartType := 3;//actually byte 0 to 4 valid
    c.ChartOptions.Dim3D := true;
    c.ChartOptions.Top10Num := 0;
    c.ChartOptions.Colored := true;
    c.Top10Label:='Top 10 by';
    c.ChartOptions.ShowLegend :=true;
    c.ChartOptions.ShowAxis :=true;
    c.ChartOptions.ShowMarks := true;

    not work




  • gordkgordk St.Catherines On. Canada.
    edited 8:17PM
    first as i said previously sub your page chartobjectname for c
    c.ChartOptions.ChartType := 3;//actually byte 0 to 4 valid
    you might have to expand a little internaly, the code i gave you an example of was external where "c" was a variable of type tfrchartview.

    page2.chart2.chart.chartoptions

    also try running script in script of chartobject memo
    regards ;)
  • edited 8:17PM
    do you send mail me work a example ?

    aliemreilhan@hotmail.com

    thanks

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.