Free Support Forum - groupdocs.com

More questions about how can I CroupDocs.Viewer window to view the document in the browser?


#1
I have changed the index.jsp as the example you gave me in the post 'http://groupdocs.com/Community/forums/addpost.aspx?PostID=2218',but when I click the link,the viewer can't be opened.
The index.jsp source was posted as follows:
<%--
Document : index
Created on : Feb 13, 2014, 3:35:58 PM
Author : Alex Bobkov
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
GroupDocs.Viewer for Java Sample
<%=(String)request.getAttribute("viewer_head")%>
Click me to view
<%=(String)request.getAttribute("viewerScript")%>


#2

Hello,


We are sorry to hear that you have such issue. We created live demo sample for you here - http://plugins-qa.groupdocs.dynabic.com:8889/document-viewer/view . Please check it’s HTML code for how to. Pay attention for the “Click to view” link code especially at “href” parameter. As you can see this sample shows how to use “file” parameter which we describe in the previous thread. This parameter's value should be a file name which will be shown in the viewer.

If you will have more questions please feel free to contact us.