- Home
- Forum
- ASP.NET Core - EJ 2
- Error while opening Presentation, to convert Slide to Images
Error while opening Presentation, to convert Slide to Images
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!.
SIGN IN To post a reply.
1 Reply
LE
Loketha Erusappan
Syncfusion Team
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
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
SIGN IN To post a reply.
- 1 Reply
- 2 Participants
-
AA Akash Agarwal
- Dec 26, 2019 09:49 AM UTC
- Dec 30, 2019 10:15 AM UTC