Skip to content

Commit 64f135d

Browse files
Updated quick start examples
1 parent 87399cb commit 64f135d

4 files changed

Lines changed: 145 additions & 81 deletions

File tree

content/english/net/quick-start/_index.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@ url: /net/quick-start/
1010

1111
## Quick Start Tutorials
1212
### [Set License from File - GroupDocs Comparison for .NET](./set-license-from-file/)
13+
Learn how to integrate GroupDocs Comparison for .NET seamlessly into your applications. Set up, import namespaces, and compare documents effortlessly.
1314
### [Set License from Stream - GroupDocs Comparison for .NET](./set-license-from-stream/)
14-
### [Set Metered License - GroupDocs Comparison for .NET](./set-metered-license/)
15+
Learn how to set licenses using GroupDocs.Comparison for .NET efficiently. Ensure document accuracy and save time with this tutorial.
16+
### [Set Metered License - GroupDocs Comparison for .NET](./set-metered-license/)
17+
Integrate GroupDocs Comparison for .NET seamlessly into your .NET projects for efficient document comparison workflows.

content/english/net/quick-start/set-license-from-file/_index.md

Lines changed: 46 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,45 +2,61 @@
22
title: Set License from File - GroupDocs Comparison for .NET
33
linktitle: Set License from File - GroupDocs Comparison for .NET
44
second_title: GroupDocs.Comparison .NET API
5-
description:
5+
description: Learn how to integrate GroupDocs Comparison for .NET seamlessly into your applications. Set up, import namespaces, and compare documents effortlessly.
66
type: docs
77
weight: 10
88
url: /net/quick-start/set-license-from-file/
99
---
10+
## Introduction
11+
In the realm of .NET development, having efficient tools for document comparison is vital for various industries, including legal, finance, and education. GroupDocs Comparison for .NET provides a robust solution for comparing documents seamlessly within your .NET applications. This article serves as a comprehensive guide to utilizing GroupDocs Comparison for .NET effectively, breaking down essential steps and providing insights into its implementation.
12+
## Prerequisites
13+
Before diving into GroupDocs Comparison for .NET, ensure you have the following prerequisites in place:
14+
### .NET Development Environment
15+
1: Install Visual Studio IDE
16+
Ensure you have Visual Studio IDE installed on your system. You can download it from the Microsoft website.
17+
2: Set up .NET Framework
18+
Make sure you have the .NET Framework installed on your machine. You can download it from the Microsoft website or install it using Visual Studio's installer.
19+
3: Basic C# Knowledge
20+
Familiarize yourself with C# programming language fundamentals as GroupDocs Comparison for .NET utilizes C# for integration.
1021

11-
## Complete Source Code
22+
## Import Namespaces
23+
To begin using GroupDocs Comparison for .NET, import the necessary namespaces into your project. Follow these steps:
1224
```csharp
1325
using System;
1426
using System.IO;
27+
```
1528

