PDF查看器控件的LoadFile方法不可见 [英] LoadFile method of PDF viewer control not visible

查看:366
本文介绍了PDF查看器控件的LoadFile方法不可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想自动填写PDF表单.

I wanted to automate filling of PDF forms.

所以我在VS2013中创建了一个WinForms项目,添加了Adobe PDF Reader控件,将控件拖到了表单上.

So I created a WinForms project in VS2013, Added Adobe PDF Reader control, dragged control on to the form.

没有错误.控件显示在表单上.

No errors. Control is displayed on the form.

但是,当我尝试输入表单的代码时:

However in the code of the form when I try to put in:

axAcroPDF1.LoadFile

根本看不到LoadFile方法.

The LoadFile method is not visible at all.

.NET项目的目标设置为4.5.1.我什至尝试了4.5及更低版本.

The project .NET target is set to 4.5.1. I even tried 4.5 and lower.

推荐答案

The AxHost wraps only the Active X Control. The LoadFile Method is a method from the COM Class from your Adobe Control.

您需要通过

其中this是AxHost控件.

where this is the AxHost control.

这篇关于PDF查看器控件的LoadFile方法不可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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