Skip to content

imd0t/PayStubCreator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PayStubCreator

This app is a small experiment with using NuGet packages, namely EPPlus for reading excel files and PDFsharp for creating .pdf files. The aim was to parse employee working hours in a set excel format (excel template available as paystub_template.xlsx) and calculate total pay, retirement and healthcare deductions as well as income tax and generate an appropriate .pdf pay stub.

User interface

The user interface is created in WPF. It allows for the excel file selection, batch mode where all .xls and .xlsx files are parsed and optional company logo image selection.

alt text

The application has rudimentary logging built-in, which reports files where errors were encountered when trying to parse data.

Output

Sample output pdf:

Output pdf

Dependencies

Author's notes

Encountered exceptions are handled "unnaturally" via raising events and passing appropriate error messages to the LogError method. This was done as an extensive events and EventArgs practice.

License

MIT

Free Software, Hell Yeah!

About

.pdf paystub generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%