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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Open Attachments from Azure File Storage

Thread ID:

Created:

Updated:

Platform:

Replies:

145167 Jun 11,2019 12:45 AM UTC Jun 12,2019 10:04 AM UTC ASP.NET MVC 1
loading
Tags: DocIO
Robin Knight
Asked On June 11, 2019 12:45 AM UTC

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

Vijayasurya Anandhan [Syncfusion]
Replied On 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




CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon