XtraReports 空引用异常

发布于 2024-08-22 00:17:53 字数 229 浏览 3 评论 0原文

任何使用 XtraReports 的人,我都在我的 LINQ to SQL 对象之一上创建了数据绑定,并在报表上拖动了一些属性,但是当我将数据源设置为对象时,我在 ShowPreview() 方法中得到 NullReferenceException。如果我没有设置数据源,我会正确看到预览(基本上只有我设置为背景的图片框)。会因为某些值为空而发生这种情况吗?即使我也不使用它们?如果真是这样,那就太可惜了。

异常并没有更多帮助。

Anyone who used the XtraReports, i have created a databinding on one of my LINQ to SQL objects and dragged some properties over the report, but when i set the datasource to an object i get NullReferenceException in ShowPreview() method. If i don't set the DataSource i see the preview correctly (basically only the picturebox i set as background). Could this happen because some values are null? even i don't use them? if so is true, this is so pity.

The Exception does not help more.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

沒落の蓅哖 2024-08-29 00:17:53

是的,您可以利用 LINQ to SQL API 将 XtraReport 文档绑定到数据。

查看本期中的示例项目:
http://www.devexpress.com/Support/Center/p/S30767。 aspx

如果您需要更多帮助,请访问 DevExpress 支持中心:
http://www.devexpress.com/Support/Center/CreateIssue。 aspx?issuetype=问题

Yes, you can utilize LINQ to SQL API to bind an XtraReport document to data.

Check out the sample project located in this issue:
http://www.devexpress.com/Support/Center/p/S30767.aspx

If you need more help, drop by the DevExpress support center:
http://www.devexpress.com/Support/Center/CreateIssue.aspx?issuetype=Question

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文