也许他不想使用网络浏览器打开PDF文件,右键单击工具箱中的项目,当设计器处于活动状态时,选择选择项目,选择COM组件并选择Adobe。然后将代码添加到新表单。打印机将处于活动状态,您可以在属性选项卡中禁用“工具栏”
导入 AxAcroPDFLib 导入 AcroPDFLib 公共类 TripSheet
'
'AxAcroPDF1
'
Public Sub New()
' This call is required by the designer.
InitializeComponent()
AxAcroPDF1.Location.Equals(AxAcroPDF1.LoadFile("C:\path\file.pdf"))
AxAcroPDF1.LoadFile("C:\path\file.pdf")
' Add any initialization after the InitializeComponent() call.
End Sub