473,473 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to get a chart title from a worksheet cell in c#?

ivo
Hello,
how do I link a worksheet cell with chart title field in c#?

Ivo

May 30 '06 #1
4 2757
you need to say a little bit more than that to get help. the last psychic in
here quit...

--

________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------

"ivo" <iv******@gmx.net> wrote in message
news:11**********************@i39g2000cwa.googlegr oups.com...
Hello,
how do I link a worksheet cell with chart title field in c#?

Ivo

May 31 '06 #2
ivo

Hi Alvin,

I am trying in c# to put a formula to chart title field:

chart.ChartTitle.Text = "=Sheet1!$A$1";

The result is, I get as title the text of field A1,
but only once. If I change A1 to another text,
the chart title would not change.
There is not any link/connection to worksheet.

Ivo

you need to say a little bit more than that to get help. the last psychic in
here quit...

--

________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------

"ivo" <iv******@gmx.net> wrote in message
news:11**********************@i39g2000cwa.googlegr oups.com...
Hello,
how do I link a worksheet cell with chart title field in c#?

Ivo


May 31 '06 #3
"ivo" <iv******@gmx.net> wrote in message
news:11*********************@i40g2000cwc.googlegro ups.com...
I am trying in c# to put a formula to chart title field:

chart.ChartTitle.Text = "=Sheet1!$A$1";

The result is, I get as title the text of field A1,
but only once. If I change A1 to another text,
the chart title would not change.
There is not any link/connection to worksheet.


I suggest you use the Excel Macro Recorder to create the VBA code for you
which will achieve what you want, then convert it to C#.
May 31 '06 #4
ivo
Mark,
sorry.
The code make by macro recorder can not be taken to c#.
The formula is not taken.
Ivo
Mark Rae schrieb:
"ivo" <iv******@gmx.net> wrote in message
news:11*********************@i40g2000cwc.googlegro ups.com...
I am trying in c# to put a formula to chart title field:

chart.ChartTitle.Text = "=Sheet1!$A$1";

The result is, I get as title the text of field A1,
but only once. If I change A1 to another text,
the chart title would not change.
There is not any link/connection to worksheet.


I suggest you use the Excel Macro Recorder to create the VBA code for you
which will achieve what you want, then convert it to C#.


May 31 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Brian Shade | last post by:
Hi all. I am having a bit of a problem with my Perl script and the creation of a chart. I can create the chart and create a new SeriesCollection. I then specify the XValues and the Values parameter...
22
by: PeteCresswell | last post by:
I've been to http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mschrt/html/vbobjtitleobject.asp, but still don't have a clue. For example, I've got a chart object namde...
1
by: Steven | last post by:
Hi there, I am trying to export a chart using the Excel11 object from C#. I can properly open workbooks and read cells, but calling Export() on the Chart object throws a COMException ...
0
by: Frank M. Walter | last post by:
Hello, it is possible to link a chart title to a cell via vba macro: Sub Makro2() ActiveSheet.ChartObjects("Diagramm 1").Activate ActiveChart.ChartTitle.Select Selection.Text =...
7
by: vbnetdev | last post by:
My boss wants this done in a day. I would be happy with a week! Anyway, I have a dataset filled with data and need to populate an MS word chart with it when writing a report. Any tutorials or...
0
by: c0dergirl | last post by:
This c# program allows you to select multiple items from a listbox. For each selected item, a worksheet is created in the workbook with some information. Right now I create a chart that plots some...
5
kadghar
by: kadghar | last post by:
Most of the times VBA is used with variables. Objects (such as worksheets, cells or databases) are only used when we read their properties (value, formula, font...) or we use a method (save,...
3
by: sejal17 | last post by:
hello Can any one tell me how to read multiple worksheets from a single excel file.I have stored that excel in xml file.so i want to read that xml that has multiple worksheet.And i want to store...
3
by: sejal17 | last post by:
hello Can any one tell me how to read multiple worksheets from a single excel file.I have stored that excel in xml file.so i want to read that xml that has multiple worksheet.And i want to store...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.