Page 1 of 1
Can I Set the Title on Export Dialog?
Posted: Wed Apr 29, 2009 7:59 am
by 13050364
Hello Support
Im using the ShowExportDialog() function to let the user save a chart.
However Id like to have the chart name shown in the Title bar of the TeeChart Export Dialog box. Can I do this?
cheers
Posted: Wed Apr 29, 2009 8:22 am
by 13050364
Sorry guys please ignore that question. I worked it out myself after a few seconds thought. ie.
Steema.TeeChart.Editor editor1 = new Steema.TeeChart.Editor(theController.Chart);
editor1.Title = "My Chart";
editor1.ShowModal();
Posted: Wed Apr 29, 2009 8:31 am
by 13050364
Actually the above displays the Editor dialog. Im not sure how I display the Export Dialog in a way that lets me change the title.
Posted: Wed Apr 29, 2009 9:44 am
by 10050769
Hello Dave,
I find two solutions for your problem, I recomend that check the following codes and comprove that works fine.
First example:
You could use a button for open the Editor using
ShowEditorDialog:
Code: Select all
private void button1_Click(object sender, EventArgs e)
{
Steema.TeeChart.Editors.Export.ExportEditor expEditor1 = new Steema.TeeChart.Editors.Export.ExportEditor(tChart1.Chart, null);
expEditor1.Text = "my export editor";
expEditor1.ShowDialog();
}
Second example:
You could use
tChart1.Draw() before the shows Editor for example:
Code: Select all
public void InitializeChart()
{
Steema.TeeChart.Styles.Line l = new Steema.TeeChart.Styles.Line(tChart1.Chart);
tChart1.Aspect.View3D = false;
tChart1[0].FillSampleValues();
tChart1.Draw();
Steema.TeeChart.Editors.Export.ExportEditor expEditor1 = new Steema.TeeChart.Editors.Export.ExportEditor(tChart1.Chart, null);
expEditor1.Text = "my export editor";
expEditor1.ShowDialog();
}
Thanks,
I hope that helps.
Posted: Wed Apr 29, 2009 10:31 am
by 13050364
Thanks Sandra your first solution works perfectly.