{"id":20027951,"url":"https://github.com/mohamedelareeg/barcode-generator","last_synced_at":"2025-07-10T20:35:57.045Z","repository":{"id":272168842,"uuid":"678350440","full_name":"mohamedelareeg/Barcode-Generator","owner":"mohamedelareeg","description":"Barcode Generator with Barcode Designer is a versatile application developed using C# and WPF. It offers comprehensive barcode generation capabilities for assets, boxes, files, and documents, along with an intuitive Barcode Designer feature for creating custom barcode labels effortlessly.","archived":false,"fork":false,"pushed_at":"2024-02-29T15:56:17.000Z","size":9978,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T19:54:20.857Z","etag":null,"topics":["barcode","barcode-generator","canvas","dotnet","label-designer","wpf","zxing"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mohamedelareeg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-14T10:55:05.000Z","updated_at":"2024-12-16T10:30:00.000Z","dependencies_parsed_at":"2025-01-12T17:28:21.855Z","dependency_job_id":"056d00ca-acd6-4f2c-bf6b-284f0531cddc","html_url":"https://github.com/mohamedelareeg/Barcode-Generator","commit_stats":null,"previous_names":["mohamedelareeg/barcode-generator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mohamedelareeg/Barcode-Generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohamedelareeg%2FBarcode-Generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohamedelareeg%2FBarcode-Generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohamedelareeg%2FBarcode-Generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohamedelareeg%2FBarcode-Generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mohamedelareeg","download_url":"https://codeload.github.com/mohamedelareeg/Barcode-Generator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohamedelareeg%2FBarcode-Generator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264652953,"owners_count":23644361,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["barcode","barcode-generator","canvas","dotnet","label-designer","wpf","zxing"],"created_at":"2024-11-13T09:12:30.735Z","updated_at":"2025-07-10T20:35:56.897Z","avatar_url":"https://github.com/mohamedelareeg.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Barcode Generator with Barcode Designer\n\nThis is a comprehensive barcode generation application built using C# and WPF. It combines the functionality of generating barcodes for assets, boxes, files, and documents with a powerful Barcode Designer feature for creating custom barcode labels with ease.\n\n## Features\n\n- **Barcode Generation:** Generate barcodes for various purposes including assets, boxes, files, and documents.\n- **Barcode Designer:** Design custom barcode labels with intuitive tools and functionalities.\n- **Printer Compatibility:** Supports popular barcode printers such as Honeywell and Zebra.\n- **Flexible Printing Options:** Print single barcodes, ranges, or directly from Excel files for convenience.\n- **Usage Tracking:** Keep track of used barcode prints for better inventory management.\n\n## Getting Started\n\nTo start using the Barcode Generator with Barcode Designer:\n\n1. **Clone the Repository:** Clone the repository to your local machine.\n2. **Open in Visual Studio:** Open the solution in Visual Studio.\n3. **Build and Run:** Build the solution and run the application.\n4. **Configure Settings:** Configure settings such as maximum barcode prints and installed printers.\n5. **Explore Barcode Designer:** Explore the Barcode Designer feature to create custom barcode labels.\n6. **Generate Barcodes:** Start generating barcodes for your assets, boxes, files, or documents.\n\n## Dependencies\n\n- **Entity Framework Core:** Entity Framework Core is used for database interactions and management.\n- **EPPlus:** EPPlus library is utilized for Excel file handling and manipulation.\n\n## Usage\n\n- **Select Barcode Type:** Choose the type of barcode to generate based on your requirements.\n- **Enter Barcode Information:** Enter the necessary information for the barcode generation process.\n- **Customize with Barcode Designer:** Utilize the Barcode Designer feature to customize barcode labels with text, images, and more.\n- **Print Barcodes:** Select the printer and print the generated barcodes directly or export them to Excel for batch printing.\n\n## Barcode Generator\n\n![Barcode Generator](Images/generate.png)\n\n\nThe Barcode Generator section allows you to easily select the type of barcode to generate and input the necessary information for the generation process.\n\n## Barcode Designer\n\n![Barcode Designer](Images/designer.png)\n\nThe Barcode Designer empowers you to customize barcode labels with text, images, and various design elements, providing full control over the appearance of your barcodes.\n\n## Sample Code\n\n```csharp\nprivate void CreateBarcodeImage(string content, System.Windows.Point position)\n{\n    // Create barcode writer with required format and options\n    BarcodeWriter barcodeWriter = new BarcodeWriter();\n    barcodeWriter.Format = BarcodeFormat.CODE_39;\n    barcodeWriter.Options = new EncodingOptions\n    {\n        Width = 100,\n        Height = 30,\n        PureBarcode = true\n    };\n\n    // Generate the barcode image\n    Bitmap barcodeBitmap = (Bitmap)barcodeWriter.Write(content);\n\n    // Convert the Bitmap to a BitmapSource for WPF\n    BitmapSource barcodeBitmapSource = Imaging.CreateBitmapSourceFromHBitmap(\n        barcodeBitmap.GetHbitmap(),\n        IntPtr.Zero,\n        Int32Rect.Empty,\n        BitmapSizeOptions.FromEmptyOptions());\n\n    // Create a WPF Image control to display the barcode\n    System.Windows.Controls.Image barcodeImage = new System.Windows.Controls.Image();\n    barcodeImage.Source = barcodeBitmapSource;\n    Canvas.SetLeft(barcodeImage, position.X);\n    Canvas.SetTop(barcodeImage, position.Y);\n    designCanvas.Children.Add(barcodeImage);\n    CreateDraggableItem(barcodeImage, ElementType.Barcode, position);\n}\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Acknowledgments\n\n- Special thanks to [ZXing.Net](https://github.com/micjahn/ZXing.Net) for providing robust barcode generation support.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohamedelareeg%2Fbarcode-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohamedelareeg%2Fbarcode-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohamedelareeg%2Fbarcode-generator/lists"}