locked
Inconsistent behavior when opening a file displayed in an IFrame RRS feed

  • Question

  • I have built a simple IFrame pointed to the url about:blank.
    In the OnLoad event of the form, I point the url to a shared directory on my network.

    crmForm.all.IFRAME_Explorer.src = "file:////servername/f_data/crmfiles/admin/Customer";

    This works great.  
    It display an explorer window and I can drill into the subdirectories and use Alt + (Left Arrow) to navigate back up.

    Now comes the squirrely part ;
    When I double click on an XL file in one of the directories, it opens Excel and then it gives me the error "Windows cannot access \\servername\f_data\crmfiles\admin\cCustomer\file.xls" with the error code 0x80070002 - "The system cannot find the file specified."

    But when I right click on the file, click "Open With" and choose the excel application, it opens just fine.

    Any help wuold be greatly appreciated.


    I don't know everything, but most of the time I know where to look.
    Friday, June 12, 2009 5:28 PM

Answers

  • Try to change the src to:

    crmForm.all.IFRAME_Explorer.src = "file:////servername//f_data//crmfiles//admin//Customer";


    Jim Wang - MVP Dynamics CRM - http://jianwang.blogspot.com , http://mscrm.cn
    Friday, June 12, 2009 5:43 PM
    Moderator
  • The error code:  0x80070002 looks like a Windows error, did you check the event log?
    Also try it on another machine to see if the issue still exists.


    Jim
    Jim Wang - MVP Dynamics CRM - http://jianwang.blogspot.com , http://mscrm.cn
    Sunday, June 14, 2009 10:07 PM
    Moderator

All replies

  • Try to change the src to:

    crmForm.all.IFRAME_Explorer.src = "file:////servername//f_data//crmfiles//admin//Customer";


    Jim Wang - MVP Dynamics CRM - http://jianwang.blogspot.com , http://mscrm.cn
    Friday, June 12, 2009 5:43 PM
    Moderator
  • Thanks for the reply.
    When I try the new source, the Iframe won't open.  Give me a "cannot find 'file://server//f_data//crmfiles//admin//Customer/file.xls.  Make sure the path or internet address is correct"


    I don't know everything, but most of the time I know where to look.
    Friday, June 12, 2009 6:19 PM
  • The error code:  0x80070002 looks like a Windows error, did you check the event log?
    Also try it on another machine to see if the issue still exists.


    Jim
    Jim Wang - MVP Dynamics CRM - http://jianwang.blogspot.com , http://mscrm.cn
    Sunday, June 14, 2009 10:07 PM
    Moderator