如何在VB.NET中创建Excel文件时删除额外的工作簿 [英] How to Remove the Extra WorkBook when Creating Excel File in VB.NET

查看:301
本文介绍了如何在VB.NET中创建Excel文件时删除额外的工作簿的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI
我正在创建excel文件

使用Interop

并将它们保存在特定文件夹中。



但我的问题是,当我通过双击打开创建的

Excel文件时,

a新的空工作簿Book1也正在打开。



什么是我无法理解的问题。

请协助解决这个问题。

HI I am creating excel files
using Interop
and saving them in a Particular Folder.

But my problem is that When I am Opening the created
Excel File by double clicking ,
a new empty Workbook Book1 is also getting opened.

what is the Problem am not able to understand.
Please assist in solving this Issue.

推荐答案

如果没有看到创建工作簿对象的代码,就不可能告诉你发生了什么。另外,您为哪个版本的Excel编写文件?
Without seeing your code that creates the workbook object, it''s impossible to tell you what''s going on. Also, which version of Excel are you writing a file for?


这篇关于如何在VB.NET中创建Excel文件时删除额外的工作簿的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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