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.

Tue Nov 07, 2017 2:29 pm

Try to put the logo on every page without border.
See my attachment. Thanks

fmasfar
 
Posts: 7
Joined: Mon Jun 26, 2017 2:58 pm

Wed Nov 08, 2017 3:42 am

Hello fmasfar,

Thanks for your inquiry.
In regards to your need, you could set the line format of the image shape. Please refer to the code below.
Code: Select all
   
 ISlide slide=presentation.Slides[presentation.Slides.Count - 1];
 IEmbedImage img = slide.Shapes.AppendEmbedImage(ShapeType.Rectangle, ImageLogoMan, rect_LogoMan);
 int index = slide.Shapes.IndexOf(img as IShape);
 slide.Shapes[index].Line.FillFormat.FillType = FillFormatType.None;


Sincerely,
Jane
E-iceblue support team
User avatar

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

Fri Nov 10, 2017 8:48 am

Hi fmasfar,

Greetings from E-iceblue!
Has your issue been resolved?
Your feedback will be greatly appreciated.

Sincerely,
Jane
E-iceblue support team
User avatar

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

Mon Nov 13, 2017 1:32 pm

Unfortunately, I still get the same result. See attachment for pic's and code.Thanks

fmasfar
 
Posts: 7
Joined: Mon Jun 26, 2017 2:58 pm

Tue Nov 14, 2017 1:37 am

Hello fmasfar,

I have noticed that you have appended the image "logoman" in the same place twice, and for the second time, you didn't set the line format, thus the border occurs. please change your code to below.

Code: Select all
             
       //shared images for several pages:
        string ImageLogoMan = Server.MapPath("~/Dashboards/DB_CustomerExperience_Images/LogoMan.jpg");
        RectangleF rect_LogoMan = new RectangleF(10, 10, 60, 60);
        string ImagePoweredBy = Server.MapPath("~/Dashboards/DB_CustomerExperience_Images/PbIPbP.PNG");
        RectangleF rect_PoweredBy = new RectangleF(170, 510, 400, 18);

        #region Page4
        //need to know if the total dollars invoiced is less than $1 if so dont display the page.
        decimal TotInv1 = 0.0M;
        foreach (DataRow dr in ds_CustomerReport1.Tables[4].Rows)
        {
            TotInv1 = TotInv1 + Convert.ToDecimal(dr[1]);
        }

        if (TotInv1 > 1)
        {
            presentation.Slides.Append();
            //add new shape to PPT document         

            //add the logoman and powered by
            ISlide slide = presentation.Slides[presentation.Slides.Count - 1];

            IEmbedImage img = slide.Shapes.AppendEmbedImage(ShapeType.Rectangle, ImageLogoMan, rect_LogoMan);
            int index = slide.Shapes.IndexOf(img as IShape);
            slide.Shapes[index].Line.FillFormat.FillType = FillFormatType.None;

            img = slide.Shapes.AppendEmbedImage(ShapeType.Rectangle, ImagePoweredBy, PoweredBy);
            index = slide.Shapes.IndexOf(img as IShape);
            slide.Shapes[index].Line.FillFormat.FillType = FillFormatType.None;
        }
        #endregion


Sincerely,
Jane
E-iceblue support team
User avatar

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

Tue Nov 14, 2017 2:37 pm

Got it.
It's working! Thanks Jane!

fmasfar
 
Posts: 7
Joined: Mon Jun 26, 2017 2:58 pm

Wed Nov 15, 2017 1:21 am

Hi fmasfar,

Thanks for your feedback.
Please feel free to contact us if you need any assistance.

Sincerely,
Jane
E-iceblue support team
User avatar

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

Return to Spire.Presentation