GroupDocs.Viewer for .NET provides multiple options to open a document. Usually documents are stored in a form of files and are placed inside the root storage folder. Such documents should be pointed by using the .FilePath() method of the ClientHelper class, which is a main part of the GroupDocs.Viewer widget where all document- and display-related parameters are specified. When there is no way to get documents from files, they can be obtained in a form of byte streams. The .Stream() method is designed specifically for such cases. Please read this article for more details on how to load documents from streams using GroupDocs.Viewer for .NET.
But there may be cases when GroupDocs.Viewer is located on one machine, while the target document is located on another one and is available only as an HTTP resource via URL. If this is the case, you should use the .Url() method. In this article I’d like to discover how this method works and how to use it properly.
I will also show you how to load remote documents when they are secured with the Windows Authentication protection. This is a common scenario in organizations with intranet where GroupDocs.Viewer is located on one machine, while documents – on another and can be accessed only via URLs.