Free Support Forum -

How should I access documents from another server to GroupDocsViewer 3.0?


I have been trying to implement GroupDocsViewer in my MVC application, it works with local folder, how should I access from another web server. And there is another issue with viewer, more like widgets not working and also attaached screenshot of the issue.

For Your Reference, I have implemented using GroupDocsViewer.dll version 3.0.0 in MVC application

Hello Manoj,

Thanks for giving a try to Groupdocs.Viewer 3.0.0

In GroupDocs.Viewer 3.0.0, a document can be rendered by passing its URL like the following code snippet.
//Get Configurations
ViewerConfig config = Utilities.GetConfigurations();

// Create html handler
ViewerHtmlHandler htmlHandler = new ViewerHtmlHandler(config);

//Instantiate the HtmlOptions object
HtmlOptions options = new HtmlOptions();

if (!String.IsNullOrEmpty(DocumentPassword))
options.Password = DocumentPassword;
//Get document pages in html form
List pages = htmlHandler.GetPages(new Uri(“”),options);

Also, please note that the new GroupDocs.Viewer is a UI-less API exposing only UI-less+back end document rendering APIs. That’ why previous widget’s controls are not working. User have to write his own front end/widget.

Thanks in advance