I'm trying to convert some DOC files (in hebrew) to XPS. On some files i get an exeption - out of range exeption.
Attaching code and 2 problematic files.
THANK YOU!
- Code: Select all
var pathDOC = @"C:\1.doc";
var pathXPS = @"C:\test.xps";
using (var d = new Document(pathDOC))
{
d.SaveToFile(pathXPS, FileFormat.XPS);
}
Process.Start(pathXPS);