![]() It is important to note that I could have used the IAdPageViewer object if I knew that my program wouldn't be used to open a multipage DWF file. After that, I preset some of the EV properties I want, which are commented in the code block above. Then, in the form initialize, I set it to the EV Control. Here I have declared a private variable to reference the EV Control as type IAdPageViewer2. Set dwfViewer = CExpressViewerControl1.DocumentHandler To do this, I will use the following code on the UserForm Initialize event: While this can be done with the EV control, there is more functionality available if I use a specific object variable that references it. Most of the time, programmers access a control on the form by calling its name: Me.TextBox1 or Me.CommandButton1, for example. In this case, the project must be saved, closed and reopened. In NET, the control appears fine but all the Property box information is blank for all the form's controls. There are two ways to fix this: either save, close and reload the project or set the control's source path property to a valid DWF file. After placing it on a form, the control may be just a black or white box if you are in VBA or VB6. This brings us to the first noticeable quirk with the EV control. (If you are using VB6 or later, select the ExpressViewerDll 1.0 Type Library.) Click OK.An icon should now be added to the toolbox that can be dragged and dropped into the form.įigure 3. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |