The following exception is thrown when converting the attached PPTX to HTML with GroupDocs Viewer:
GroupDocs.Viewer.Exceptions.GroupDocsViewerException: ‘Exception has been thrown by the target of an invocation.’
GroupDocs Viewer 22.11 was used without any special options, just the default for HTML conversion.
@Clemens_Pestuka
I have reproduced this issue with HtmlViewOptions.ForEmbeddedResources
and got an exception on the 17th slide. As soon as we have any new information we’ll update you.
1 Like
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): VIEWERNET-4236
You can obtain Paid Support services if you need support on a priority basis, along with the direct access to our Paid Support management team.
1 Like
@Clemens_Pestuka
During the investigation, we found a workaround for this issue. Set viewOptions.ForPrinting
to true
to avoid the exception.
using (Viewer viewer = new Viewer(fileName))
{
HtmlViewOptions viewOptions =
HtmlViewOptions.ForEmbeddedResources(pageFileFormat);
viewOptions.ForPrinting = true;
viewer.View(viewOptions);
}
1 Like
@vladimir.litvinchik
Thank you for the workaround, I can confirm that this is working
@Clemens_Pestuka
You’re welcome, we’ll update you when we have any new information.
1 Like
@Clemens_Pestuka
This issue was fixed in GroupDocs.Viewer for .NET 23.8. The version is available at
Have a nice day!