Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 1834 - PDF export of point chart with spherical points does not draw the spheres.
Summary: PDF export of point chart with spherical points does not draw the spheres.
Status: RESOLVED FIXED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: Exporting (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-06 10:59 EDT by Gary Desrochers
Modified: 2017-05-29 09:56 EDT (History)
1 user (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments
Exported chart (19.22 KB, image/png)
2017-04-06 10:59 EDT, Gary Desrochers
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gary Desrochers 2017-04-06 10:59:35 EDT
Created attachment 751 [details]
Exported chart

Library version: Steema TeeChart for .NET 2017 4.1.2017.03140
IDE version: Developer's Studio 2015
.Net version: 4.0
Language: C#
OS: Windows 7 Ultimate 64-bit/Windows 10 64 bit

If a simple chart is created with a single Steema.TeeChart.Styles.Points series with pointer style of Sphere then exported as PDF the PDF file has blank spaces where the "Sphere"s should be.

Code example:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SpherePDFExportIssue
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            InitializeChart();
        }

        private void InitializeChart()
        {
            tChart1.Aspect.View3D = false;

            Steema.TeeChart.Styles.Points TheSeries = new Steema.TeeChart.Styles.Points();
            TheSeries.Marks.Visible = false;
            TheSeries.Pointer.Pen.Visible = false;
            TheSeries.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Sphere;
            TheSeries.Pointer.HorizSize = 7;
            TheSeries.Pointer.VertSize = 7;
            TheSeries.ColorEach = true;
            TheSeries.FillSampleValues();
            tChart1.Series.Add(TheSeries);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            SaveFileDialog saveFileDialog1 = new SaveFileDialog();

            saveFileDialog1.Filter = "txt files (*.pdf)|*.pdf|All files (*.*)|*.*";
            saveFileDialog1.FilterIndex = 1;
            saveFileDialog1.RestoreDirectory = true;

            if (saveFileDialog1.ShowDialog() == DialogResult.OK)
            {
                tChart1.Export.Image.PDF.Width = tChart1.Width;
                tChart1.Export.Image.PDF.Height = tChart1.Height;
                tChart1.Export.Image.PDF.Save(saveFileDialog1.FileName);
            }
        }
    }
}

Drop a chart and a button on the form and use the above code.  Run the code and then push the button to save the chart as PDF.  Look at the output and you should see the same as the attachment.