|
-
July 9th, 2009, 02:17 AM
#1
AxMSChart rowlabel
Hi,
Current code:
AxMSChart1.RowLabel = "aaa" & ", " & "bbb"
How to write the code, so it'll appear as
aaa
bbb
instead of aaa, bbb?
-
July 9th, 2009, 11:34 AM
#2
Re: AxMSChart rowlabel
You'd have to split the string into values, then use this, to strip out the center value
Code:
Dim a as string = "aaa" : Dim b as string = "a, " : Dim c as string = "bbb"
String.Format({0}{1}{2}", a, Environment.NewLine, c)
-
July 9th, 2009, 07:53 PM
#3
Re: AxMSChart rowlabel
 Originally Posted by dglienna
You'd have to split the string into values, then use this, to strip out the center value
Code:
Dim a as string = "aaa" : Dim b as string = "a, " : Dim c as string = "bbb"
String.Format({0}{1}{2}", a, Environment.NewLine, c)
You mean AxMSChart1.RowLabel = String.Format("{0}{1}{2}", a, Environment.NewLine, c) ?
i still get "aaabbb" instead of
aaa
bbb.
-
July 9th, 2009, 10:52 PM
#4
Re: AxMSChart rowlabel
Try this:
Code:
AxMSChart1.RowLabel = String.Format("{0}{1}", a & Environment.NewLine, c) ?
or
Code:
AxMSChart1.RowLabel = String.Format("{0}{1}", a & vbCrLf, c) ?
or use Environment.NewLine as b, and print a,b,c
Is your label set to MultiLine? That's probably the answer, now that I think of it
-
July 10th, 2009, 01:15 AM
#5
Re: AxMSChart rowlabel
 Originally Posted by dglienna
Try this:
Code:
AxMSChart1.RowLabel = String.Format("{0}{1}", a & Environment.NewLine, c) ?
or
Code:
AxMSChart1.RowLabel = String.Format("{0}{1}", a & vbCrLf, c) ?
or use Environment.NewLine as b, and print a,b,c
Is your label set to MultiLine? That's probably the answer, now that I think of it
Still cannot haha.. The AxMSChart don't have the multiline function. =x
-
July 10th, 2009, 01:37 AM
#6
Re: AxMSChart rowlabel
Set the HEIGHT to double and try
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|