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

Free Support Forum - aspose.com

Open Visio docs where full path in longer than 260 characters => does not work

Hi Aspose team,

during processing of documents (in this case Visio) I am hitting limit that documents that are with long path cannot be opened due to:

"The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters."

Considering that there are some libraries which can process long path (for example, AlphaFS => http://alphafs.alphaleonis.com/) it will be great that you extend also Aspose components to be able to go around this crazy Windows limitation as this is certainly possible.
Can you please check?

Thanks,
Oliver

Hi Oliver,


Thank you for contacting support. Please note, Aspose.Diagram APIs mimics the behavior of Microsoft Office Visio. You cannot exceed characters limit while saving a Visio diagram manually. You’ll find that there are limits to the lengths of folder names and file names.

We hope, this helps. Please let us know in case of any ambiguity or questions.

Hi,

we can close this topic as there is a workaround (provided over Tasks and OneNote forum):

// using the AlphaFS library to load the file
FileStream fs = Alphaleonis.Win32.Filesystem.File.OpenRead("path to file");

// Has to be replaced with appropriate Aspose component
Document oneFile = new Document(fs);

I just tested and that worked :-).

BR,
Oliver
Hi Oliver,

Thank you for the confirmation. It is nice to hear from you that you managed it. Please let us know if you require any further assistance in reference of Aspose APIs, we will be happy to help you.