Free Support Forum - groupdocs.com

How to set Open File on example start up

Good afternoon


I am evaluating the GroupDocs.Viewer and I have downloaded the GroupDocs.Viewer.WebForm.FrontEnd and MVC example.

Please excuse my ignorance, but how would I go about setting the project so that the Open File screen is opened straight away as opposed to opening a document immediately?

Best regards

Rich

@richard.dean,


Thanks for taking interest in GroupDocs.Viewer for .NET.

Currently, this feature is not available in the Showcase applications. However, you can achieve this functionality by doing a little modification in the JavaScript of the application. Please try the following steps and check if things are working as expected.

  • Find and open installableViewer.js file Scripts folder
  • Locate _init: function (options) function
  • Add self._showFileOpenDialog(); at the end of _init: function (options) function (as shown in this screenshot)

Please try and share your feedback with us.

Warm Regards

Hi Usman



Thank you very much for this - that’s worked a treat and also gives me an insight as to where I should be looking for other future tweaks.



Many thanks

@richard.dean


You are always welcome.

Warm Regards