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
output of a chart is messed up
output of a chart is messed up
- Attachments
-
- Capture.PNG (50.33 KiB) Viewed 7957 times
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: output of a chart is messed up
Hi Marijke,
Thanks in advance.
You could compress it in a zip package and upload it.To get the image, I have made a screenshot of the pdf, because I can't upload pdf files to this topic.
I'm afraid not. If you send us the code or .ten file generating that chart we will test it here.Do you have any idea what can be wrong?
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?We only experience this issue on one pc. Could it be related with locale settings on that particular computer?
Not that I'm aware of.Did you ever experience these kind of issues with other TeeChart users?
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: output of a chart is messed up
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
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
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();
}
On the other hand, could you tell us which version of TeeChartFor.Net are you using?
Thanks
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: output of a chart is messed up
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
It was due to another third party application.
Anyway,
thanks for your help.
Marijke
Re: output of a chart is messed up
Hello Marijke,
I am glad that you can find the cause of your problem
Thanks,
I am glad that you can find the cause of your problem
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |