I want to add a file type extension to the Open Dialog of Excel (2003, 2007 if possible, 2007 only, if necessary).
我想在Excel的Open Dialog中添加文件类型扩展名(如果可能,则为2003,2007,如果需要,仅为2007)。
When the user opens my type of file (i.e. myfile.myx), I want my application to read the file and paste the file into Excel in my own defined manner (by using Interop)
当用户打开我的文件类型(即myfile.myx)时,我希望我的应用程序读取文件并以我自己定义的方式将文件粘贴到Excel中(通过使用Interop)
1 个解决方案
#1
1
I think you are out of luck here. There is no documented way of extending Excel with custom import filter (as far as I know). Such a converter interface only exists for Word (http://support.microsoft.com/kb/111716).
我觉得你在这里运气不好。没有记录的使用自定义导入过滤器扩展Excel的方法(据我所知)。这种转换器接口仅适用于Word(http://support.microsoft.com/kb/111716)。
If you want to modify the file open dialog you could try to subclass the dialog. This works for the Windows Common Dialogs (see http://www.codeproject.com/KB/dialog/customize_dialog.aspx for an example), but I suppose the Office dialogs use different messages and may not allow what you want to do.
如果要修改文件打开对话框,可以尝试子类化对话框。这适用于Windows通用对话框(例如,请参阅http://www.codeproject.com/KB/dialog/customize_dialog.aspx),但我认为Office对话框使用不同的消息,可能不允许您想要执行的操作。
#1
1
I think you are out of luck here. There is no documented way of extending Excel with custom import filter (as far as I know). Such a converter interface only exists for Word (http://support.microsoft.com/kb/111716).
我觉得你在这里运气不好。没有记录的使用自定义导入过滤器扩展Excel的方法(据我所知)。这种转换器接口仅适用于Word(http://support.microsoft.com/kb/111716)。
If you want to modify the file open dialog you could try to subclass the dialog. This works for the Windows Common Dialogs (see http://www.codeproject.com/KB/dialog/customize_dialog.aspx for an example), but I suppose the Office dialogs use different messages and may not allow what you want to do.
如果要修改文件打开对话框,可以尝试子类化对话框。这适用于Windows通用对话框(例如,请参阅http://www.codeproject.com/KB/dialog/customize_dialog.aspx),但我认为Office对话框使用不同的消息,可能不允许您想要执行的操作。