Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents. Get free and professional technical support for Spire.Presentation for .NET, Java, Android, C++, Python.

Fri May 18, 2018 10:17 am

Dear rokaf,

Thanks for your inquiry.
1. We will look into it, if there is any update, we will let you know.
2. I am afraid the only solution now is waiting for the new feature. Our Dev team has done new feature and currently it is under testing . Once the hotfix is available, we will let you know.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Fri May 18, 2018 12:23 pm

I found how to do it in Power Point and wish I could do it via C# code.
Betsy.jiang wrote:Dear rokaf,

Thanks for your inquiry.
1. We will look into it, if there is any update, we will let you know.
2. I am afraid the only solution now is waiting for the new feature. Our Dev team has done new feature and currently it is under testing . Once the hotfix is available, we will let you know.

Sincerely,
Betsy
E-iceblue support team

rokaf
 
Posts: 37
Joined: Thu May 10, 2018 9:30 am

Mon May 21, 2018 1:32 am

Dear rokaf,

Glad to hear you have found the solution for your issue#1.
We will inform you as soon as the hotfix which includes the new feature is available.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Tue May 22, 2018 1:05 pm

Hello!
I have new issue: how can I append target picture to the marker?
Like on target.png

I tried this:
Code: Select all
                CurrentSeries.MarkerFill.Line.FillType = FillFormatType.Solid;
                CurrentSeries.MarkerFill.Line.SolidFillColor.Color = Color.SeaGreen;
                CurrentSeries.MarkerFill.Line.Width = 4;
                CurrentSeries.MarkerFill.Fill.PictureFill.Picture.EmbedImage = Presentation.Images.Append(targetimage);


Betsy.jiang wrote:Dear rokaf,

Glad to hear you have found the solution for your issue#1.
We will inform you as soon as the hotfix which includes the new feature is available.

Sincerely,
Betsy
E-iceblue support team

rokaf
 
Posts: 37
Joined: Thu May 10, 2018 9:30 am

Wed May 23, 2018 4:20 am

Hello,

Thanks for your inquiry.
Kindly note that before setting fill content, the declaration of fill pattern is indispensable.
Code: Select all
CurrentSeries.MarkerFill.Fill.FillType = FillFormatType.Picture;
CurrentSeries.MarkerFill.Fill.PictureFill.Picture.EmbedImage = Presentation.Images.Append(targetimage);


Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Wed May 23, 2018 9:07 am

Unfortunately it doesn't work.
Here is my function code:
Code: Select all
private void BuildTargets(IList<Target> targets, double vsecAzimInDegree)
        {
           // BuildTarget();
            for (int i = 0; i < targets.Count; i++)
            {
                var target = targets[i];
                var index = Report.Trajectories.Count + i;

                var targetimage = imageProvider.GetTarget();
                CurrentSeriesIndex = index;

                ChartData.SetCaption(index, target.Name);

                double vsAzim = vsecAzimInDegree * Math.PI / 180;
                double vs = target.PositionX * Math.Sin(vsAzim) + target.PositionY * Math.Cos(vsAzim);
                ChartData.SetX(index, 0, vs);
                ChartData.SetY(index, 0, target.TVD);

                CurrentSeries.YValues = ChartData.YValues(index, 1);
                CurrentSeries.XValues = ChartData.XValues(index, 1);

                CurrentSeries.Line.FillType = FillFormatType.Solid;
                CurrentSeries.Line.SolidFillColor.Color = Color.SeaGreen;

                CurrentSeries.MarkerFill.Line.FillType = FillFormatType.Solid;
                CurrentSeries.MarkerFill.Line.SolidFillColor.Color = Color.SeaGreen;
                CurrentSeries.MarkerFill.Line.Width = 4;

                CurrentSeries.MarkerFill.Fill.FillType = FillFormatType.Picture;
                CurrentSeries.MarkerFill.Fill.PictureFill.Picture.EmbedImage = Presentation.Images.Append(targetimage);
               

                CurrentSeries.MarkerStyle = ChartMarkerType.X;
                CurrentSeries.MarkerSize = 15;

                CurrentSeries.DataLabels.Add($"{target.Name}");
                CurrentSeries.DataLabels.LeaderLinesVisible = true;

            }
        }


