Seref,
thx for reply.  actually I am interested in automating the form with
dotnet.  Initially I just use the interop to save the html.  Ultimately, I
would like to click a button and let the dotnet code to automatically
navigate to various prescribed type of links and extract the appropriate
table into database for record keeping and analysis.

Consequently , if you don't mind sharing your code or technique, I would
much appreciate.  If you can shed light on parts you would rather do
differently because it would be easier to maintain or simply better way, I
would like to know.

I have managed to use interop to save the html however I do seem to have
misunderstood something and lead to my code prompt me before saving. Or it
that part of Xp SP2 enhanced security?  I don't think it is SP2 because
When I used a C like application calling the OLE web browser execute
command , I was able to "saveas" without being prompted.  I discontinued
that application because it is difficult to parse the dom structure without
evaluation and a trusted  third party software.  the c application lack
regex also that made it even more difficult to adapt to less rig format
presented by the websites visited.


The code for the ole execute:




    ' -------------------------------
    ' save a document into file specified by filespec string
    Public Sub saveAs(ByVal strFileSpec As String)
        Dim doOpt As SHDocVw.OLECMDEXECOPT
        doOpt = SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER

        MsgBox("SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER=" &
vbCrLf & SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER,
MsgBoxStyle.Information, "SaveAs @debug")
        Dim o As New Object()
        Try
            webBrowser.ExecWB(SHDocVw.OLECMDID.OLECMDID_SAVEAS, doOpt, CType
(strFileSpec, Object), o)
        Catch
            Throw (New Exception(Err.GetException().Message))
        End Try
    End Sub     ' saveAs

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to