Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using below code to generate pdf of booked ticket and a pdf is generated and displayed but I want that pdf will save in a folder so that I can send it to email address of user.

C#
public ActionResult ReportSample(tbbooking tbbook)
        {
            var uemail = Convert.ToString(Session["uemail"]);
            var bookingid = tbbook.bookingid;
            var getticket = db.tbbookings.Where(a => a.bookingid == tbbook.bookingid).ToList();
            return new RazorPDF.PdfResult(getticket, "ReportSample");
            
        }
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900