1460759 - How to add a line to a report using the Report Application Server (RAS) SDK for VS .NET?

SAP Knowledge Base Article - Public

1460759 - How to add a line to a report using the Report Application Server (RAS) SDK for VS .NET?

Symptom

Resolution

Use the below code:

CrystalDecisions.CrystalReports.Engine.ReportDocument ReportDoc = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
ReportDoc.Load(sampleReportPath);
 
ISCDReportClientDocument rcd = ReportDoc.ReportClientDocument;
CrystalDecisions.ReportAppServer.ReportDefModel.LineObject lineObject = new CrystalDecisions.ReportAppServer.ReportDefModel.LineObject();
LineObject.Top = 10;
LineObject.Bottom = 10;
LineObject.Left= 10;
LineObject.Right= 6000;
LlineObject.LineThickness = 15;
LineObject.LineStyle= CrystalDecisions.ReportAppServer.ReportDefModel.CrLineStyleEnum.crLineStyleSingle;
LineObject.SectionName = bosection.Name;
LlineObject.EndSectionName = bosection.Name;
LineObject.EnableExtendToBottomOfSection = false;
LineObject.SectionCode = bosection.SectionCode;

Keywords

Forum Thread , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , How To

Product

Crystal Reports 2008 V0 ; Crystal Reports 2008 V1 ; SAP Crystal Reports XI R2