I'm trying to work with OpenOffice Calc document under C# and getting an error "Url seems to be an unsupported one for network". My code is:
string filePath="serverName\\folder\\file.ods";
filePath = "file:///" + filePath.Replace(@"\", "/");
PropertyValue[] props = new PropertyValue[0];
XComponent oDoc = loader.loadComponentFromURL(AFile, "_blank", 0, props);
Error is raising only for files in network. When I'am using:
string filePath="C:\\folder\\file.ods";
Everything is ok. So I can't figure out how I should convert my path to be correct. Can anybody explain me?