This is a desktop application built with WPF (.NET) that generates barcodes and QR codes using the Spire.Barcode NuGet package. The application provides a simple user interface for generating and previewing barcode or QR code images based on user input.
Below is a preview of the application displaying a generated barcode:
- Barcode Generation: Generate barcodes using Code39 format.
- QR Code Generation: Generate QR codes for any text input.
- Preview Images: Display the generated barcode/QR code in the application.
- Save to File: Automatically save the generated images to an output folder.
- Error Handling: Prevents overwriting files with duplicate names.
- Windows Operating System (for WPF applications).
- .NET Framework 4.7.2 or higher / .NET Core 3.1 or higher.
- Spire.Barcode NuGet Package:
- Install via NuGet Package Manager:
Install-Package Spire.Barcode
- Install via NuGet Package Manager:
git clone https://github.com/biswajitpanday/BarcodeGenerator.git
cd BarcodeGenerator- Open the
.slnfile in Visual Studio.
- Press
F5to build and run the application.
- Enter text in the input field.
- Select either "Barcode" or "QR Code" using the radio buttons.
- Click the "Generate" button.
- The generated image will be previewed in the application.
- The file is saved in the
outputsfolder within the application directory.
|-- BarcodeGenerator
| |-- MainWindow.xaml # UI layout
| |-- MainWindow.xaml.cs # Code-behind logic
| |-- App.xaml # Application startup configuration
| |-- outputs/ # Folder to store generated images
|-- BarcodeGenerator.sln # Solution file
|-- README.md # Project documentation
- If the application encounters an existing file with the same name, it will prompt the user with an error message.
- Ensure the input field is not empty before clicking "Generate." Blank input will result in an error.
- Spire.Barcode: A comprehensive library for generating barcodes and QR codes.
- Allow users to customize the appearance of barcodes and QR codes (e.g., size, colors).
- Add support for additional barcode formats.
- Provide an option to select output folder.
- Implement drag-and-drop functionality for input.
This project is open-source and available under the MIT License.
Contributions are welcome! Please submit a pull request or create an issue for any suggestions or bugs.
For any queries, please contact [biswajitmailid@gmail.com].
