Shapes.AddPicture支持哪种图片格式? [英] Which Picture Format are supported by Shapes.AddPicture?

查看:241
本文介绍了Shapes.AddPicture支持哪种图片格式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Visual C ++来自动化Word。当使用Shapes.AddPicture函数将图片插入文档时,有时我会得到"图形过滤器无法转换此文件。"。在分析了问题之后,我发现它发生了
,因为我尝试添加格式不受支持的图片。因此,我只是想知道是否有正式文件表明Shapes.AddPicture函数支持哪些格式?我相信流行的,如.BMP,JPEG,.GIF,.PNG应该受支持。
还有什么?

I am using Visual C++ to automate Word. When using Shapes.AddPicture function to insert pictures into the document, sometimes I will get ""The graphics filter was unable to convert this file.". After analyzing the problem, I find it happens because I try to add a picture with unsupported format. Therefore, I just wonder whether there is an official document indicate which formats are supported by Shapes.AddPicture function? I belive the popular ones, such as .BMP, JPEG, .GIF, .PNG should be supported. And what’s more?

谢谢

推荐答案

我找不到微软处理当前Windows版本的Office(不仅仅是Word)(或Web /在线/设备版本)的页面,但有一个Office版本的Mac版页面:



https://support.office.com/en-us/article/graphic-file-types-you-can-insert-and-save-dad53574-3384-4ced-b472-348d37c326a7

EPS支持已关闭:  https://support.office.com/en-us/article/Support-for-EPS-images-has-been-turned-off- in-Office-A069D664-4BCF-415E-A1B5-CBB0C334A840

EPS support has been turned off: https://support.office.com/en-us/article/Support-for-EPS-images-has-been-turned-off-in-Office-A069D664-4BCF-415E-A1B5-CBB0C334A840

否则,我建议您查看Word中的"插入图片"对话框并查看在文件类型下拉列表中的文件扩展名列表中。例如在Word 365 for Windows中我看到:
$



$


(最后一个是.WordPerfect-graphics(* .wpg))



那么.pdf怎么样?
b
b $ b但是,如果必须彻底我可能想要做一些  ;额外的检查,至少对于我认为可能会使用的图形类型,例如 

Otherwise, I would suggest that you look at the Insert Picture dialog in Word and look at the list of file extensions in the file type dropdown. e.g. in Word 365 for Windows I see this:



(The last one  is .WordPerfect-graphics (*.wpg))

And what about .pdf?

However, if had to be thorough I would probably want to do some  extra checks, at least for graphics types I thought I might use, e.g. 

  a。单独检查每一个

 a. check each one of them individually

  b。我是否能找到任何信息。在不支持的功能或子类型上。例如,是否支持JPEG 2000?多页.tiffs,动作.gif等会发生什么。

 b. whether if I could find any info. on unsupported features or subtypes. e.g., is JPEG 2000 supported? What happens to multi-page .tiffs, motion .gifs and so on.

  c。看看它们是否全部插入浮动图形或内联(如果需要的话)



  d。看看Windows / Mac /在线/设备版Word中会发生什么。

 c. see if they all insert as floating graphics or inline (if you need that)

 d. see what happens in Windows/Mac/Online/Device versions of Word.


这篇关于Shapes.AddPicture支持哪种图片格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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