Excel Interop - 如何提示用户保存文件? [英] Excel Interop - How to prompt the user to save the file?
本文介绍了Excel Interop - 如何提示用户保存文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好我有一个创建excel工作簿的发票应用程序(c#)。目前我正在使用:
Hi guys i have an invoicing application (c#) that creates an excel workbook. At the moment i am using:
展开 | 选择 | Wrap | 行号
推荐答案
使用SaveFileDialog"
Use a "SaveFileDialog"
@tlhintoq
如何将其合并到我的代码中?
@tlhintoq
How do incorporate that into my code above?
< br>
@ mcam9
你只提供了一行代码,所以我可以'确切地说明要插入的位置...
- 制作新的SaveFileDialog
- 显示
- 获取从中返回的路径
- 使用该路径作为新的保存路径,代替硬编码的D:\; + FileName
这篇关于Excel Interop - 如何提示用户保存文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文