Created
December 11, 2017 13:12
-
-
Save youcoldfusion/50fe0d52f34bd32ce4cec5d6292a1f11 to your computer and use it in GitHub Desktop.
Get Employee Details in pdf format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--- EmployeeDetails.cfm ---> | |
<cfhtmltopdf> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
table, th, td { | |
border: 1px solid black; | |
text-align: left; | |
} | |
</style> | |
</head> | |
<body> | |
<h1> Employee Details:</h1> | |
<table style="width:100%"> | |
<tr> | |
<th>First Name</th> | |
<th>Last Name</th> | |
<th>Salary</th> | |
</tr> | |
<tr> | |
<td>Animesh</td> | |
<td>Dutta</td> | |
<td>100000 crore</td> | |
</tr> | |
<tr> | |
<td>Hiranmayee</td> | |
<td>Dutta</td> | |
<td>200000 crore</td> | |
</tr> | |
</table> | |
</body> | |
</html> | |
</cfhtmltopdf> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment