Page 1 of 1

To Export/Copy Graphs along with legend's list box to other

Posted: Tue Jul 18, 2006 11:32 am
by 8126051
Hi


I have both TChart Componet for graphs drawing and its Legends are described in List box which is other componet

I want to Export or copy to graphs along with legends list box into other programs such as PowerPoint.


Regards,
Basamma

Posted: Tue Jul 18, 2006 11:42 am
by narcis
Hi Basamma,

Please see my reply at your other post.

How to get a print previer of TChart and List box

Posted: Wed Jul 19, 2006 6:58 am
by 8126051
Hello,

I have a T-Chart component which has the graphs and one more list box component which has the list of legends of a graph... now on click of Preview button

I should get a preview of TChart and Legends List box... there shold be a option to move legends list box left,right,top , bottom
can u plz tell me how to do this?

Posted: Wed Jul 19, 2006 10:52 am
by narcis
Hi Basamma,

Sorry but we don't understand what are you exactly trying to get. Could you please send us an example we can run "as-is" to reproduce the problem here?

You can post your files at news://steema.public.attachments newsgroup.

Thanks in advance.

Posted: Wed Jul 19, 2006 12:10 pm
by 8126051
Hello,


I could not attach a file
As we in our company we are using Lotus Notes not Outlook
Now when I clicked on that link I got Server not found

My Major problem is now

1) In a single form I have a T-Chart Component which has Graph(Charts)
And I also Have a List box component which lists legends
2) I can Print Preview, Print and Even export to other programs to power point.
Only a T-Chart but not a List box which is there in the same form.

So I thought I can do like on clicking a button
Passing T-Chart and listbox to another form


Can u please tell me how to pass T-Chart and Listbox to another form?

Regards,
Basamma

Posted: Thu Jul 20, 2006 10:46 am
by narcis
Hi Basamma,

You can pass a reference to the TeeChart and ListBox objects you've created to another form in the Form's constructor, e.g.:

Code: Select all

AnotherForm aForm = new AnotherForm(TChart myChart, ListBox myListBox);

Posted: Fri Jul 21, 2006 6:12 am
by 8126051
Hello,
Can u please tell me how to write a constructor for
Teecahrt (tChart1 ) to list box (chartListBox1).

so the i can pass in this manner wht u have said me in the earlier reply

AnotherForm aForm = new AnotherForm(TChart myChart, ListBox myListBox)

Posted: Fri Jul 21, 2006 6:54 am
by 8126051
Im facing problem with
writing a constroctor for
both TChart1 and for Listbox with name chartListBox1
can u please tell me this?


Regards
Basamma

Posted: Fri Jul 21, 2006 8:18 am
by 8126051
see I have written


Form1 :

Form2 frm = new Form2(this.tChart1);
frm.ShowDialog();

Form2 :

public Form2(tChart1 MytChart)
{
InitializeComponent();
this.tChart1 = MytChart;
}


can u plz correct this error?

Regards
Basamma

Posted: Fri Jul 21, 2006 11:49 am
by narcis
Hi Basamma,

You can also export the chart to a .ten file (TeeChart template file) and pass a memorystream containing the template file in the constructor.

For more information on how to do that please read Tutorial 12 - Exporting and Importing Charts which you'll find at TeeChart's program group.