My task is during run time add a table to CR then add fieldobjects and display in the crystal report viewer, all are working fine but problem is the fields are displaying without heading, i want to add the heading for every column in detail section. T
his is my sample code
boFieldObject2 = new CrystalDecisions.ReportAppServer.ReportDefModel.FieldObject();
There is FieldHeadingObject i tried but unable to set the Text. I'm using Crystal Report 11.5,Visual Studio2005-C#,Asp.net 2.0 and SQL Server. Experts please help me.
Any doubts please feel free to ask me. If this post is answer of your question then don't forgot to Click "Mark As Answer".
J.Jeyaseelan
jeyaseelan@a...
Contributor
5124 Points
2025 Posts
Programaticaly add Heading(ITextobject) for every Fieldobject?
Sep 05, 2008 02:37 PM|LINK
Hi to all,
My task is during run time add a table to CR then add fieldobjects and display in the crystal report viewer, all are working fine but problem is the fields are displaying without heading, i want to add the heading for every column in detail section. T
his is my sample code
boFieldObject2 = new CrystalDecisions.ReportAppServer.ReportDefModel.FieldObject();
boFieldObject.DataSourceName = "{User_Images.imgId}";
boFieldObject.DataSource = "{User_Images.imgId}";
boFieldObject.Name = "imgId";
boFieldObject.FieldValueType = CrystalDecisions.ReportAppServer.DataDefModel.CrFieldValueTypeEnum.crFieldValueTypeInt32sField;
boFieldObject.Left = 4 * 1440; //1440 twips per inch boFieldObject.Width = 3 * 1440;
boFieldObject.FontColor = new CrystalDecisions.ReportAppServer.ReportDefModel.FontColor();
boFieldObject.FontColor.Font.Name = "Arial";
boFieldObject.FontColor.Font.Size = 10; //Add the object to the report
boReportClientDocument.ReportDefController.ReportObjectController.Add(boFieldObject, boSection, -1);
There is FieldHeadingObject i tried but unable to set the Text. I'm using Crystal Report 11.5,Visual Studio2005-C#,Asp.net 2.0 and SQL Server. Experts please help me.
J.Jeyaseelan
jeyaseelan@a...
Contributor
5124 Points
2025 Posts
Re: Programaticaly add Heading(ITextobject) for every Fieldobject?
Sep 08, 2008 04:36 AM|LINK
Hi to all,
I found the way from https://www.sdn.sap.com/irj/sdn/thread?threadID=1031270&tstart=0
J.Jeyaseelan