VBA将表单保存到受密码保护的PDF [英] VBA to save a sheet to a password protected PDF
本文介绍了VBA将表单保存到受密码保护的PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
以下将活动表格保存为PDF:
The following saves the activesheet as a PDF:
ActiveSheet.ExportAsFixedFormat _
Type:=xlTypePDF, _
Filename:="C:\blahblah2.pdf", _
Quality:=xlQualityStandard, _
IgnorePrintAreas:=False, _
OpenAfterPublish:=False
我需要能够创建受密码保护的PDF - 这是否可能使用VBA而不购买任何其他软件? p>
I need to be able to create a password protected PDF - is this possible using VBA without buying any additional software?
推荐答案
我使用 PDFsharp
使用 VS
- 我的项目在 C#
...这个免费图书馆工作得很好
I used PDFsharp
using VS
- my project is in C#
... this free library works very well
这篇关于VBA将表单保存到受密码保护的PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文