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