Page 1 of 1
output of a chart is messed up
Posted: Fri Jun 21, 2013 8:32 am
by 15664347
Dear,
We have an issue with our chart when printing. When we print the chart (with Chart Editor > Print), and we choose PDF Creator, we get the result as what you can see in the attached image. To get the image, I have made a screenshot of the pdf, because I can't upload pdf files to this topic.
Do you have any idea what can be wrong? We only experience this issue on one pc. Could it be related with locale settings on that particular computer? Did you ever experience these kind of issues with other TeeChart users?
Thanks in advance,
Marijke Van Bergen
OM Partners
Re: output of a chart is messed up
Posted: Fri Jun 21, 2013 2:10 pm
by narcis
Hi Marijke,
To get the image, I have made a screenshot of the pdf, because I can't upload pdf files to this topic.
You could compress it in a zip package and upload it.
Do you have any idea what can be wrong?
I'm afraid not. If you send us the code or .ten file generating that chart we will test it here.
We only experience this issue on one pc. Could it be related with locale settings on that particular computer?
Most likely. Can you visualize this PDF file correctly in other computers? PDF files created in other computers can be seen correctly on this PC?
Did you ever experience these kind of issues with other TeeChart users?
Not that I'm aware of.
Thanks in advance.
Re: output of a chart is messed up
Posted: Fri Jun 21, 2013 2:19 pm
by 10050769
Hello Marijke Van Bergen,
To add more information to the answer of NarcĂs, I have made a code where the problem doesn't occur for us in latest version of TeeChartFor.Net 2013
Code: Select all
private void InitializeChart()
{
string[] labels = new string[]{"Label of first item","Label of second item","Label of third item","Label of item 4",
"Label of item 5","Label of item 5", "Label of item 6","Label of item 7","Label of item 8"};
// tChart1.Aspect.View3D = false;
tChart1.Dock = DockStyle.Fill;
Steema.TeeChart.Styles.Line line1 = new Line(tChart1.Chart);
line1.Add(1, 45);
line1.Add(2, 50);
line1.Add(3, 60);
line1.Add(4, 70);
line1.Add(5, 45);
line1.Add(6, 35);
line1.Add(7, 25);
line1.Add(8, 50);
line1.Marks.Visible = true;
line1.Marks.Font.Size = 15;
line1.GetSeriesMark += line1_GetSeriesMark;
AddCustomLabels(line1,labels);
line1.Pointer.Visible = true;
tChart1.Axes.Bottom.Labels.Angle = 45;
tChart1.Axes.Left.Labels.Font.Size = 15;
tChart1.Panel.MarginLeft = 10;
}
void line1_GetSeriesMark(Series series, GetSeriesMarkEventArgs e)
{
e.MarkText = "Series:" + series.YValues[e.ValueIndex].ToString();
}
private void AddCustomLabels(Steema.TeeChart.Styles.Series s, string[] arrayLabels)
{
tChart1.Axes.Bottom.Labels.Items.Clear();
for (int i = 0; i < s.Count; i++)
{
tChart1.Axes.Bottom.Labels.Items.Add(s.XValues[i], arrayLabels[i]);
}
}
private void button2_Click(object sender, EventArgs e)
{
tChart1.Export.Image.PDF.Save(@"C:\tChart1.pdf");
}
private void button1_Click(object sender, EventArgs e)
{
tChart1.ShowEditor();
}
As you see there is two buttons to compare the result of exportation in pdf format. The first opens the TChart editor to allow export the image by Editor. The second allows you export directly the chart as pdf. We would be grateful, if you can't reproduce the problem with my code, modifies code because we can reproduce the problem here and try to find a solution for you.
On the other hand, could you tell us which version of TeeChartFor.Net are you using?
Thanks
Re: output of a chart is messed up
Posted: Fri Aug 02, 2013 1:06 pm
by 15664347
Thanks everyone for your support. In the meantime we figured out what the cause of the problem was.
It was due to another third party application.
Anyway,
thanks for your help.
Marijke
Re: output of a chart is messed up
Posted: Mon Aug 05, 2013 12:41 pm
by 10050769
Hello Marijke,
I am glad that you can find the cause of your problem
Thanks,