如何将excel表格嵌入不打扰用户的表格中? [英] How to embed an excel sheet into a form not disturbing user?

查看:97
本文介绍了如何将excel表格嵌入不打扰用户的表格中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们!


我有自己的一个表格的exe应用程序。我想在表格中嵌入一张excel表格。我正在使用ole32.dll中的程序OleCreateFromFile来创建可嵌入的Excel工作表。


这有效,但是有问题。如果在调用OleCreateFromFile时有一个正在运行的excel.application进程,则新的可嵌入excel表将在此excel.application中创建为工作簿。这是可以避免的吗?是否可以在自己的excel.application中单独创建
嵌入式Excel工作表?


谢谢你

解决方案

您好Egop,


基于
OleCreateFromFile函数
,恐怕没有参数可以单独创建可嵌入的Excel工作表。

b

最诚挚的问候,


爱德华


Hi friends!

I have my own exe-application of one form. I wonna embed an excel sheet into the form. I am using procedure OleCreateFromFile from ole32.dll to create embedable excel sheet.

That works but there is a problem. If at the moment of call OleCreateFromFile there is a running excel.application process then new embedable excel sheet will create as a workbook within this excel.application. Is this avoidable? Is it possible to create embedable excel sheet separately, within its own excel.application?

Thanks

解决方案

Hi Egop,

Based on OleCreateFromFile function, I am afraid there is no parameter to create embeddable excel sheet separately.

Best Regards,

Edward


这篇关于如何将excel表格嵌入不打扰用户的表格中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