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.

Thu Jun 27, 2019 11:44 pm

When saving using the latest version of Spire, the slide background went missing when opened by VSTO.


How to replicate:
1. Download the solution below
2. Restore packages and build
3. Start the application (NOTE this will add an addon on your PowerPoint)
4. Open the presentation file attached below
5. Press the "Press Me" button on at the home ribbon
Image
6. You should see a new inserted slide there. Notice that it's background is white.
7. Close Powerpoint
7. Now change the solution's Spire version to 4.3.9.
8. Rebuild.
9. Start application.
10. Open the presentation file attached below.
11. Press the "Press Me" button
12. You should see a new inserted slide with the correct Red background.

Here's the code I'm using in case you are not comfortable with running the solution

Code: Select all
        private void Button1_Click(object sender, RibbonControlEventArgs e)
        {
            var preStream = new MemoryStream(Resource1.missingbg);
            preStream.Seek(0, SeekOrigin.Begin);
            var tmpPptxPath = Path.GetTempFileName();
            using (var spirePresentation = new Presentation(preStream, FileFormat.Auto))
            {
                spirePresentation.SaveToFile(tmpPptxPath, FileFormat.Auto);
            }
            var currentComSlide = new List<IP.Slide> { Globals.ThisAddIn.Application.ActiveWindow.Selection.SlideRange[1] }.FirstOrDefault();
            var pre = (IP.Presentation)currentComSlide.Parent;
            pre.Slides.InsertFromFile(tmpPptxPath, 1);
        }

AdamShakhabov
 
Posts: 40
Joined: Wed Sep 26, 2018 12:03 pm

Fri Jun 28, 2019 5:55 am

Hello,

Thank you for providing detailed information.
I have replicated the background issue when using the latest Spire.Presentation Version 4.6.5. The issue has been forwarded to our Dev team for further investigating and fixing. If there is any progress, I will inform you .
Apologize for the inconvenience caused.

Sincerely,
Nina
E-iceblue support team
User avatar

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

Thu Jul 04, 2019 10:19 am

Hi,

Glad to inform you that the reported issue has been fixed. Welcome to download the release Spire.Presentation Pack Version:4.7 from the following link.
https://www.e-iceblue.com/Download/download-presentation-for-net-now.html

Sincerely,
Nina
E-iceblue support team
User avatar

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

Mon Jul 08, 2019 9:54 am

Hi,

Greetings from E-iceblue!
Has your issue been resolved with the hotfix?
Thanks in advance for your valuable feedback and time.

Sincerely,
Nina
E-iceblue support team
User avatar

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

Thu Jul 18, 2019 5:30 am

Hello Nina, latest version resolved the issue. Thanks a lot :)

AdamShakhabov
 
Posts: 40
Joined: Wed Sep 26, 2018 12:03 pm

Thu Jul 18, 2019 5:42 am

Hi,

Thanks for your feedback.
If there is anything we can do for you in the future. Please feel free to write back.
Wish you all the best!

Sincerely,
Nina
E-iceblue support team
User avatar

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

Return to Spire.Presentation