Displaying a file or a folder in the Page Viewer Web Part

Today I tried to do something very easy. Or at least I thought it would be. I tried to display a file in with the Page Viewer Web Part.

The first steps are actually really easy:

  • Go to the correct site
  • Select "Edit Page" under the "Site Actions"
  • Click "Add a Web Part" in the section you want the web part to be displayed in
  • Click "Modify Shared Web Part"
  • If you want to display a web page it's very straight forward. Just select "Web Page" and type in a url under link and the url will be displayed.

Unfortunately I didn't want to display a web page, I wanted to display a file. And I was struggling with the way I was supposed to format the path to a file or folder in order to get it to display. Searching on Live or Google didn't get me anything, but eventually I found it:

  • If you want to display a folder or a file you should enter a network path for a folder it would look like file://\\pc158\temp, for a file it would be file://\\pc158\temp\test.txt
  • Displaying a file or a folder will only work in Internet Explorer
  • The file opens either in a separate browser window or inside the Web Part if the application that opens the file supports inline activation for that file in the browser window. 

Some information about the Page Viewer Web Part can be found here:
http://office.microsoft.com/en-us/sharepointserver/HA100240451033.aspx

I haven't seen the browse button that should appear if you select "File" on either of the three environments I tried this on. I'm wondering whether it actually exists, or whether it was supposed to be there and then left out at the last moment..

Print | posted @ Thursday, November 29, 2007 2:00 PM

Comments on this entry:

Gravatar # re: Displaying a file or a folder in the Page Viewer Web Part
by Steve Chrysostom at 11/29/2007 3:42 PM

FINALLY! I've been looking for this information everywhere (need to link from Sharepoint sites to files still on file shares) and this is it. Why is this information so hard to find? Isn't this a pretty broad need? Dank u zeer Mirjam!
  
Gravatar # re: Displaying a file or a folder in the Page Viewer Web Part
by apearce at 11/29/2007 10:18 PM

What I did was enable IIS on the file server and then created a website with a virtual folder.

If you enable Directory browsing in the properties of the virtual folder and then browse to the site you see the file store as a list of documents. If you then take the URL of the folder and enter it as a web folder under My Network you can explorer to it.

I might do a blog post if you want!
  
Gravatar # re: Displaying a file or a folder in the Page Viewer Web Part
by apearce at 11/29/2007 10:24 PM

I've done it through

Enable IIS on your file store and create a new virtual directory with the alias as the top folder you want to show.

Right click on the virtual directory and then enable directory browsing.

When you browse to it now in IE you will see a list of teh documents and you can open and edit them from there.

If you take the URL and add it as a web folder in My Network Place you will be able to explorer to it.

If i get time - i do a post on my blog
  
Gravatar # Links (11/29/2007) « Steve Pietrek’s SharePoint Stuff
by stevepietrekweblog.wordpress.com at 11/30/2007 12:26 AM

  
Gravatar # SharePoint 2007 Link love: 12-02-2007 part two at Virtual Generations
by www.virtual-generations.com at 12/1/2007 11:36 PM

  
Gravatar # re: Displaying a file or a folder in the Page Viewer Web Part
by maged at 5/12/2010 8:36 AM

dear`s
when displaying folder in Page Viewer Web Part the task panal appears on the left i tried to hide it put i can`t
kindly help me to solve this issue
regards
  

Your comment:

Title:
Name:
Email:
Website:
 
Italic Underline Blockquote Hyperlink
 
 
Please add 8 and 2 and type the answer here: