this is what i usually do to get doc in a new tab …
step 1: create –> viewer.php and paste the following code
<html>
<title>
Doc Downloader
</title>
<body>
<center><b><a href="<?php echo $_GET["url"]?>">Download This Document </a></center><b>
<iframe src="http://docs.google.com/viewer?url=<?php echo $_GET["url"]?>&hl=&embedded=true" class="gde-frame" style="width:100%; height:110%; border: none;" scrolling="no"></iframe>
</body>
</html>
Step 2: place the following code where ever you want
<a href="http://www.YOURWEBSITE.com/PATHtoFILE/viewer.php?url=http://www.YOURWEBSITE/filename.pdf" target="_blank">Click here to view </a>
Hope this helps you
muhammad,
The full screen viewer can open in a new tab without any special code. Is this not what you want?
Kevin