officefileapi-15114-barcode-generation-api-getting-started.md
Important
You need a license for the DevExpress Office File API Subscription or DevExpress Universal Subscription to use these examples in production code.
This article describes how to get started with the barcode generation component for .NET Framework and .NET Core.
Create a new Windows Forms App (.NET Framework) project.
Add references to the following libraries:
Drop the Button and PictureBox items from the Toolbox onto the form.
Add the following code to the method that handles the button’s Click event.
Run the project and click the button. The PictureBox control displays the resulting QR code.
View Example: Create and display a BarCode in a web application
Start Microsoft Visual Studio and create a new Console Application (.NET Core) project.
Install the DevExpress.Document.Processor NuGet package.
Paste the code below in the Main method of the Program.cs file ( Main procedure of the Module1.vb file for Visual Basic).
Run the project. The resulting image is shown below:
See Also