DWF Viewer (Read Only)
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

who can tell me how to do these steps in vfp,thks

7 REPLIES 7
Reply
Message 1 of 8
vfp00
291 Views, 7 Replies

who can tell me how to do these steps in vfp,thks

the follow steps are guides for vb programmer,but i don't know vb,so i don't know how to "add reference " into vfp form
*****************************************
Adding the Autodesk DWF Viewer component references allows you to access the API elements in your code.

To add the References to Your Application

From the Project menu, Choose References.

Click in the box next to the following References to add them to your application:

AdCommon 1.0 Type Library

EPlot Common 1.0 Type Library

EPlot Core 1.0 Type Library

EPlot Model 1.0 Type Library

EPlot Renderer 1.0 Type Library

EPlot Viewer 1.0 Type Library

Click OK.
**************************
i draw a ole (autodesk dwf viewere control----adview.dll) into my form,but
i don't know how to quote the eplotview.dll into the form,so
i can't put the code as follow into ole.onendloaditem method
##########code:###########
if itemname = 'SHEET'
myviewer = createobject('Iadpageviewer2') && when running to the line ,systems shows not found object 'Iadpageviewer2'
myviewer = ole.documenthandler && shows error also
myviewer.toolbarvisible = .f.
myviewer.userinterfaceenabled = .f.
endi
###################

But ,if i draw a ole (autodesk EPlot Viewer Control---eplotviewer.dll) into the form in design mode,i can find these methods direct ,for eg. "userinterfaceenabled","toolbarvisible" ..and so on.
it seems very good , but when the form runs ,system will show error(capture in pic02) .
Message was edited by: vfp00
7 REPLIES 7
Message 2 of 8
vfp00
in reply to: vfp00

pic1
Message 3 of 8
vfp00
in reply to: vfp00

pic2
Message 4 of 8
vfp00
in reply to: vfp00

pic3
Message 5 of 8
vfp00
in reply to: vfp00

pic4
Message 6 of 8
vfp00
in reply to: vfp00

pic5
Message 7 of 8
vfp00
in reply to: vfp00

pic6
Message 8 of 8
vfp00
in reply to: vfp00

pic7

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report