Let’s take one scenario where your client does not have office installed and you also want to deal with document library.
Now we know that there is a settings in document library settings that if client do not have office installed at machine, then MOSS will automatically open document in the browser window. it automatically check for the availability of office at client side and if not found then opens it in same browser.
The settings for this is as follows :
(1) Go to your document library.
(2) Click on Settings-> document library settings
(3) Click on advanced settings
(4) Check for “Browser-enabled Documents” section and select Display as a Web page.
(5) Press OK.
Now you have set this option and if your client does not have office installed then MOSS will automatically open document in browser.
but but but…..notice that it opens in same browser…So if you want that document opens in new windows, not in the same browser then…..???
so Here is a trick to go for it :
But remember that this change will apply to all document libraries of all web applications. Because we are going to change the Global onet.xml. So be aware..
Here we go..
(1) Open C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\GLOBAL\XML
(3)Search for this line <Else><HTML><![CDATA[<A onfocus=”OnLink(this)” HREF=”]]></HTML>
(4)Change it to <Else><HTML><![CDATA[<A onfocus=”OnLink(this)” target=”_new” HREF=”]]></HTML>
(5)Find one more line : <Else><HTML><![CDATA[<A TABINDEX=-1 HREF=”]]></HTML>
(6)Change it to <Else><HTML><![CDATA[<A TABINDEX=-1 target=”_new” HREF=”]]></HTML>
(7)Rest the IIS and just check…..
now all documents will open in new window..