CRS - 动态更改报告区域设置

发布于 2024-08-20 09:19:45 字数 645 浏览 6 评论 0原文

我正在使用 CRS (Crystal Reports Server) 2008 v1,我们通过部署在 CRS 附带的内置 Tomcat 服务器上的 JSP 应用程序查看报告。我想知道如何通过这个应用程序(即通过Java)动态更改报告的区域设置。下面的代码似乎适用于 CRS XI,但不适用于 CRS 2008 v1。就我而言,语言环境似乎陷入了瑞典区域设置!

IInfoObject infoObject = (IInfoObject)infoObjects.get(0);     

IReportAppFactory reportAppFactory = (IReportAppFactory) enterpriseSession.getService("RASReportFactory");

ReportClientDocument clientDoc = reportAppFactory.openDocument(infoObject, 0, **java.util.Locale.US**);

我们如何修改此区域设置以与 CRS 2008 一起使用。似乎带有 java.util.Locale.US 的 openDocument 对我们得到的结果没有影响。它没有改变任何东西!

我们更改了安装服务器的计算机的区域设置,还更改了 CMC 的设置,并使用英语重新安装了 CRS。

I am using CRS (Crystal Reports Server) 2008 v1 and we are viewing reports through a JSP application deployed on the built-in Tomcat server that comes with CRS. I would like to know how to dynamically change the locale of reports through this application (i.e. through Java). The below code seems to work fine for CRS XI but it is not working in CRS 2008 v1. The locale seems to get stuck to Swedish regional settings in my case!

IInfoObject infoObject = (IInfoObject)infoObjects.get(0);     

IReportAppFactory reportAppFactory = (IReportAppFactory) enterpriseSession.getService("RASReportFactory");

ReportClientDocument clientDoc = reportAppFactory.openDocument(infoObject, 0, **java.util.Locale.US**);

How can we modify this locale setting to work with CRS 2008. It seems that openDocument with the java.util.Locale.US has no effect on the result we get. It is not changing anything!

We changed the regional settings of the machine where the server is installed and we also changed the settings from the CMC and we also reinstalled the CRS using English.

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

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

发布评论

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

评论(1

望她远 2024-08-27 09:19:45

由于时间紧迫,而且文档没有对这个主题提供任何说明,我必须找到解决方法。

嗯,这一切都与 NLS_LANG 注册表设置有关。这比我在应用程序中放置的任何其他设置都具有优先级。再说一遍,这不是 CRS XI 的问题,而是 CRS 2008 的问题。

Since time was pressing hard and the documentation did not shed any light on this topic, I had to find a workaround to this.

Well, it was all related to the NLS_LANG registry setting. This was having a priority over any other settings I put in the application. Again, this was not an issue with CRS XI but it is a damn issue with CRS 2008.

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