We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Error While converting Presentation slides to Image

Hi,

While converting Presentation to Image using ConvertToImage(ExportImageFormat.Jpeg) , for one of the slides I am getting the following error.

System.NullReferenceException
  HResult=0x80004003
  Message=Object reference not set to an instance of an object.
  Source=Syncfusion.Presentation.Portable
  StackTrace:
   at Syncfusion.Presentation.TableImplementation.Table.UpdateHeightOfRow(Int32 rowIndex, Single height)
   at Syncfusion.Presentation.TableImplementation.Table.Layout()
   at Syncfusion.Presentation.SlideImplementation.Slide.Layout(Shape shape)
   at Syncfusion.Presentation.SlideImplementation.Slide.Layout()
   at Syncfusion.Presentation.SlideToImageConverter.SlideToImageConverter.ConvertToImage(ISlide slide, ExportImageFormat imageFormat)
   at PptToImage.Program.Main(String[] args) in C:\PptToImage\Program.cs:line 36

Note : The slide contains table with some data, When I tried removing few values from the table , then it worked fine.
Is there any limit on the size of data, allowed  on a slide that can be convert to image?

Thanks.



9 Replies

LE Loketha Erusappan Syncfusion Team December 30, 2019 10:18 AM UTC

Hi Akash,

Thank you for contacting Syncfusion support.

We are unable to reproduce the reported issue with the given details. Could you please provide following details? It will be greatly helpful for us to reproduce and providing a prompt solution.

1. Input Presentation document
2. Syncfusion product version
3. .NET Framework version
4. Project or complete code snippet (To reproduce the issue in our end)
5. OS details
6. Visual studio version

Please let us know if you have any questions.

Regards,
Loketha E
 



CK Christiano Kiss September 2, 2022 03:21 PM UTC

Hi Loketha,

I can confirm that this issue is happening.

I've attached a self-contained project to reproduce the problem.

Some information:

* .NET Core 3.1

* Visual Studio 2019/2022

* Syncfusion 20.2.0.46


Attachment: SyncfusionApp_143d5bb.zip


AN Anto Nihil Sahaya Raj Syncfusion Team September 5, 2022 08:09 AM UTC

Hi Christiano,

We have reproduced the reported issue NullReferenceException throws
while converting a Presentation slides to Image in our end, and we suspect it to be a defect. We will validate this issue and update you with more details on 07th September 2022.

Regards,
Anto Nihil S



AN Anto Nihil Sahaya Raj Syncfusion Team September 7, 2022 12:54 PM UTC

Hi Christiano,

We have confirmed that reported issue NullReferenceException throws while converting a PowerPoint slide to Image” is a defect and we have logged a defect report. We will include the fix for this defect in our weekly NuGet release which is estimated to be available on 27th September 2022.

The status of this bug can be tracked through the below link:
https://www.syncfusion.com/feedback/37592/nullreferenceexception-thrown-while-converting-a-powerpoint-slide-to-image

Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.”

Regards,
Anto Nihil S



AN Anto Nihil Sahaya Raj Syncfusion Team September 27, 2022 04:45 PM UTC

Hi Christiano,

Since our 2022 Volume 3 Main release is expected to be rolled out this week. So, there will be no weekly release this week. We will include the fix for the reported issue in our upcoming weekly NuGet release which will be expected to be available on 04th October 2022.

The status of the issue can be tracked through below feedback link.

https://www.syncfusion.com/feedback/37592/nullreferenceexception-thrown-while-converting-a-powerpoint-slide-to-image

Regards,
Anto Nihil S



AA Akash Arul Syncfusion Team October 4, 2022 01:04 PM UTC

Hi Christiano,

We have included the fix for the reported issue with NullReferenceException throws while converting a PowerPoint slide to Image in our upcoming weekly NuGet release which will be expected to be available on tomorrow (5th October 2022).

The status of the issue can be tracked through below feedback link.
https://www.syncfusion.com/feedback/37592/nullreferenceexception-thrown-while-converting-a-powerpoint-slide-to-image

Regards,
Akash A.



AA Akash Arul Syncfusion Team October 5, 2022 02:20 PM UTC

Hi Christiano,

As promised earlier, we have included the fix for the reported issue with “NullReferenceException throws while converting a PowerPoint slide to Image” in our latest weekly NuGet release (v20.3.0.48).

Please use the below link to download our latest weekly NuGet:
https://www.nuget.org/packages/Syncfusion.PresentationRenderer.Net.Core/20.3.0.48

The status of this bug task can be tracked through the below link:
https://www.syncfusion.com/feedback/37592/nullreferenceexception-thrown-while-converting-a-powerpoint-slide-to-image

Note: We will include this fix in our 2022 Volume 3 service pack release which will be available in mid of November 2022.

Regards,
Akash A.



AL Anxhela Lakra October 19, 2022 11:31 AM UTC

Hi Akash,

The release has fixed the issue that has been sent from Christiano in the zip file, but unfortunately we found some more while trying to convert some more ppts files into images. 

I've been trying a work around, by converting them into pdf and then into images, still using syncfusion, but with no success.
Attached you can find the code & the files that are causing issues.

If this can please be looked into and advice if there is any other way in order to avoid these issues.

Looking forward to hearing from you

Thanks
Anxhela



Attachment: SyncfusionApp_19102022_e45dc045.zip


AN Anto Nihil Sahaya Raj Syncfusion Team October 20, 2022 12:35 PM UTC

Hi Anxhela,

We have created a separate forum for the reported issues. Kindly use the below forum for further follow-up.

Forum-
https://www.syncfusion.com/forums/178354/facing-multiple-issues-while-converting-presentation-slides-to-images-from-f150204

Now we are closing this forum.

Regards,
Anto Nihil S


Loader.
Live Chat Icon For mobile
Up arrow icon