Hello,
#test
”)Hello,
#test
”)Hello Deric,
Hello Pavel,
Viewer is still not working in our application. Can you please help?
Here is the Site.Master page:
<%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@ Import Namespace="Groupdocs.Web.UI" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<% Html.CreateViewerScriptLoadBlock(); %>
<%Html.CreateViewerScriptLoadBlock().LoadJquery().LoadJqueryUi(); %>
</head>
<body>
<div id="test" style="width:800px;height:700px"></div>
<% Html.ViewerClientCode()
.TargetElementSelector("#test")
.FilePath("WestSummit.pdf")
.OpenThumbnails(false)
.ZoomToFitHeight(); %>
<asp:ContentPlaceHolder ID="MainContent" runat="server" />
</body>
</html>
Here is the Global.asax.cs:
protected void Application_Start()
{
XmlConfigurator.Configure();
AreaRegistration.RegisterAllAreas();
Groupdocs.Web.UI.Viewer.InitRoutes();
//Groupdocs.Web.UI.Viewer.SetLicensePath();
Groupdocs.Web.UI.Viewer.SetRootStoragePath("C:/testDocuments");
RegisterRoutes(RouteTable.Routes);
There is no css or jquery scripts, and application is running on VS Dev Server (per http://groupdocs.com/docs/display/viewernet/How+to+Use+GroupDocs.Viewer+for+.NET+MVC4)
Hello,
Hi Pavel,
Hello Deric,
I will create a test MVC 4 application, and send you that solution. Thanks!
here is the link to mvc 4 solution with Groupdocs dll
Hello Deric,
Hi Pavel,
Hello Deric,
Hello Pavel,
Hello,
Adding ‘false’ parameter value solved the problem.
Hi again,