OpenFileDialog多选问题
我有标准的 OpenFileDialog
var openFileDialog = new OpenFileDialog
{
DefaultExt = "mpo",
Filter = "Image file |*.mpo",
Multiselect = true,
RestoreDirectory = true,
};
,当我尝试使用它在“fujifilmfinepix real 3d w1”相机上打开多张照片时,它会触发消息框“无法从此位置打开多个项目。尝试选择改为单个项目。”仅打开 1 个文件即可。
当我尝试从硬盘驱动器或其他可移动设备选择照片时,一切正常。
有人遇到同样的问题吗?
I have standart OpenFileDialog
var openFileDialog = new OpenFileDialog
{
DefaultExt = "mpo",
Filter = "Image file |*.mpo",
Multiselect = true,
RestoreDirectory = true,
};
and when i try to use it to open several photos on "fujifilm finepix real 3d w1" photo camera it fires message box "Cannot open multiple items from this location. Try selecting a single item instead." Opening only 1 file is ok.
When i try to select photos from hard drive or other removable device everything is ok.
Anyone get the same problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于您已经发现从其他位置执行相同操作不会产生任何问题,因此您的相机有问题。
作为应用程序的解决方法,您不应直接在设备上打开所有文件。相反,将所有选定的项目复制到保存位置(临时文件夹下自行创建的文件夹)并从那里打开它们。
Due to the fact that you already found out that doing the same from another location doesn't make any problems, there is something with your camera.
As a workaround for your application you shouldn't open all the files directly on the device. Instead copy all selected items into a save location (a self-created folder below the temp folder) and open them from there.