<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Jerry ,<br>
      <br>
      can you load a new empty document ?<br>
      <br>
      oDocument =
StarDesktop.LoadComponentFromUrl("private:factory/swriter","_default",0,loadArgs())<br>
      <br>
      what's  the operating system ?<br>
    </div>
    <blockquote
cite="mid:CABr8-B4DaNE0jJ9Evkjp73ySLKV0haV4AK1o7kMUWVFfB_0cAw@mail.gmail.com"
      type="cite">
      <div dir="ltr">Is the oDoc = StarDesktop.loadComponentFromURL
        still valid in 5.0 ? 
        <div><br>
        </div>
        <div>I am calling it in my macro and getting an error about the
           URL parameter</div>
        <div>which is <a class="moz-txt-link-rfc2396E" href="file:///tmp/file.ptt">"file:///tmp/file.ptt"</a></div>
        <div>so seems as though the file URL is OK and the file is
          present.</div>
        <div><br>
        </div>
        <div>The error is BASIC runtime... "type detection failed."</div>
        <div><br>
        </div>
        <div>Is there a new/correct/better way to load and impress file
           ?</div>
        <div><br>
        </div>
        <div>Jerry</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
LibreOffice mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LibreOffice@lists.freedesktop.org">LibreOffice@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/libreoffice">http://lists.freedesktop.org/mailman/listinfo/libreoffice</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>