webbrowser execwb silent saveas ?

Discussion in 'Windows XP Internet Explorer' started by TOM ftusa, Oct 30, 2003.

  1. TOM    ftusa

    TOM ftusa Guest

    Hello Sir,



    I am trying to use the saveas function of WebBrowser
    control through OLE in
    my Powerbuilder application. It work fine.

    integer OLECMDEXECOPT_DODEFAULT = 0

    integer OLECMDEXECOPT_PROMPTUSER = 1

    integer OLECMDEXECOPT_DONTPROMPTUSER = 2

    integer OLECMDEXECOPT_SHOWHELP = 3



    integer OLECMDID_SAVEAS = 4





    ole_web.object.Silent = true



    ole_web.object.ExecWB
    (OLECMDID_SAVEAS,OLECMDEXECOPT_DONTPROMPTUSER,'C:\Docum
    ents and Settings\Desktop\inputtemp.htm','C:\Documents and
    Settings\\Desktop\outputtemp.html')



    here what I want is, that it will do all things Silently
    it will not prompt
    to use and I tried

    and that I want to do with web browser,

    and html file I am saving in html because what html file I
    am getting from
    powerbuilder is not perfect so I am converting it into
    perfect html so that
    I can be open in Excel with all colors.



    URLDownloadToFile function work fine but it is not
    converting html file in
    proper format it will convert it in same format. Not use
    full for me.



    So please tell me how I can use savaas function of
    WebBrowser silently
    giving input and output file name.


    URLDownloadToFile(0, "C:\Documents and Settings
    \Desktop\temp123.htm","C:\Documents and
    Settings\Desktop\ms.html", 0, 0)



    It works fine





    Please find two htm file which I am getting from
    Powerbuilder and second I
    want to convert in to required format





    Please Do replay at
     
    TOM ftusa, Oct 30, 2003
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.