Home / Scripts & Code / C#


ASP NET Invoice GeneratorASP NET Invoice Generator
ASP.NET Core Invoice Generator with PDF Export & SQLiteHome / Scripts & Code / C#

ASP NET Invoice Generator
ASP.NET Core Invoice Generator with PDF Export & SQLite
Overview
🧾 ASP.NET Core Invoice Generator with PDF Export & SQLite
A clean, modern, and production-ready ASP.NET Core MVC web application for generating professional invoices. This solution supports itemized billing, tax/discount/shipping modifiers, currency conversion, and exporting beautiful PDF invoices using one of 3 elegant built-in templates.
✨ Key Features
- 🧾 Invoice creation with sender & recipient details
- 📦 Add multiple items with quantity and rate
- 🏷️ Apply tax, discount, and shipping (percentage or fixed)
- 💱 Multi-currency support (USD, EUR, KES)
- 🌐 Global settings for default values, terms, and logo
- 🖨️ Export invoices to PDF with built-in templates
- 🎨 3 elegant PDF templates (Default, Modern, Simple)
- 💾 Built on lightweight SQLite – no SQL Server needed
- ⚙️ Built with .NET 6, Razor Pages, Entity Framework Core
- 🧩 Clean MVC structure and modular codebase
🖨️ PDF Invoice Templates
- Default – Traditional layout with sections
- Modern – Sleek, bold heading with minimal spacing
- Simple – Clean, lightweight layout
Each template can be customized or extended.
🧩 Technologies Used
- ASP.NET Core MVC (Razor Pages)
- Entity Framework Core with SQLite
- iTextSharp for PDF generation
- Bootstrap for responsive UI
📸 Preview Highlights
- Invoice creation UI
- PDF preview (all 3 templates)
- Global settings panel
- Currency and item management
📃 What You Get
- Complete source code (ASP.NET Core MVC Project)
- Preconfigured SQLite database
- 3 PDF export templates
- README.md + Setup Instructions
- requirements.txt (NuGet packages)
📧 Support
Need help or want customization? Contact the author.
Features
- Client & sender invoice info
- Item management (name, rate, quantity)
- Invoice creation with:
- Tax, discount, shipping (percentage or fixed)
- Payment terms, due dates, notes
- Currency selection (USD, KES, EUR)
- Export PDF with custom logo & template (3 designs)
- Global default settings for consistent invoices
- Currency conversion service
- SQLite database - no external DB setup required
- Fully documented and organized codebase
- MVC architecture with Entity Framework Core
Requirements
- .NET 6 SDK
- Visual Studio 2022+ or VS Code
- No SQL Server needed (SQLite used)
Instructions
- Open `Invoice Generator.sln` in Visual Studio 2022 or later.
- Check the connection string in `appsettings.json`
- Create Database (Using Package Manager Console)
- Run the App
Other items by this author
Information
Category | Scripts & Code / C# |
First release | 4 July 2025 |
Last update | 4 July 2025 |
Files included | .cs, .csproj |
Software version | .NET 4.6 |
Tags | source code, generator, invoice, sql, .net, dotnet, asp, asp net |