We're sorry GroupDocs doesn't work properply without JavaScript enabled.

Free Support Forum - groupdocs.com

Exception thrown when converting certain PPTX to HTML in .NET

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.


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


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 =
     viewOptions.ForPrinting = true;
1 Like


Thank you for the workaround, I can confirm that this is working :+1:


You’re welcome, we’ll update you when we have any new information.

1 Like