你好我想问一个关于在eclipse里面怎么实现crystal report的动态列的实...
是比较难,需要在详细资料区动态添加要显示的字段并调整其显示位置及显示宽度和高度。
如果是用DELPHI来调用水晶报表来实现的话,是可行的。
但比较复杂。
举个例子吧: Crpe1.SectionSize.Items[Crpe1.SectionSize.IndexOf( 'D ')].Height := 22;//详细资料区行高 Crpe1.SectionFont.Items[Crpe1.SectionFont.IndexOf( 'D ')].Size := 18;//字体大小 Crpe1.SectionFont.Items[Crpe1.SectionFont.IndexOf( 'D ')].Weight := fwBold;//字体样式 Crpe1.DatabaseFields.Items[Crpe1.DatabaseFields.IndexOf[ '{inspection.chinese_name} ')].Left := 4000; //此句为动态设置字段的显示位置
CrystalReport是什么格式的文件?
Crystal Reports 2008 是一个功能强大、动态和可操作的报表解决方案,它将帮助你通过网络设计、开发、可视化及发布报表,或嵌入到企业应用之中。
有了它,最终用户将能 够利用光彩夺目的可视化功能使用报表,进行 on-report 的业务建模,并且从报表自身迅速执行决策,从而减少了对 IT 和开发人员的依赖性。
C#怎么把水晶报表显示在crystalReportViewer控件中
展开全部 使用C#实现的版本 C# code using System; using System.Windows.Forms; using CrystalDecisions.Shared; using CrystalDecisions.Windows.Forms; using CrystalDecisions.CrystalReports.Engine; using CrystalDecisions.ReportAppServer.ClientDoc; using CrystalDecisions.ReportAppServer.Controllers; namespace CS_APP_AddSubReportRuntime { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { ReportDocument boReportDocument =new ReportDocument(); ISCDReportClientDocument boReportClientDocument ; CrystalDecisions.ReportAppServer.Controllers.SubreportClientDocument boSubreportClientDocument; CrystalDecisions.ReportAppServer.ReportDefModel.Section boSection ; String strSubRptFile =""; //加载主报表 boReportDocument.Load(@"E:\CRQuestions\CS_APP_AddSubReportRuntime\Crystalreport1.rpt"); /*---------------------------------------- 如果要进行数据、参数、公式操作,请在此处对主报表boReportDocument进行操作 ----------------------------------------*/ boReportClientDocument = new ReportClientDocumentClass(); //由主报表返回待RAS操作的ReportClientDocument boReportClientDocument = boReportDocument.ReportClientDocument; //获取到第一个section,用来放置子报表 boSection = boReportClientDocument.ReportDefController.ReportDefinition.PageHeaderArea.Sections[0]; //待加载的子报表 strSubRptFile = @"E:\CRQuestions\CS_APP_AddSubReportRuntime\sub1.rpt"; //导入子报表,ss1是子报表对象在主报表上的名称 boSubreportClientDocument = boReportClientDocument.SubreportController.ImportSubreport("ss1", strSubRptFile, boSection); /*---------------------------------------- 如果要进行数据、参数、公式操作,请在此处对子报表boSubreportClientDocument 进行操作 ----------------------------------------*/ //刷新Viewer crystalReportViewer1.ReportSource = boReportDocument; } } } 如果你这个代码仍运行不过的话,非常可能是你的 BO 没有RAS授权。
请教各位,有关VB调用CrystalReport打印Chart时?
这个问题,并不是在所有的客户机上发生. 说明与SQL,VB及控件没有什么大的关系. 使用chart图表功能时,与当时的系统资源有关系,若系统资源紧张时就会出现此错误; 你加上容错语句吧! 这个问题我发生了若干次了, 有的电脑从来不发生,有的却刚启动系统不出错,当长时间使用电脑后,再使用此功能时则有可能出错. 只好容错处理了,不要让系统直接退出就好了.
转载请注明出处51数据库 » crystal report 输出成wo
冰雨云