Excel 2007中的PDF的FileType号码是通过API将文件保存为PDF格式所需的? [英] What is the FileType number for PDF in Excel 2007 that is needed to save a file as PDF through the API?

查看:186
本文介绍了Excel 2007中的PDF的FileType号码是通过API将文件保存为PDF格式所需的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要调用一个函数来保存Excel工作簿。我为Excel 2007安装了PDF保存插件,但现在我需要知道保存Excel文件时文件格式的数字代码。

I need to call a function in order to save an Excel workbook. I installed the PDF save addon for Excel 2007 but now I need to know what the number code is for the file format for when I save the excel file.

excel文件格式号可以在这里找到。

An example of the excel file format numbers can be found here.

http://www.dailydoseofexcel.com/archives/2006/10/29/saveas-in-excel-2007/

FileExtStr = ".xlsb": FileFormatNum = 50
FileExtStr = ".xlsx": FileFormatNum = 51
FileExtStr = ".xlsm": FileFormatNum = 52
FileExtStr = ".xls": FileFormatNum = 56
FileExtStr = ".csv": FileFormatNum = 6
FileExtStr = ".txt": FileFormatNum = -4158
FileExtStr = ".prn": FileFormatNum = 36

我需要一个.pdf

推荐答案

我在Word中这样做,格式数字是17。

I did this in Word, and the format number is 17.

这篇关于Excel 2007中的PDF的FileType号码是通过API将文件保存为PDF格式所需的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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