在 ASP.NET 中访问 Powerbuilder

发布于 2024-08-04 17:58:37 字数 222 浏览 5 评论 0原文

我有一个带有报告(数据窗口)的 Powerbuilder 文件(9.0),我想将数据传递到 ASP.NET 并从 ASP.NET 打印出来。这可能吗?如果是这样,有什么指导吗? (我不了解 Powerbuilder。)

我目前正在 Crystal Reports 中复制报告,因为这是我所知道的,但至少可以说,在两个地方维护这些报告是很乏味的。 Powerbuilder 文件在第三方应用程序中使用,因此无法删除。

I have a Powerbuilder file (9.0) with reports (data windows) that i'd like to pass data to and print out of ASP.NET. Is this possible? If so, any guidance? (I don't know Powerbuilder.)

I am currently duplicating the reports in Crystal Reports because it's something i know, but it's tedious to maintain these reports in two place to say the least. The Powerbuilder file is used within a 3rd party application so it's not something that can be eliminated.

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

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

发布评论

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

评论(2

探春 2024-08-11 17:58:37

(警告:我还没有尝试过这一点。)如果您可以在 ASP.NET 下利用 PB 生成的 COM 对象,则可以创建一个检索 DataWindow 的 COM 对象,然后获取以下内容的 HTML 表示形式:报告(描述(“DataWindow.data.html”)),然后在脚本中将其合并到 HTML 页面中。 PB9 附带了一个名为 WebDW 的代码示例,最初旨在作为使用该技术的人们的起点,但我听说很多人直接使用了该组件。有很多设置可以控制生成的 HTML 的外观,因此您应该浏览 HTMLGen 属性的帮助文件。

请注意,这有一些限制,例如 RTF DataWindows 和 (IIRC) 复合材料。

这不是正确使用的代码,但是此代码示例给出了为您提供高层次的概述。

祝你好运,

特里。

(Caveat: I haven't tried this.) If you can leverage a PB-generated COM object under ASP.NET, you can create a COM object that retrieves the DataWindow and then get the HTML representation of the report (Describe ("DataWindow.data.html")), then merge that into an HTML page in scripting. There is a code sample that ships with PB9 called WebDW that was originally intended to be a starting point for people using this technology, but I heard of many people that have used this component straight out of the box. There are a lot of settings that control what the resulting HTML looks like, so you should browse the help files for the HTMLGen properties.

Note that there are some limitations to this, like RTF DataWindows and (IIRC) composites.

This is not the right code to use, but this code sample gives you a high level overview.

Good luck,

Terry.

我纯我任性 2024-08-11 17:58:37

不可以。有一个可在 .NET 中使用的 PB 组件 (DataWindow .NET),但您必须拥有可用的源代码并让应用程序使用该组件。您将其描述为第三方应用程序意味着您可能没有源代码也没有能力插入该组件。

我听说有些人在数据库连接上进行跟踪以嗅探发送到 3d 方应用程序的数据,但是 DW 会进行过滤、格式化、聚合和许多其他操作,因此即使您获得了数据,您也必须弄清楚所有这些内容。

PB 应用程序供应商是否有可能提供可用的更新版本?

No. There is a PB component (DataWindow .NET) that's available for use in .NET, but you'd have to have the source available and have the app use the component. Your description of it being a third party app means you probably don't have the source nor the ability to jam the component in.

I've heard of some folks putting a trace on the DB connection to sniff data sent to 3d-party apps, but the DW does filtering, formatting, aggregation and a lot of other stuff so you'd have to figure all that out even if you got the data.

Any chance the PB app vendor has a newer version available that might make this available?

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