【问题标题】:Winform SaveFileDialog WordWinform SaveFileDialog Word
【发布时间】:2011-07-05 08:50:22
【问题描述】:

我在 SaveFileDialog 上需要你的帮助

从 Temp 文件夹中的代码中我插入数据的 word 文件。 然后我在 Word 中打开该文件,以便对其进行编辑。

当 Word 文档关闭时,我希望有一个弹出式显示,询问将文件保存在哪里。这就是我使用 SaveFileDialog 弹出窗口的原因。

现在 SaveFileDialog 只是询问我是否要将更改保存到 Temp 文件夹中的文件,而不是询问我要将其保存为新文件的位置。

当文档关闭时我使用了

application.DocumentBeforeClose +=newApplicationEvents4_DocumentBeforeCloseEventHandler(application_DocumentBeforeClose);

在 application_DocumentBeforeClose() 中,我打开一个 SaveFileDialog 弹出窗口。

我的目标是将文件复制到 SaveFileDialog.FileName 路径,然后删除 Temp 文件夹中的文件。

【问题讨论】:

    标签: winforms ms-word savefiledialog


    【解决方案1】:

    强制“另存为”对话框的一种简单方法是打开模板而不是文档...

    【讨论】:

    • 感谢您的回答。我试试看。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-11-16
    • 2011-02-13
    相关资源
    最近更新 更多