|
![](https://clubstatic.excelhome.net/image/common/ico_lz.png)
楼主 |
发表于 2010-5-2 11:29
|
显示全部楼层
上传点函数参考资料给大师们参考一下!
![](https://clubstatic.excelhome.net/image/smiley/default/tongue.gif)
this allows you to print PDF forms using automation for the free Acrobat Reader. There are other actions that the Reader supports in automation as well, but i can't recall if they are limited to save and print.
I think you can find them here: http://partners.adobe.com/public ... ac/IACReference.pdf
Public Function PrintPDFForms(prtFileName As String, prtDrive As String)
Dim AcrApp As Object
Dim acrDoc As Object
Dim acrPDDoc As Object
Dim ret As Long
Dim lngPage As Long
Set AcrApp = CreateObject("AcroExch.App")
' uncomment if you want to see the Acrobat window
'ret = AcrApp.Show()
Set acrDoc = CreateObject("AcroExch.AVDoc")
acrDoc.Open "YourFileName", "PDF Print"
Set acrPDDoc = acrDoc.GetPDDoc
lngPages = acrPDDoc.GetNumPages
ret = acrDoc.PrintPages(0, lngPages - 1, 1, True, True)
Set acrDoc = Nothing
Set acrPDDoc = Nothing
AcrApp.CloseAllDocs
AcrApp.Exit
Set AcrApp = Nothing
End Function
这段代码好像有用,但不知道怎么用![](https://clubstatic.excelhome.net/image/smiley/default/sweat.gif)
[ 本帖最后由 zzf_ 于 2010-5-2 11:31 编辑 ] |
|