问题标签 [xtrareport]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
2764 浏览

c# - XTRA 报告分页符不起作用 Dev Express

所以我想创建多个 XR 对象,并在每个对象初始化之间添加一个分页符。我写了一个小例子来演示:

在 XtraReportsClass 里面我有这个......

所以我的逻辑是每次都创建一个标签,然后从主窗体中调用标签,比如......

所以我希望在每个页面上都有一个标签,在 Location(20,200) 处,输出为“iteration:{value of k}”不幸的是,它们都在同一个位置被打在一起,而不是移动到下一页。 ..

我已经尝试过,

活动,有什么建议吗?

0 投票
1 回答
1659 浏览

c# - XtraReports 双标签结合

我正在尝试在 XtraReports 中做一个简单的条件语句绑定。我将主要报告绑定到我的数据集、我的字段(GoalAmount、GoalName、GoalNumber、GoalStart、GoalEnd)。

现在填充了 GoalNumber 或 GoalAmount。它总是一个或另一个。所以我想做一些类似的事情 -

谢谢您的帮助。

0 投票
1 回答
1830 浏览

asp.net - 具有大量数据的 Xtra 报告性能

我在 Devexpress 中有 XtraReports 有 1 条数据(1326 页).. 但是在 reportviewer 中加载数据需要很多时间.. 每个页面导航也需要相同的时间

减少将数据加载到 reportViewer 的时间的解决方案是什么?

谢谢...

0 投票
1 回答
2038 浏览

c# - DevExpress XtraReports - 带有存储过程的主报告和子报告

我目前正在使用最新版本的 XtraReports 来制作都调用存储过程的主报告和子报告。主人工作正常,但由于某种原因,即使它传递了正确的参数并且我知道 proc 工作,sub 也没有提取数据。根据我在他们的网站上找到的信息,我应该在子报表上执行 BeforePrint 以绑定数据适配器。在报表的设计视图中,我设置了 DataSource 和 DataMember,并将 dataadapter 设置为 none。然后在打印前我有以下内容 -

它点击它并提取数据,但它没有将其绑定到报告。有任何想法吗?谢谢

0 投票
2 回答
2972 浏览

c# - Devexpress Report Bands

Hi can i export not the whole report but instead the report bands of devexpress xtrareport? I want to have the header, body and footer pass onto different strings. It is possible? Thanks

UPDATE

I have a InvoiceReceipt which has ReportHeader, Detail, ReportFooter what i want is to pass

So when i get header it should have the header of the report in text format ( since it was exported as text ) and the rest follows.

OR

can i have the ReportHeader be exported as Text? same as ReportFooter and the Details part?

OR

can i have devexpress reports export to text a specific report by reportheader, reportfooter and details?

0 投票
2 回答
1746 浏览

asp.net - DevExpress:带有 WebForms 和实体框架的 XtraGrid

截至今天,我对 XtraReports(以及一般的 DevExpress)完全陌生。我有 2 天的时间来实施报告,所以请善待并提供详尽的解释。

我必须处理的是:

  1. 网络表单 (.NET 4)
  2. 实体框架(edmx,不是 Code First)
  3. 我创建了一个报告(继承 DevExpress.XtraReports.UI.XtraReport)
  4. 目前报告中没有字段,因为我不知道如何将其绑定到我的实体..

我确实找到了一个有人这样做的网站:

我尝试在构造函数中这样做:

但即使我可以看到有 8 条记录,报告也没有显示任何内容。我猜我需要创建一些控件并绑定它们。有没有人有这种情况的一些工作代码?

编辑

如果有人问.. 是的,我已经到处搜索了一个例子,包括这里: http ://documentation.devexpress.com/#XtraReports/CustomDocument9814 。该站点确实显示了如何绑定到数据集..但我不知道如何使用实体框架代替它...这就是我在这里问的原因...

0 投票
1 回答
1050 浏览

asp.net - Devexpress Xtrareports databound generates (unwanted) pagebreak after each record

Using devexpress xtrareports version 11.2 I have setup a databound report using a temporary table. I bind the content to a single xrrichttext on the report.

Each record is generated and each next record starts on a new page. Now I want to lose the automatic pagebreak and implement my own logic for breaking.

But I have not yet been able to drop the auto-break. I went through all the pagebreak properties in design mode but everything is already set to none.

Besides the xrrichtext there is also a xrpanel which contains a xrlabel, all are set to a low height as default with cangrow/canshrink to true.

Is there something specific I can set for this or am I still missing something?

edit: I am using the detailband, I had given the xrrichtext a minimal height after realizing this might be the problem, but this didnot seem to help. But after I restarted this did however fix the problem.

But now my own pagebreaks are not working as expected, not sure if I should start another question for this.

In the detailband I have added a xrpagebreak. In the detail_beforeprint I check if the current records needs a pagebreak

Only now I am getting a pagebreak for every record, doesnot seem to react on the value for field 'break'?

0 投票
0 回答
480 浏览

c# - Lightswitch XtraReport 图表 - 减少点数/访问数据源

我有一个包含 6 个图表的 XtraReport,其中包含 4-8 个 LineSeries,每个 Series 最多可以有 25,000 个点。数据来自数据库表的查询。

问题是,绘制报告大约需要 3 分钟,这对我们来说太长了。所以我们需要减少点数(我已经在另一种情况下这样做了,所以我知道该怎么做)。

但是执行这种还原操作的“正确位置”在哪里?在 ReportPreview 控件所在的屏幕中,并将一个新的集合(包含所有系列)作为参数传递给报表?是否可以使用这样的自定义对象作为参数?

或者我应该先在报告中加载数据库表,然后再减少它?

如何通过代码访问 XtraReport 中的数据源?

以及如何告诉我的图表组件选择我的集合作为数据源而不是数据库查询结果?

还有任何其他提高 XtraReports 和图表性能的方法。

谢谢。

编辑

我们创建了一个减少点数的 SQL 视图,并且还使用了带有 LINQ 的 Preprocess_query 方法中的一些代码来仅使用需要的点。

0 投票
1 回答
2909 浏览

c# - XtraReport 以多列模式显示多个页面

我有一个显示 100 页报告的 DevExpress XtraReport。我希望页面以页面在 MS-Word 中显示的方式显示。但是,XtraReport 以多列/行模式(卡片布局)显示它们。除了将 MultiColumn 属性设置为 None 之外,还有其他属性可以帮助我克服这个问题吗?

0 投票
1 回答
240 浏览

richtextbox - 想要我的单元格中的几种字体颜色

我正在创建一个新单元格 = new XRTableCell();

我将展示我的代码示例。即使我在“如果”中更改了它,我的单元格中总是以相同的颜色结束。