将自定义协议导入 MS Excel/Access
我有一个独立的 Java 应用程序,能够重放时间序列的数据记录。与服务器的通信是使用基于 TCP/IP 的定制二进制线路协议来执行的。
我们需要能够轻松地将数据记录从此应用程序导入 MS Excel / Access,我对推荐的执行此操作的方法感兴趣。
我们正在探索的一个想法是编写一个 Web“包装”服务(也是用 Java 编写),该服务将与底层服务器通信,然后将二进制数据转换为更友好的文本格式以供 Excel/Access 使用。然而,这里的缺点是我们丢失了与给定记录中每个字段关联的任何类型信息。
我简要地研究过编写自定义 ODBC / OleDB 驱动程序,但这似乎很复杂,并且对于我们想要实现的目标来说可能有点过头了。
有人可以推荐其他方法吗?
I have a standalone Java application capable of replaying a time series of data records. Communication with the server is performed using a bespoke binary wire protocol over TCP/IP.
We have a requirement to be able to easily import data records from this application into MS Excel / Access and I am interested in the recommended way to do this.
One idea we're exploring is to write a web "wrapper" service (also in Java) that will communicate with the underlying server and then translate the binary data into a more friendly text format for consumption by Excel / Access. However, the drawback here is that we lose any type information associated with each field in a given record.
I've briefly looked into writing custom ODBC / OleDB drivers but this seems complex and is probably overkill for what we're trying to achieve.
Can anyone recommend any other approaches?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
xlloop 怎么样? http://xlloop.sourceforge.net/
使用 Excel 插件连接到函数服务器,您可以在其中创建自己的函数。
How about xlloop? http://xlloop.sourceforge.net/
Uses an Excel plugin to connect to a function server, where you can create your own functions.
您可以通过 JDBC/ODBC Bridge 驱动程序连接 Access 数据库。
You may connect with an Access Database via the JDBC/ODBC Bridge driver.
根据您之前的评论,我假设您需要提供动态/变化的数据。如果是这种情况,则可能采用 IRtdServer 接口 和 此文章提到了 Excel。它是一个 COM 接口,因此您可能需要类似 Com4j 的东西
From your previous comments I assume that you need to serve dynamic/changing data. If that is the case then take maybe the IRtdServer interface and this article referring to Excel. Its a COM Interface so you probably will need something like Com4j