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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Error while opening Presentation, to convert Slide to Images

Thread ID:

Created:

Updated:

Platform:

Replies:

150205 Dec 26,2019 09:49 AM UTC Dec 30,2019 10:15 AM UTC ASP.NET Core - EJ 2 1
loading
Tags: Presentation
Akash Agarwal
Asked On December 26, 2019 09:49 AM UTC

Hi,

While opening a presentation using Presentation.Open(filepath), to convert the slides to images,
I am getting the following error.

System.Collections.Generic.KeyNotFoundException
  HResult=0x80131577
  Message=The given key 'black' was not present in the dictionary.
  Source=System.Private.CoreLib
  StackTrace:
   at System.ThrowHelper.ThrowKeyNotFoundException[T](T key)
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at Syncfusion.OfficeChart.Implementation.ColorExtension.FromName(String name)
   at Syncfusion.OfficeChart.Implementation.XmlSerialization.Charts.ChartParserCommon.ParsePresetColor(XmlReader reader, Int32& alpha, Excel2007Parser parser)
   at Syncfusion.OfficeChart.Implementation.XmlSerialization.Charts.ChartParserCommon.ParseSolidFill(XmlReader reader, Excel2007Parser parser, ChartColor color, Int32& Alpha)
   at Syncfusion.OfficeChart.Implementation.XmlSerialization.Charts.ChartParserCommon.ParseParagraphRunProperites(XmlReader reader, IInternalOfficeChartTextArea textArea, Excel2007Parser parser, TextSettings defaultSettings)
   at Syncfusion.OfficeChart.Implementation.XmlSerialization.Charts.ChartParserCommon.ParseParagraphRun(XmlReader reader, IInternalOfficeChartTextArea textArea, Excel2007Parser parser, TextSettings defaultSettings, List`1 tRuns)
   at Syncfusion.OfficeChart.Implementation.XmlSerialization.Charts.ChartParserCommon.ParseParagraphs(XmlReader reader, IInternalOfficeChartTextArea textArea, Excel2007Parser parser, Nullable`1 defaultFontSize, List`1 tRuns)
   at Syncfusion.OfficeChart.Implementation.XmlSerialization.Charts.ChartParserCommon.ParseRichText(XmlReader reader, IInternalOfficeChartTextArea textArea, Excel2007Parser parser, Nullable`1 defaultFontSize, List`1 tRuns)
   at Syncfusion.OfficeChart.Implementation.XmlSerialization.Charts.ChartParserCommon.ParseTextAreaText(XmlReader reader, IInternalOfficeChartTextArea textArea, Excel2007Parser parser, Nullable`1 defaultFontSize)
   at Syncfusion.OfficeChart.Implementation.XmlSerialization.Charts.ChartParserCommon.ParseTextAreaTag(XmlReader reader, IInternalOfficeChartTextArea textArea, RelationCollection relations, FileDataHolder holder, Nullable`1 defaultFontSize)
   at Syncfusion.OfficeChart.Implementation.XmlSerialization.Charts.ChartParserCommon.ParseTextArea(XmlReader reader, IInternalOfficeChartTextArea textArea, FileDataHolder holder, RelationCollection relations, Nullable`1 defaultFontSize)
   at Syncfusion.OfficeChart.Implementation.XmlSerialization.Charts.ChartAxisParser.ParseAxisCommon(XmlReader reader, ChartAxisImpl axis, RelationCollection chartItemRelations, OfficeChartType chartType, Excel2007Parser parser, AxisTagsParser unknownTagParser)
   at Syncfusion.OfficeChart.Implementation.XmlSerialization.Charts.ChartAxisParser.ParseCategoryAxis(XmlReader reader, ChartCategoryAxisImpl axis, RelationCollection relations, OfficeChartType chartType, Excel2007Parser parser)
   at Syncfusion.OfficeChart.Implementation.XmlSerialization.Charts.ChartParser.ParsePlotAreaAxes(XmlReader reader, ChartImpl chart, RelationCollection relations, Excel2007Parser parser)
   at Syncfusion.OfficeChart.Implementation.XmlSerialization.Charts.ChartParser.ParsePlotArea(XmlReader reader, ChartImpl chart, RelationCollection relations, Excel2007Parser parser)
   at Syncfusion.OfficeChart.Implementation.XmlSerialization.Charts.ChartParser.ParseChartElement(XmlReader reader, ChartImpl chart, RelationCollection relations)
   at Syncfusion.OfficeChart.Implementation.XmlSerialization.Charts.ChartParser.ParseChart(XmlReader reader, ChartImpl chart, RelationCollection relations)
   at Syncfusion.Presentation.FileDataHolder.ParseChartData(PresentationChart chart, String chartPath)
   at Syncfusion.Presentation.FileDataHolder.ParseChart(PresentationChart chart)
   at Syncfusion.Presentation.Parser.CheckGraphicData(Stream stream, Shapes shapeCollection)
   at Syncfusion.Presentation.Parser.ParseShapeTree(XmlReader reader, Shapes shapeCollection)
   at Syncfusion.Presentation.Parser.ParseCommonSilde(XmlReader reader, BaseSlide slide)
   at Syncfusion.Presentation.Parser.ParseSlide(XmlReader reader, Slide slide)
   at Syncfusion.Presentation.FileDataHolder.ParseSlide(Slide slide, String slidePath)
   at Syncfusion.Presentation.FileDataHolder.ParseSlides()
   at Syncfusion.Presentation.FileDataHolder.Read()
   at Syncfusion.Presentation.FileDataHolder.ParseDocument()
   at Syncfusion.Presentation.Presentation.ParseDocument(Stream fileStream)
   at Syncfusion.Presentation.Presentation.OpenAsStream(Stream stream, String password, String extension)
   at Syncfusion.Presentation.Presentation.Open(Stream fileStream)
   at PptToImage.Program.Main(String[] args) in C:\PptToImage\Program.cs:line 30

Note : The slide that throws the error, contains various charts.

Can you please provide some information regarding the above issue.

Thanks!.


Loketha Erusappan [Syncfusion]
Replied On December 30, 2019 10:15 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
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon