| Name | City | |
|---|---|---|
| Ram | Vns | |
| Syam | Alld | |
| Gita | LKO | |
| Anita | Vns |
Code
<html>
<head>
<title>Table
Select</title>
<style>
.chk {
}
</style>
| Name | City | |
|---|---|---|
| Ram | Vns | |
| Syam | Alld | |
| Gita | LKO | |
| Anita | Vns |
<html>
<head>
<title>Table
Select</title>
<style>
.chk {
}
</style>
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
This post will help you to create a PDF file from a URL in ASP.Net C#. Follow the steps given below. We will save a PDF file on the server then after viewing the PDF file, the file will be deleted.
Download Select.HtmlToPdf.NetCore package from NuGet.
Goto Tools Menu>Nuget Package Manager > Manage Nuget Package for Solution
function createPDF(pageurl)
{
$.ajax({
url: '/Common/htmltopdf/',
async: true,
dataType: "json",
type: "GET",
contentType: 'application/json; charset=utf-8',
data: { url: pageurl},
success: function (data) {
DelPDF('/upload/print/' + $.trim(invid) + '.pdf');
window.location.href = '/upload/print/' + $.trim(invid) + '.pdf';
}
});
}
function DelPDF(path)
{
$.ajax({
url: '/Common/DeleteCommonFile?path=' + path,
type: "POST",
contentType: false, // Not to
set any content header
processData: false, // Not to process data
success: function (result) {
//Update Extension
if (result.sMessage == "1")
{
}
else
alert(result.sMessage);
},
error: function (abc) {
alert(abc.statusText);
}
});
}
Controller C# code
public JsonResult htmltopdf(string url,string inv)
{
// instantiate
a html to pdf converter object
HtmlToPdf converter = new HtmlToPdf();
// create a new
pdf document converting an url
PdfDocument doc =
converter.ConvertUrl(url);
// save pdf
document
doc.Save(Server.MapPath("~/upload/print/" + inv + ".pdf"));
// close pdf
document
doc.Close();
return Json(new { sMessage = "11"}, JsonRequestBehavior.AllowGet);
}
[HttpPost]
public JsonResult DeleteCommonFile(string path)
{
try
{
string filename = Server.MapPath(path);
if (System.IO.File.Exists(filename))
{
System.IO.File.Delete(filename);
}
return Json(new {
sMessage = "1",
JsonRequestBehavior.AllowGet });
}
catch (Exception ex)
{
return Json(new {
sMessage = ex.Message, JsonRequestBehavior.AllowGet });
}
}
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
इस पेज पर आप इ-कॉमर्स टॉपिक पर इग्नू के लिए सिनोप्सिस डाउनलोड क्र सकते है। इ-कॉमर्स प्रोजेक्ट सिनोप्सिस इग्नू के द्वारा दिए गए निर्देशों के अनुरूप बनाया गया है। ये प्रोजेक्ट सिनोप्सिस इग्नू में उपयोग किया जा सकता है , क्योकि इग्नू द्वारा दिए गए सिनोप्सिस सैंपल के सारे पॉइंट को कवर किया गया है।
On this page, you can download Synopsis for IGNOU on the E-commerce topic. The e-commerce project synopsis is designed as per the instructions given by IGNOU. This project synopsis can be used in IGNOU, as all the points of the synopsis sample given by IGNOU are covered.
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Get MCA project synopsis for IGNOU . All Synopsis on this page are made as per the IGNOU guidline . All points are covered. PDF and editable word both version are available . PDF is free and editable word version is paid and can be modified if required. List synopis on different topics are given below.
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.