Quantcast
Channel: Open XML Format SDK forum
Viewing all articles
Browse latest Browse all 1288

Invalid Hyperlink errors when there are no hyperlinks at all

$
0
0

I'm getting "Invalid Hyperlink" errors when I try to process docx files, even though the documents have no hyperlinks at all.

I'm trying to use the DocumentFormat.OpenXml package with Mono on my OS X 10.9 Mac.  I've pulled the package straight from Nuget and I've added it as a reference in the OpenXmlPowerTools package from Eric White.  Specifically, I'm working with the HtmlConverter sub-project, but I experience the same issue in the other sub-projects that I've tried.  When I run the program on his sample files, I catch an OpenXmlPackageException just at the point of processing the document

using (WordprocessingDocument wDoc = WordprocessingDocument.Open (memoryStream, true)) { ...

The text of the exception tells me there are "Invalid Hyperlinks", but walking though the document carefully I still don't see any links, let alone invalid ones.  Just to be careful, I've use sample code I found at http://social.msdn.microsoft.com/Forums/windowsazure/en-US/8147fa29-6e55-4f4e-9d60-c07ea3779042/how-to-validate-a-word-document-using-openxml-sdk-25 to try and scrub the invalid links, but I end up with the same result.

I'm new to OpenXML and to C# so maybe there's something obvious that I'm missing, but it's looking like a bug to me.  Has anyone else experienced this and worked around it?  Have you successfully used DocumentFormat.OpenXml (or a similar package) on a Mac?

Thanks for your help



Viewing all articles
Browse latest Browse all 1288

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>