Free Support Forum - groupdocs.com

Applying temporary licence of doc viewer in asp.net

Hi,


I have downloaded doc viewer OEM temporary licence on my machine. Now I want to use this viewer in my asp.net code to check functionality. Please guide on how to use this licence I have downloaded. The language I am using is vb.net.

Hi Chetan,


Thanks for using GroupDocs.Viewer API.

In ASP.NET, you can apply the license in the starting point of the application i-e Application_Start function in Global.asax.vb file. Following code snippet is used to apply license.

<span class=“pl-k” style=“color: rgb(167, 29, 93); font-family: Consolas, “Liberation Mono”, Menlo, Courier, monospace; font-size: 12px; line-height: 17.3333px; white-space: pre; background-color: rgb(255, 255, 255);”>Dim<span style=“color: rgb(51, 51, 51); font-family: Consolas, “Liberation Mono”, Menlo, Courier, monospace; font-size: 12px; line-height: 17.3333px; white-space: pre; background-color: rgb(255, 255, 255);”> lic <span class=“pl-k” style=“color: rgb(167, 29, 93); font-family: Consolas, “Liberation Mono”, Menlo, Courier, monospace; font-size: 12px; line-height: 17.3333px; white-space: pre; background-color: rgb(255, 255, 255);”>As <span class=“pl-c1” style=“color: rgb(0, 134, 179); font-family: Consolas, “Liberation Mono”, Menlo, Courier, monospace; font-size: 12px; line-height: 17.3333px; white-space: pre; background-color: rgb(255, 255, 255);”>New<span style=“color: rgb(51, 51, 51); font-family: Consolas, “Liberation Mono”, Menlo, Courier, monospace; font-size: 12px; line-height: 17.3333px; white-space: pre; background-color: rgb(255, 255, 255);”> License()
<span style=“color: rgb(51, 51, 51); font-family: Consolas, “Liberation Mono”, Menlo, Courier, monospace; font-size: 12px; line-height: 17.3333px; white-space: pre; background-color: rgb(255, 255, 255);”>lic<span class=“pl-k” style=“color: rgb(167, 29, 93); font-family: Consolas, “Liberation Mono”, Menlo, Courier, monospace; font-size: 12px; line-height: 17.3333px; white-space: pre; background-color: rgb(255, 255, 255);”>.<span style=“color: rgb(51, 51, 51); font-family: Consolas, “Liberation Mono”, Menlo, Courier, monospace; font-size: 12px; line-height: 17.3333px; white-space: pre; background-color: rgb(255, 255, 255);”>SetLicense(“D:\GroupDocs.Viewer.lic”) //set a valid path to your license file
<span style=“color: rgb(51, 51, 51); font-family: Consolas, “Liberation Mono”, Menlo, Courier, monospace; font-size: 12px; line-height: 17.3333px; white-space: pre; background-color: rgb(255, 255, 255);”>
To read more about licensing, please visit this link. Try this and share your feedback with us.


Warm Regards

Hi Chetan.


For convenience of our users, we have also implemented some open source document viewer applications using next generation GroupDocs.Viewer for .NET API. These applications will surely help you to evaluate and understand the features and working of the API. I am listing down these applications along with their download links.


You can download and try these open source applications and modify them according to your requirements. If you have any questions, please feel free to ask.

Warm Regards