I am running into issues and not sure what the problem is.
If I run the doc viewer using default page size and display the pages load fairly quickly but as soon as I try to do anything via toolbar, such as change the page mode it takes a very long time and do not have any indication that anything is happening, as the wait indicator is not doing anything.
All files being loaded come from a share on the local computer with full access.
Link to a video showing the issues - https://drive.google.com/file/d/0Bz22KH ... sp=sharing
Environment
Visual Studio 2010 - VB asp.net 4.0 web site - Windows 7 Pro SP1 - IIS 7.5.7600.16385
GDPictures release version 11.2.11
Relevant source code
ASPX
Code: Select all
<body style="overflow: hidden; margin: 0; height: 100%;">
<form id="form1" runat="server" style="width: 100%; height: 100%;">
<div id="divViewer" style="width: 89%; height: 900px; float: right; border: 1px solid;">
<cc1:docuvieware id="DocuVieware1" runat="server" height="100%" width="100%" />
</div>
</form>
<script type="text/javascript">
function loadDocument(doc)
{
if (doc) { DocuViewareAPI.PostCustomServerAction('DocuVieware1', true, 'load', decodeURIComponent(doc), null, null); }
}
</script>
</body>
Code: Select all
Public Class WebForm1
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Me.IsPostBack = False Then
With Me.DocuVieware1
.CacheFolder = Factory.GetImageTempPath(True)
.Timeout = -1
.CollapsedSnapIn = True
.ShowThumbnailsSnapIn = False
.ShowTextSearchSnapIn = False
.ShowAnnotationsSnapIn = False
.ShowBookmarksSnapIn = False
.EnableFileUploadButton = False
.EnableLoadFromUriButton = False
.EnableSaveButton = True
.AllowPrint = True
.EnablePrintButton = True
.PrintQuality = GdPicture11.WEB.PrintQuality.VeryHigh
.EnablePagesNavigationButtons = True
.EnableZoomButtons = True
.EnableRotateButtons = True
.EnablePageViewButtons = True
.EnableFitWidthButton = True
.EnableFitPageButton = True
.EnableZoom100Button = True
.EnableMouseModeButtons = False
.EnableFullScreenButton = False
End With
Me.LoadImages()
End If
End Sub
Private Sub LoadImages()
Dim imageFiles As New List(Of String)
' load list here...
If imageFiles.Count > 0 Then Me.LoadDocument(Me.DocuVieware1, imageFiles.Item(0))
End Sub
Private Function LoadDocument(viewer As GdPicture11.WEB.DocuVieware, path As String) As Boolean
Dim returnValue As Boolean = False
If path <> "" Then
path = HttpUtility.UrlDecode(path)
Debug.WriteLine("Load - " & path)
returnValue = (viewer.LoadFromStream(New IO.FileStream(path, IO.FileMode.Open, IO.FileAccess.Read), True, IO.Path.GetFileName(path)) = GdPicture11.GdPictureStatus.OK)
End If
Return returnValue
End Function
Private Sub DocuVieware1_CustomAction(sender As Object, e As GdPicture11.WEB.CustomActionEventArgs) Handles DocuVieware1.CustomAction
If Me.LoadDocument(e.docuVieware, e.args.ToString) = False Then
e.docuVieware.Close()
If e.args.ToString <> "" Then
e.message = New GdPicture11.WEB.DocuViewareMessage("Could not access/display the file " & IO.Path.GetFileName(e.args.ToString), icon:=GdPicture11.WEB.DocuViewareMessageIcon.Warning)
Else
e.message = New GdPicture11.WEB.DocuViewareMessage("No file specified.", icon:=GdPicture11.WEB.DocuViewareMessageIcon.Error)
End If
End If
End Sub
End Class