باسلام خدمت دوستان گرامی
من توی چاپ بک صفحه از استیمول استفاده کردم
اطلاعاتی که میخوام چاپ کنم،همون مقادیر توی تکست باکس ها هستن!
و تکست باکس ها از طریق دیتا بیس پر میشن(با یه سلکت از دیتا بیس!)
حالا من میخوام این صفحه رو سمت وب،بدن نشان دادن viewer خروجی pdf بگیرم!
کداهایی که استفاده کردم اینا هستن:
StiReport report = new StiReport();
var path = System.Web.HttpContext.Current.Server.MapPath("/") + "Administrator\\Reports\\";
report.Load(path + "Print.mrt");
string con = ConfigurationManager.ConnectionStrings["JDTCMSNEWEntities"].ConnectionString;
report.Dictionary.Databases.Add(new Stimulsoft.Report.Dictionary.StiSqlDatabase("conne ction", con));
report.Dictionary.Variables["tarix"].Value = (string)Session["tarix"];
report.Dictionary.Variables["time"].Value = (string)Session["time"];
report.Dictionary.Variables["shahr"].Value = (string)Session["shahr"];
report.Dictionary.Variables["tell"].Value = (string)Session["tell"];
report.Dictionary.Variables["adress"].Value = (string)Session["adress"];
report.Render();
//Variant 1
StiPdfExportService pdfExport = new StiPdfExportService();
pdfExport.ExportPdf(report, "2.pdf");
ولی وقتی کد اجرا میشه ارور میده:
Keyword not supported: 'metadata'.
report.Render();
ممنون میشم اگه کمکم کنید!
البه من توی این گزارش تمام مقادیر رو با session به صفحه پرینت منتقل کردم و ازشون استفاده کردم
اگه راه حل بهتری باشه ، باز ممنون میشم
تشکر