Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports, version for Visual Studio
Viewing all articles
Browse latest Browse all 3636

Fields no show in page header RAS Crystal Report

$
0
0

Hello to all experts,

 

i have a big problem, i create a fully dynamic crystal report using visual studio 2010 and Report Application Server Crystal Report. i Programmitically generate field in detail section. but page header field not show. i don't know why. please tell my how i programmitically create fields in page header section. i use this code for detail section.

 

 

CrystalDecisions.CrystalReports.Engine.ReportDocument cryRpt = new CrystalDecisions.CrystalReports.Engine.ReportDocument();

ISCDReportClientDocument clientdocument = cryRpt.ReportClientDocument;

 

cryRpt.Load(@"C:\Users\Rizwan.qamar\documents\visual studio 2010\Projects\dynamic report\dynamic report\CrystalReport2.rpt");

Fields fields = clientdocument.DatabaseController.Database.Tables[0].DataFields;

 

i = fields.Find(dt.Columns[i].ToString(), CrFieldDisplayNameTypeEnum.crFieldDisplayNameDescription, CeLocale.ceLocaleUserDefault);

Field flovid = (Field)fields[i];

 

clientdocument.DataDefController.ResultFieldController.Add(-1, flovid);

 

cryRpt.SetDataSource(dt);

crystalReportViewer1.ReportSource = cryRpt;




i am waiting for your early replay,

Thanks


Viewing all articles
Browse latest Browse all 3636

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>