Jane.Bai wrote:Hello,

Thanks for your inquiry.
Kindly note that before setting fill content, the declaration of fill pattern is indispensable.
Code: Select all
CurrentSeries.MarkerFill.Fill.FillType = FillFormatType.Picture;
CurrentSeries.MarkerFill.Fill.PictureFill.Picture.EmbedImage = Presentation.Images.Append(targetimage);


Sincerely,
Jane
E-iceblue support team

rokaf
 
Posts: 37
Joined: Thu May 10, 2018 9:30 am

Wed May 23, 2018 10:09 am

Dear rokaf,

To help us solve your issue quickly, please share us the expected result file(you could generate it by MS PowerPoint). Then we will look into it and provide corresponding code for you.

Many thanks,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Thu May 24, 2018 2:26 pm

Hello
How can I hide all charts except primary via code?
Like here on PrimaryChart.jpg

Betsy.jiang wrote:Dear rokaf,

To help us solve your issue quickly, please share us the expected result file(you could generate it by MS PowerPoint). Then we will look into it and provide corresponding code for you.

Many thanks,
Betsy
E-iceblue support team

rokaf
 
Posts: 37
Joined: Thu May 10, 2018 9:30 am

Fri May 25, 2018 3:18 am

Dear rokaf,

Thanks for your inquiry.
At present, our Spire.Presentation only supports removing the series with the code "chart.Series.RemoveAt(0)". It doesn't support hiding the series now, we will consider adding the new feature in our future upgrade. Once there is any news, we will let you know.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Thu Jun 28, 2018 8:17 am

Dear rokaf,

Glad to inform you that the new feature hiding a series has been done, please download Spire.Presentation Pack Hotfix Version:3.6.9, sample code for your reference:
Code: Select all
            ChartSeriesDataFormat ser = chart.Series[0];
            //hide the series
            ser.IsHidden = true;

Looking forward to your feedback.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Mon Jul 02, 2018 7:47 am

Dear rokaf,

Greetings from E-iceblue.
Did you test the new feature? Has your issue been solved ?

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Fri Aug 03, 2018 11:34 am

Yes, thank you!

But I have new question:
How can I create point like this?(point jpg)

Betsy.jiang wrote:Dear rokaf,

Greetings from E-iceblue.
Did you test the new feature? Has your issue been solved ?

Sincerely,
Betsy
E-iceblue support team

rokaf
 
Posts: 37
Joined: Thu May 10, 2018 9:30 am

Mon Aug 06, 2018 6:55 am

Hello,

Thanks for your post.
Please refer to below code. If this is not what you want, please provide a sample ppt file which shows your desired effect.
Code: Select all
IChart chart = ppt.Slides[0].Shapes[0] as IChart;
ChartDataLabelCollection dataLabels = chart.Series[0].DataLabels;

//Specify the location of datalabel
ChartDataLabel label = dataLabels.Add();
label.ID = 0;
label.LabelValueVisible = true;
label.X = 0.1f;
label.Y = -0.1f;

//set the front type of the datalabels' leader line
dataLabels.LeaderLines.LineBeginType = LineEndType.Oval;

//Set the color of leader line
dataLabels.LeaderLines.SolidFillColor.Color = Color.Black;

//Set the front size of the dataLabels' leader line
dataLabels.LeaderLines.LineBeginWidth = LineEndWidth.Wide;
dataLabels.LeaderLines.LineBeginLength = LineEndLength.Long;

//Save the ppt file
ppt.SaveToFile("result.pptx", FileFormat.Pptx2013);

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1195
Joined: Tue Sep 27, 2016 1:06 am

Tue Aug 07, 2018 2:32 am

Dear rokaf,

Glad to inform you we released Spire.Office Platinum (DLL Only) Version:3.8.0 which includes the new feature of changing the shape of datalabel and hiding series.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Wed Aug 15, 2018 6:37 am

Dear rokaf,

Greetings for E-iceblue.
Did my code meet your need for creating point?
Your feedback will be greatly appreciated.

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1195
Joined: Tue Sep 27, 2016 1:06 am

Return to Spire.Presentation