public string generateReport(Entities.medicinesDispense med) { var report = new BuidReport(); var reportEntity = new Entities.Report(); var reportName = string.Empty; var folderName = string.Empty; //var serverPath = HttpContext.Current.Server.MapPath("../POS/"); var parameters = new ArrayList(); parameters.Add(med.FromDate); parameters.Add(med.ToDate); folderName = "PreEmploymentDetails"; reportName = "medicinesDispenseReport.rpt"; var serverPath = HttpContext.Current.Server.MapPath("/HealthScreeningApp/"); reportEntity.DirectoryPath = serverPath + "ApplicationFiles/" + folderName + "/"; reportEntity.ReportPath = serverPath + "Reports/" + reportName; reportEntity.Parameters = parameters; reportEntity.FileStoragePath = reportEntity.DirectoryPath + Convert.ToString("MedicinesDispense") + ".pdf"; return(report.GenerateReport(reportEntity, CrystalDecisions.Shared.ExportFormatType.PortableDocFormat)); }
public String medicinesDispenseReport(Entities.medicinesDispense med) { return(_Med.generateReport(med)); }