DocumentUltimate v7.3.4
Version 7.3.4 - March 3, 2025
-
Fixed: documentViewer.DebugMode property was not being respected on the client side.
This property by default is false (unless you have the source code and compiled GleamTech.Common.dll with Debug configuration).
So by default, error details should not be shown on DocumentViewer's error dialog.
Although error details were reduced on the server, the details text box was still being shown.
Also from now on, this property will also effect client-side errors, for example no details should be shown on local PDF opening errors.If you explicitly set this property to true, it will show details in text box in the addition to the main message on error dialog.
This can be useful for debugging purpose. This was the default behavior before v7.3.4: -
Improved: Client side
failedevent can now be canceled via e.preventDefault() to suppress showing default error dialog.
For example, e.detail.message can be examined and a custom message can be shown via documentViewer._showError() method.documentViewer.ClientEvents.Failed = "documentViewerFailed";
On client-side:
function documentViewerFailed(e) { var documentViewer = e.target; if (e.detail.message == "some specific message") { //Canceling this event, to suppress showing error dialog with default error message. e.preventDefault(); //Show your custom message with error dialog documentViewer._showError("customMessage"); //Or write to browser console console.log("customMessage"); } }
Included example projects:
- ASP.NET Core (C#) - Visual Studio 2019+
- ASP.NET Core on .NET Framework (C#)- Visual Studio 2017+
- ASP.NET MVC (C#) - Visual Studio 2015+
- ASP.NET MVC (VB) - Visual Studio 2015+
- ASP.NET WebForms (C#) - Visual Studio 2015+
- ASP.NET WebForms (VB) - Visual Studio 2015+

