output of a chart is messed up

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
OMP
Newbie
Newbie
Posts: 21
Joined: Mon Dec 10, 2012 12:00 am

output of a chart is messed up

Post by OMP » Fri Jun 21, 2013 8:32 am

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
Attachments
Capture.PNG
Capture.PNG (50.33 KiB) Viewed 7915 times

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: output of a chart is messed up

Post by Narcís » Fri Jun 21, 2013 2:10 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: output of a chart is messed up

Post by Sandra » Fri Jun 21, 2013 2:19 pm

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
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

OMP
Newbie
Newbie
Posts: 21
Joined: Mon Dec 10, 2012 12:00 am

Re: output of a chart is messed up

Post by OMP » Fri Aug 02, 2013 1:06 pm

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

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: output of a chart is messed up

Post by Sandra » Mon Aug 05, 2013 12:41 pm

Hello Marijke,

I am glad that you can find the cause of your problem :D

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply