Author |
Topic  |
|
swalkup
9 Posts |
Posted - 29 Jan 2009 : 12:25:38
|
HI! Thanks for the last Help!!!
I am now trying to Text Print on the chart a Row/Col chart. Below is the cade. It seems that the line where the dim is preformed works ok. But when I go into the loop the data seems to print up not down. Is this correct? Or am I goofing up AGAIN?? I have several Colums of data. Is this the war to do it or is there a better way???
Sam
pTransform3 = New CartesianCoordinates(ChartObj.LINEAR_SCALE, ChartObj.LINEAR_SCALE)
pTransform3.SetGraphBorderDiagonal(0.5, 0.1, 0.99, 0.8)
'--------------------------------------------------------------- StartHorz = 0.25
' Print Test Description Dim infoFontTemplate As New ChartText(pTransform3, infoFont, ((TestDescription(0)) & vbCr), StartHorz, 0.1, ChartObj.NORM_PLOT_POS)
For x = 1 To 14
infoFontTemplate.AddNewLineTextString((TestDescription(x)) & vbCr) Next x infoFontTemplate.AddNewLineTextString((TestDescription(15))) chartVu.AddChartObject(infoFontTemplate)
Sam Walkup |
|
swalkup
9 Posts |
Posted - 29 Jan 2009 : 13:21:38
|
Ok I changes the Horzional position from .1 to .5 and that got the first colum of data correct but when I add the second on there is still a problem
This is the code for the second Colum. The .5 for the vertical will not follow the first on Yes I have changed it.. I have 3 more colums to add!!
Dim infoFontTemplate1 As New ChartText(pTransform3, infoFont, ((LowLimit(0)) & vbCr), (StartHorz + 0.5), 0.5, ChartObj.NORM_PLOT_POS)
For x = 1 To 14
infoFontTemplate.AddNewLineTextString(Trim(LowLimit(x)) & vbCr) Next x infoFontTemplate.AddNewLineTextString(Trim(LowLimit(15))) chartVu.AddChartObject(infoFontTemplate1)
Yes I have changed the Horzional position.
Will a loop like this work???
Sam Walkup |
 |
|
quinncurtis
1164 Posts |
Posted - 29 Jan 2009 : 13:34:10
|
Sorry, but we are not able to determine anything based on the code you show. We can't even really follow what you are trying to do, other than you are trying to create some sort of grid of text.
We suggest you continue to work with it. The text goes where you tell it to go. If it isn't, then the positioning values you specify are wrong. If you post any more code, make absolutely sure it is code we can copy into a program and run, with NO unassigned variables. Include a definition and assignment for every variable, or hardcode an explicit value. Also, show some sort of example of how you want the text to look in the graph.
|
 |
|
|
Topic  |
|
|
|