16-
namespace GroupDocs.Comparison.Examples.CSharp.QuickStart
29+
To enable GroupDocs Comparison for .NET functionality, setting a license from a file is crucial. Follow these steps:
30+
## Step 1: Check License File Existence
31+
Check if the license file exists at the specified path using the following code snippet:
32+
```csharp
33+
if (File.Exists(Constants.LicensePath))
34+
{
35+
// Proceed with setting the license
36+
}
37+
else
1738
{
18-
/// <summary>
19-
/// This example demonstrates how to set license from file.
20-
/// </summary>
21-
/// <remarks>
22-
/// The SetLicense method attempts to set a license from several locations relative to the executable and GroupDocs.Comparison.dll.
23-
/// You can also use the additional overload to load a license from a stream, this is useful for instance when the
24-
/// License is stored as an embedded resource.
25-
/// </remarks>
26-
class SetLicenseFromFile
27-
{
28-
public static void Run()
29-
{
30-
if (File.Exists(Constants.LicensePath))
31-
{
32-
License license = new License();
33-
license.SetLicense(Constants.LicensePath);
34-
Console.WriteLine("License set successfully.");
35-
}
36-
else
37-
{
38-
Console.WriteLine("\nWe do not ship any license with this example. " +
39-
"\nVisit the GroupDocs site to obtain either a temporary or permanent license. " +
40-
"\nLearn more about licensing at https://purchase.groupdocs.com/faqs/licensing. " +
41-
"\nLear how to request temporary license at https://purchase.groupdocs.com/temporary-license.");
42-
}
43-
}
44-
}
39+
// Provide instructions for obtaining a license
4540
}
4641
```
42+
## Step 2: Set License
43+
If the license file exists, proceed to set the license using the following code:
44+
```csharp
45+
License license = new License();
46+
license.SetLicense(Constants.LicensePath);
47+
Console.WriteLine("License set successfully.");
48+
```
49+
50+
## Conclusion
51+
GroupDocs Comparison for .NET empowers developers to seamlessly integrate document comparison functionality into their .NET applications. By following the steps outlined in this guide, you can efficiently set up the necessary environment, import required namespaces, and set the license to leverage the full potential of GroupDocs Comparison within your projects.
52+
## FAQ's
53+
### Where can I find the documentation for GroupDocs Comparison for .NET?
54+
You can access the documentation [here](https://reference.groupdocs.com/comparison/net/).
55+
### Is there a free trial available for GroupDocs Comparison for .NET?
56+
Yes, you can download the free trial version [here](https://releases.groupdocs.com/).
57+
### How can I obtain a temporary license for GroupDocs Comparison for .NET?
58+
You can request a temporary license [here](https://purchase.groupdocs.com/temporary-license/).
59+
### Where can I seek support for GroupDocs Comparison for .NET?
60+
You can visit the support forum [here](https://forum.groupdocs.com/c/comparison/12).
61+
### Where can I purchase GroupDocs Comparison for .NET?
62+
You can purchase GroupDocs Comparison for .NET [here](https://purchase.groupdocs.com/buy).

content/english/net/quick-start/set-license-from-stream/_index.md

Lines changed: 54 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,69 @@
22
title: Set License from Stream - GroupDocs Comparison for .NET
33
linktitle: Set License from Stream - GroupDocs Comparison for .NET
44
second_title: GroupDocs.Comparison .NET API
5-
description:
5+
description: Learn how to set licenses using GroupDocs.Comparison for .NET efficiently. Ensure document accuracy and save time with this tutorial.
66
type: docs
77
weight: 11
88
url: /net/quick-start/set-license-from-stream/
99
---
10+
## Introduction
11+
In the world of .NET development, managing and comparing documents efficiently is crucial. Whether you're working on legal contracts, financial reports, or any other document-intensive application, the ability to compare documents accurately can save time and ensure accuracy. This is where GroupDocs.Comparison for .NET comes into play.
12+
## Prerequisites
13+
Before diving into the tutorial, ensure you have the following prerequisites:
14+
- Basic knowledge of C# and .NET framework.
15+
- Visual Studio installed on your system.
16+
- GroupDocs.Comparison for .NET library installed. You can download it [here](https://releases.groupdocs.com/comparison/net/).
17+
- Access to the GroupDocs.Comparison for .NET documentation [here](https://reference.groupdocs.com/comparison/net/).
1018

11-
## Complete Source Code
19+
## Import Namespaces
20+
To start using GroupDocs.Comparison for .NET, you need to import the necessary namespaces into your project. Here's how you can do it:
21+
22+
In your project, add the following namespace references at the top of your code file:
1223
```csharp
1324
using System;
1425
using System.IO;
26+
```
27+
These namespaces provide access to essential classes and methods required for document comparison tasks.
1528

16-
namespace GroupDocs.Comparison.Examples.CSharp.QuickStart
29+
## Step 1: Check License File Existence
30+
```csharp
31+
if (File.Exists(Constants.LicensePath))
1732
{
18-
/// <summary>
19-
/// This example demonstrates how to set license from stream.
20-
/// </summary>
21-
class SetLicenseFromStream
22-
{
23-
public static void Run()
24-
{
25-
if (File.Exists(Constants.LicensePath))
26-
{
27-
using (FileStream stream = File.OpenRead(Constants.LicensePath))
28-
{
29-
License license = new License();
30-
license.SetLicense(stream);
31-
}
32-
33-
Console.WriteLine("License set successfully.");
34-
}
35-
else
36-
{
37-
Console.WriteLine("\nWe do not ship any license with this example. " +
38-
"\nVisit the GroupDocs site to obtain either a temporary or permanent license. " +
39-
"\nLearn more about licensing at https://purchase.groupdocs.com/faqs/licensing. " +
40-
"\nLear how to request temporary license at https://purchase.groupdocs.com/temporary-license.");
41-
}
42-
}
43-
}
33+
```
34+
This step checks if the license file exists in the specified path.
35+
## Step 2: Set License from Stream
36+
```csharp
37+
using (FileStream stream = File.OpenRead(Constants.LicensePath))
38+
{
39+
License license = new License();
40+
license.SetLicense(stream);
4441
}
4542
```
43+
If the license file exists, this step creates a file stream to read the license file and sets the license for GroupDocs.Comparison using the `SetLicense` method.
44+
## Step 3: Handle License Absence
45+
```csharp
46+
Console.WriteLine("License set successfully.");
47+
```
48+
If the license is set successfully, this step prints a success message.
49+
## Step 4: Prompt for Obtaining License
50+
```csharp
51+
Console.WriteLine("\nWe do not ship any license with this example. " +
52+
"\nVisit the GroupDocs site to obtain either a temporary or permanent license. " +
53+
"\nLearn more about licensing at https://purchase.groupdocs.com/faqs/licensing. " +
54+
"\nLear how to request temporary license at https://purchase.groupdocs.com/temporary-license.");
55+
```
56+
If the license file doesn't exist, this step prompts the user to obtain a license from the GroupDocs website.
57+
58+
## Conclusion
59+
In this tutorial, we explored how to set a license using GroupDocs.Comparison for .NET. By following the steps outlined above, you can efficiently manage and compare documents in your .NET applications, ensuring accuracy and saving valuable time.
60+
## FAQ's
61+
### Do I need a license to use GroupDocs.Comparison for .NET?
62+
Yes, you need a license to use GroupDocs.Comparison for .NET. You can obtain either a temporary or permanent license from the GroupDocs website.
63+
### Can I try GroupDocs.Comparison for .NET before purchasing?
64+
Yes, you can request a free trial from the GroupDocs website to evaluate the product before making a purchase.
65+
### How can I get support for GroupDocs.Comparison for .NET?
66+
You can get support from the GroupDocs forum dedicated to comparison [here](https://forum.groupdocs.com/c/comparison/12).
67+
### What should I do if I encounter licensing issues?
68+
If you encounter any licensing issues, refer to the licensing FAQs [here](https://purchase.groupdocs.com/faqs/licensing) or contact GroupDocs support.
69+
### Where can I find more tutorials and resources for GroupDocs.Comparison for .NET?
70+
You can find extensive documentation and tutorials on the GroupDocs website [here](https://reference.groupdocs.com/comparison/net/).

content/english/net/quick-start/set-metered-license/_index.md

Lines changed: 41 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,52 @@
22
title: Set Metered License - GroupDocs Comparison for .NET
33
linktitle: Set Metered License - GroupDocs Comparison for .NET
44
second_title: GroupDocs.Comparison .NET API
5-
description:
5+
description: Integrate GroupDocs Comparison for .NET seamlessly into your .NET projects for efficient document comparison workflows.
66
type: docs
77
weight: 12
88
url: /net/quick-start/set-metered-license/
99
---
10+
## Introduction
11+
In the realm of .NET development, having robust tools for document comparison is indispensable. GroupDocs Comparison for .NET stands out as a powerful solution for comparing various document formats programmatically. From text documents to spreadsheets and presentations, this library enables developers to efficiently identify differences between files.
12+
## Prerequisites
13+
Before diving into the intricacies of utilizing GroupDocs Comparison for .NET, ensure you have the following prerequisites in place:
14+
1. Knowledge of .NET Development: Familiarity with C# programming and .NET environment is essential to effectively utilize GroupDocs Comparison for .NET.
15+
2. Installation of GroupDocs Comparison Library: Download and install the GroupDocs Comparison for .NET library from the [download link](https://releases.groupdocs.com/comparison/net/).
16+
3. Metered License: Acquire a metered license from GroupDocs to unlock the full potential of the library. You can obtain a temporary license from [here](https://purchase.groupdocs.com/temporary-license/).
17+
4. Integrated Development Environment (IDE): Have an IDE like Visual Studio installed for seamless development experience.
18+
19+
## Import Namespaces
20+
To begin using GroupDocs Comparison for .NET, import the necessary namespaces into your project. Follow these steps:
1021

11-
## Complete Source Code
1222
```csharp
1323
using System;
14-
15-
namespace GroupDocs.Comparison.Examples.CSharp.QuickStart
16-
{
17-
/// <summary>
18-
/// This example demonstrates how to set Metered license.
19-
/// Learn more about Metered license at https://purchase.groupdocs.com/faqs/licensing/metered.
20-
/// </summary>
21-
class SetMeteredLicense
22-
{
23-
public static void Run()
24-
{
25-
string publicKey = "*****";
26-
string privateKey = "*****";
27-
Metered metered = new Metered();
28-
metered.SetMeteredKey(publicKey, privateKey);
29-
Console.WriteLine("License set successfully.");
30-
}
31-
}
32-
}
3324
```
25+
These namespaces provide access to the essential classes and methods needed for document comparison functionality.
26+
## Setting up a Metered License
27+
Before utilizing the full features of GroupDocs Comparison for .NET, setting up a metered license is crucial. Here's a step-by-step guide to achieve this:
28+
## Step 1: Acquire Public and Private Keys
29+
Firstly, acquire the public and private keys provided by GroupDocs after purchasing a metered license.
30+
## Step 2: Set up the Metered License
31+
Now, use the obtained public and private keys to set up the metered license as demonstrated below:
32+
```csharp
33+
string publicKey = "*****";
34+
string privateKey = "*****";
35+
Metered metered = new Metered();
36+
metered.SetMeteredKey(publicKey, privateKey);
37+
Console.WriteLine("License set successfully.");
38+
```
39+
Replace `"*****"` with your actual public and private keys provided by GroupDocs. This code initializes the metered license with the provided keys, enabling access to the full functionality of GroupDocs Comparison for .NET.
40+
41+
## Conclusion
42+
In conclusion, GroupDocs Comparison for .NET offers a comprehensive solution for document comparison within .NET applications. By following the outlined steps for importing namespaces and setting up a metered license, developers can seamlessly integrate this powerful library into their projects, facilitating efficient document comparison workflows.
43+
## FAQ's
44+
### Can I use GroupDocs Comparison for .NET without a license?
45+
No, a valid license is required to utilize the full functionality of the library. However, you can obtain a temporary license for testing purposes.
46+
### What document formats does GroupDocs Comparison for .NET support?
47+
GroupDocs Comparison for .NET supports a wide range of document formats including DOCX, XLSX, PPTX, PDF, and more.
48+
### Is GroupDocs Comparison for .NET compatible with .NET Core?
49+
Yes, GroupDocs Comparison for .NET is compatible with both .NET Framework and .NET Core environments.
50+
### Can I customize the comparison settings?
51+
Yes, developers have the flexibility to customize various aspects of document comparison such as comparison type, style settings, and comparison scope.
52+
### Where can I seek assistance if I encounter any issues?
53+
You can seek assistance from the GroupDocs Comparison community forum [here](https://forum.groupdocs.com/c/comparison/12).

0 commit comments

Comments
 (0)