Results 1 to 3 of 3
  1. #1
    srbond is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2010
    Posts
    2

    Display .xls and .doc on form using http path

    Hi,



    I use an OLEUnbound control to preview .xls and .doc files using a UNC path
    on an Access form without issue and it suits my needs perfectly... BUT I also
    need to display .xls and .doc files using a http path.

    The http path seems to fail with the OLEUnbound control properties, so I used
    a webbrowser which displays the file, but enables the file to be edited -
    which I do not want - I need it to behave the sames as the files previewed in
    OLEUnbound, which is locked and double-click to open outside of Access.

    Is there a way to display http file paths using OLEUnbound or lock the
    webbrowser control?

    Thanks much!

    Scott

  2. #2
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    you probably want to use the hyperlink field type in the underlying table i.e. add a new field - - to hold xls and other doc links.

    the reason is that xls and pdf and some others are in fact complex programs unto themselves and really should not be considered a simple 'image'. when you use the hyperlink method - upon click it will actually launch the application itself.

  3. #3
    pkstormy's Avatar
    pkstormy is offline Access/SQL Server Expert
    Windows XP Access 2003
    Join Date
    Mar 2010
    Location
    Madison
    Posts
    682
    You can also use code as such:

    Dim strURL as variant
    strURL = "UNCNameHereToTheExcelFile"
    Application.FollowHyperlink strURL

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 06-08-2010, 12:08 PM
  2. parametrize file path
    By ysrini in forum Access
    Replies: 3
    Last Post: 03-01-2010, 09:37 AM
  3. How do I set a link from a saved path
    By cowboy in forum Reports
    Replies: 5
    Last Post: 02-16-2010, 12:43 PM
  4. Programming the BackEnd path
    By James3mc in forum Programming
    Replies: 6
    Last Post: 11-21-2009, 06:39 PM
  5. Http
    By student123xyz in forum Access
    Replies: 0
    Last Post: 09-03-2009, 08:59 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums