public ActionResult EmployersPostedJobs() { FreelancerMarketplace.Models.DB66Entities db = new FreelancerMarketplace.Models.DB66Entities(); var c = (from b in db.JobsPostedByEmployers select b).ToList(); PostedJobsOfEmployer rpt = new PostedJobsOfEmployer(); rpt.Load(); rpt.SetDataSource(c); Stream s = rpt.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat); return(File(s, "application/pdf")); }
public ActionResult freelancerPrevProject() { FreelancerMarketplace.Models.DB66Entities db = new FreelancerMarketplace.Models.DB66Entities(); var c = (from b in db.JobsDoneByFreelancers select b).ToList(); FreelancerPreviousProjects rpt = new FreelancerPreviousProjects(); rpt.Load(); rpt.SetDataSource(c); Stream s = rpt.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat); return(File(s, "application/pdf")); }
public ActionResult FreelancerList() { FreelancerMarketplace.Models.DB66Entities db = new FreelancerMarketplace.Models.DB66Entities(); //CrMVCApp.Models.Customer c; var c = (from b in db.ListOfFreelancers select b).ToList(); FreelancersList rpt = new FreelancersList(); rpt.Load(); rpt.SetDataSource(c); Stream s = rpt.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat); return(File(s, "application/pdf")); }