Replace documentPath value with the actual path to the document you’re going to render.
Run the project by executing dotnet run.
Check the output in C:\\output\\ directory.
Build project using Visual Studio
Open Visual Studio and go to File -> New -> Project.
Select appropriate project type e.g. Console Application or Console App (.NET Framework)
Install GroupDocs.Viewer for .NET from Nuget or official GroupDocs website with one of ways listed in “Installation”(https://docs-qa.groupdocs.com/viewer/net/installation/) section.
Replace documentPath value with the actual path to the document you’re going to render.
Build and Run your project.
Rendered document pages will be saved in C:\\output\\ directory.
Run back-end examples
You can find number of back-end examples in our repository hosted on Github. You can either download the ZIP file from here or clone the repository of Github using your favorite git client. In case you download the ZIP file, extract the folders on your local disk.
Navigate to Examples directory and open GroupDocs.Viewer.Examples.CSharp.sln using Visual Studio.
Open RunExamples.cs file and uncomment the example(s) that you would like to run.
Optionally you can set the path to the license in Utils.cs file.
Clone or download “GroupDocs.Viewer-for-.NET” repository from GitHub or skip this step if you already have the code.
Navigate to Demos/MVC folder.
Open GroupDocs.Viewer MVC.sln solution in Demos/MVC folder using Visual Studio.
Update parameters in web.config and demo related properties in the configuration.yml to meet your requirements, see more about configuring the demo at “Configuration” section.
For more details about demo configuration please refer to “Configuration” section.
ASP.NET Web Forms Demo
Clone or download “GroupDocs.Viewer-for-.NET” repository from GitHub or skip this step if you already have the code.
Navigate to Demos/WebForms folder.
Open GroupDocs.Viewer.WebForms.sln solution using Visual Studio.
Open solution in the VisualStudio. Update common parameters in web.config and example related properties in the configuration.yml to meet your requirements.
For more details about demo configuration please refer to “Configuration” section.
WPF Demo
Clone or download “GroupDocs.Viewer-for-.NET” repository from GitHub or skip this step if you already have the code.
Navigate to Demos/WPF/src folder.
Open GroupDocs.Viewer.WPF.sln using Visual Studio.
Run the project.
Windows Forms Demo
Clone or download “GroupDocs.Viewer-for-.NET” repository from GitHub or skip this step if you already have the code.
Navigate to Demos/WinForms/src folder.
Open GroupDocs.Viewer.WinForms.sln using Visual Studio.
Run the project.
Contribute
If you like to add or improve an example, we encourage you to contribute to the project. All examples in this repository are open source and can be freely used in your own applications. To contribute, you can fork the repository, edit the code and create a pull request. We will review the changes and include it in the repository if found helpful.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.