'excel_vba:
WS.ExportAsFixedFormat(Type:=xlTypePDF, Filename:=ProjectPath & "pdf\test.pdf" )
在狐表要这样用,感谢lin_hailun
Dim App As New MSExcel.Application
Dim Wb As MSExcel.WorkBook = App.WorkBooks.Open("D:\test.xls")
'创建Excel文件对应的PDF文件
wb.ExportAsFixedFormat(MSExcel.XlFixedFormatType.xlTypePDF, ProjectPath & "test.pdf", MsExcel.XlFixedFormatQuality.xlQualityStandard, True, True, System.Reflection.Missing.Value, System.Reflection.Missing.Value, False, System.Reflection.Missing.Value)
App.quit
excel2007需装附件
[此贴子已经被作者于2013-2-19 10:45:36编辑过]