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);
Я искал где угодно, но безуспешно. Это проект ASP. Я проверил в Интернете, нет никакой информации об этом.
Пожалуйста, посоветуйте.
Спасибо
У моего клиента есть старый проект 2015 года, в его скрипте есть [code]using ReportTools.ReportCreator; using ReportTools.Shared; [/code] это пример кода, в котором нужен класс [code]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); [/code] Я искал где угодно, но безуспешно. Это проект ASP. Я проверил в Интернете, нет никакой информации об этом. Пожалуйста, посоветуйте. Спасибо