Symptom
Reproducing the Issue
Resolution
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.ReportAppServer.ClientDoc;
//CR Declarations
ReportDocument m_boReportDocument;
ISCDReportClientDocument m_boReportClientDocument;
CrystalDecisions.ReportAppServer.ReportDefModel.ReportObject m_boReportObject;
CrystalDecisions.ReportAppServer.ReportDefModel.ReportObject m_boReportObjectModified;
//create a new ReportDocument
m_boReportDocument = new ReportDocument();
//load the RPT file
m_boReportDocument.Load("..\\..\\DummyReport.rpt");
//access the ReportClientDocument in the ReportDocument (EROM bridge)
m_boReportClientDocument = m_boReportDocument.ReportClientDocument;
//get the first report object in the first details section
m_boReportObject = (CrystalDecisions.ReportAppServer.ReportDefModel.ReportObject) _
m_boReportClientDocument.ReportDefController.ReportDefinition.DetailArea.Sections[0].ReportObjects[0];
//make a copy of the report object that we will modify
m_boReportObjectModified = (CrystalDecisions.ReportAppServer.ReportDefModel.ReportObject) m_boReportObject.Clone(true);
//add the text you want as the tool tip
m_boReportObjectModified.Format.ToolTipText = "Tool Tip added";
//modify the object - we don't use add here because we are modifying an existing object
m_boReportClientDocument.ReportDefController.ReportObjectController.Modify(m_boReportObject, m_boReportObjectModified);
//display in reportviewer
crystalReportViewer1.ReportSource = m_boReportDocument;
Keywords
How add tooltip report Crystal Reports .NET inproc RAS SDK , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , How To