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

Free Support Forum - aspose.com

How to use Shared drive or UNC path to open the document from web page

Here is the error message.

Could not find a part of the path 'I:\Law_Suite_Documents\Probation\DrugTestEnvelopoAddressLabel.doc'.

How do I specify a UNC path to open a word document.

Here is the code and it fails

string srcFileName = @"I:\Law_Suite_Documents\Probation\DrugTestEnvelopoAddressLabel.doc";

Document doc = new Document(srcFileName);

doc.Range.Replace("F1", "John", false, false); //replace text F1 with Ravi

doc.Range.Replace("F2", "Smith", false, false); //replace text F2 with Shankar

doc.Save("DrugTestLetter.doc", SaveFormat.Doc, SaveType.OpenInBrowser, Response);

Hi

Thanks for your inquiry. This question is answered in <a href="https://forum.aspose.com/t/112985

Best regards.