urldownloadtocachefile

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Clive Moore

    #1

    urldownloadtocachefile

    Does anyone know if it is possible to call urldownloadtoca chefile() from
    javascript? I need to download a file from a url to a temp directory
    for printing.

    Thanks
    Clive


    --
    Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
  • Grant Wagner

    #2
    Re: urldownloadtoca chefile

    "Clive Moore" <helloclive@hot mail.com> wrote in message
    news:a9cfc81a21 116872d8bc183fa 11b103b.35643@m ygate.mailgate. org...[color=blue]
    > Does anyone know if it is possible to call urldownloadtoca chefile()
    > from
    > javascript? I need to download a file from a url to a temp directory
    > for printing.[/color]

    I'm going to assume you're talking about IE on Windows only here,
    because there would be no way of using URLDownloadToCa cheFile() from
    other browsers without having them execute a WSH script or something
    (assuming the other browser is even running on Windows).

    There is no way to do this in the default browser security environment.
    Besides, the only control you have over printing in the default browser
    security environment would be to call window.print();

    The way to retrieve a document into the cache is to load it in a browser
    instance:

    var w = window.open('yo urpage.html');

    or set the location of a <frame> or <iframe>. Then call window.print();

    However, it appears you want far more control than this, which means you
    probably want to host your application in a HTA <url:
    http://msdn.microsoft.com/workshop/a...taoverview.asp
    />.

    --
    Grant Wagner <gwagner@agrico reunited.com>
    comp.lang.javas cript FAQ - http://jibbering.com/faq


    Comment

    • Clive Moore

      #3
      Re: urldownloadtoca chefile

      Thanks For the Reply Grant.

      I have an (3rd party) ActiveX control that can handle printing so long
      as i pass
      a File location on the client pc (not a url). This activex object
      is called from javascript. What i am trying to do is figue a way to
      copy the file(s) from the web server to the client machine and in so
      doing
      pass the path to the activeX control for printing.

      I dont want the user to have any interaction (e.g. popup dialogs etc).

      Any Ideas?

      Thanks Again
      Clive





      --
      Posted via Mailgate.ORG Server - http://www.Mailgate.ORG

      Comment

      Working...