Код: Выделить всё
using ReportTools.ReportCreator;
using ReportTools.Shared;
Код: Выделить всё
PDFReport report = new PDFReport();
report.SpecificReportFileName = Page.Server.MapPath("ShowSR_CompanyTablePage.SR_CompanyPDFButton.report");
// report.Title replaces the value tag of page header and footer containing ${ReportTitle}
report.Title = "SR_Company";
// If ShowSR_CompanyTablePage.SR_CompanyPDFButton.report specifies a valid report template,
// AddColumn methods will generate a report template.
// Each AddColumn method-call specifies a column
// The 1st parameter represents the text of the column header
// The 2nd parameter represents the horizontal alignment of the column header
// The 3rd parameter represents the text format of the column detail
// The 4th parameter represents the horizontal alignment of the column detail
// The 5th parameter represents the relative width of the column
report.AddColumn(SR_CompanyTable.Name.Name, ReportEnum.Align.Left, "${SR_CompanyTable.Name.Name}", ReportEnum.Align.Left, 30);
report.AddColumn(SR_CompanyTable.IsActive.Name, ReportEnum.Align.Left, "${SR_CompanyTable.IsActive.Name}", ReportEnum.Align.Left, 15);
report.AddColumn(SR_CompanyTable.CompanyCategoryID.Name, ReportEnum.Align.Left, "${SR_CompanyTable.CompanyCategoryID.Name}", ReportEnum.Align.Left, 24);
Пожалуйста, посоветуйте.
Спасибо
Подробнее здесь: https://stackoverflow.com/questions/797 ... ttools-dll