We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Open Attachments from Azure File Storage

Hello,
We are rendering reports using Word Reports. We have some attachments which are stored on Azure File Storage. We want to open the attachments from Syncfusion  DocIO.  We are using  IWParagraph.AppendHyperlink method to append the Azure URI.

Is it possible to open the attachments from Azure File Storage from Synfusion Word Reports.  Please see attachment to see the error.

Thanks,


  string FileName = string.Format("{0}\\{1}", filePath, FileUpload.UniqueFileName);
                CloudFile cloudFile = AzureStorageHelper.GetFile(filePath);
                string FileLink = string.Format("{0}{1}{2}", cloudFile.Uri.AbsoluteUri, "/", FileUpload.UniqueFileName);

                section.AddParagraph().AppendHyperlink(FileLink, FileUpload.OriginalFileName, HyperlinkType.WebLink);

Attachment: Azure_Attachments_94629f42.zip

1 Reply

VA Vijayasurya Anandhan Syncfusion Team June 12, 2019 10:04 AM UTC

Hi Robin,


Thank you for contacting Syncfusion support.


On further analyzing the given link, we are also getting the same error which you have been facing from your side. We suspect that the given link is not the downloadable link, or the link is invalid. We have also tried to open the link in browser but is showing the below error.




If the link is restricted with login, we may get these kinds of issues. In this case, you need to set the hyperlink for the login and then you may download your required files after login. We confirm that the issue is not due to our Essential DocIO product, it is due to the invalid link.


Note: Essential DocIO will append the provided hyperlink alone in the word document, if it a downloadable link, we can download it.


Regards,
Vijayasurya A




Loader.
Live Chat Icon For mobile
Up arrow icon