I could not able to open a .doc,.xls,.ppt inside the iframe tag in IE7.
Hi all,
I could not able to open a .doc,.xls,.ppt inside the iframe tag in IE7.
what should i do?
Hi,
Question is,: when ever i call the .doc,.ppt,.xls files are not coming inside the iframe tag in IE7
I am keeping the all files in separate storage area lik d:/StorageLoc/Docs/Sample.doc
when ever i am calling the sample.doc through web,
http://localhost:8080/VContext/OpenFile
i am accessing the word,ppt,xsl files inside iframe
like
var fils= "d:/StorageLoc/Docs/Sample.doc";
<iframe src="/VContext/OpenFile?r2=fils"></iframe>
OpenFile.java [servlet file]
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException
try
String s2 = request.getParameter("r2");
String s3 = null;
String s4 = "txt";
if(s3 != null && s3.equals("download"))
response.setHeader("Content-disposition", "attachment;filename=output." + s4);
if(s4 != null && s4.equals("pps"))
response.setContentType("application/vnd.ms-powerpoint");
if(s4 != null && s4.equals("doc"))
response.setContentType("application/vnd.word");
if(s4 != null && s4.equals("tif"))
response.setContentType("image/tif");
}else
response.setHeader("Content-disposition", "inline;");
if(s4 != null && s4.equals("pdf"))
response.setContentType("application/pdf");
else
response.setContentType("application/octet-stream");
try
javax.servlet.ServletOutputStream servletoutputstream = response.getOutputStream();
File fileFound = new File(s1 + s2);
if(!fileFound.exists())
s2 = "Photos/notfound.gif";
FileInputStream fileinputstream = new FileInputStream(s1 + s2);
ByteArrayOutputStream bytearrayoutputstream = new ByteArrayOutputStream();
byte abyte0[] = new byte[0x500000];
do
int i = fileinputstream.read(abyte0);
if(i != -1)
bytearrayoutputstream.write(abyte0, 0, i);
} else
byte abyte1[] = bytearrayoutputstream.toByteArray();
response.setContentLength(abyte1.length);
servletoutputstream.write(abyte1, 0, abyte1.length);
servletoutputstream.flush();
servletoutputstream.close();
return;
} while(true);
catch(Exception e)
System.out.println("IGST-INFO:" + e.getMessage());
e.printStackTrace();
}
Similar Messages
-
not able to open any doc with adobe reader XI. fatal error, acrobat failed to its core DLL load
See http://helpx.adobe.com/acrobat/kb/reader-core-dll-error.html
-
i am not able to open webpage on safari it says 'the error is cannot decode raw data(NSURLError:-1015) so please advice
Post a link to the page, if possible. Otherwise try opening the page in another browser, such as Firefox.
-
I am not able to open any pictures or videos in the messages of my iphone5
I am not able to open pictures or videos in my messages on my iphone5
This problem has been reported a few times. The solution is to install any new App say a free one. This seems to fix whatever has gone wrong.
-
Help! I can't open the iPhoto! I have os x 10.5.8 and I have tried using the iPhoto Library Manager only to find out that the folder for the iPhoto Library could not be found.
I have also tried the Fix #1 from the user Old Toad who said to delete the preference file :com.appleiPhoto.plist - I could do that, but I couldn't figure out how to delete iPhoto's cache fie, Cache.db because I couldn't find it? I'm not sure how to find the file by it's directory path name of HD/User/Home/Library/Caches/com.apple.iPhoto .
Help is very much appreciated!
vernawithavDownload and use Find Any File to search for "Library6.iPhoto". It's a file that is present in every iPhoto library. If you don't find one on your hard drive then your library has gone missing entirely.
Another thing you can try is to use the Search For - All Images feature in the Finder window to see if you can see any of your photos.
That will tell you if they are on your hard drive but somewhere other than the library.
What do you see when you insert the DVD into the optical drive? Can you open it and any folders on the disk? If the disk is titled iPhoto Library then open the disk, the the iPhoto Library folder and finally the Originals folder. Check the subfolders to see if your photos are there.
Your original photo files will be in the Originals subfolders. -
I have moved my itunes library from old computer to portable hard drive and then on, into new laptop, in music file. However I am then unable to open I-Tunes when holding down the shift button as directed in step 4 - this means I am not seeing the library choice box and cannot synch the tunes into ITunes library - any tips please?........Alan
Close iTunes. Click the icon to launch iTunes and immediately press and hold down the left shift key. Keep holding until prompted to choose or create a library. If iTunes opens normally, close it, and try again.
tt2 -
Could not able to open transaction DB14
Hi Experts
when i was trying to execute transaction DB 14 we are getting the message
"Database system not supported for this function".
and other transaction like DB12, DB13 and DB02 are working fine
Environment: windows 2003,sql2005 and crm 5.0
please suggest
Note:Helpful answer will be rewarded
Regards
AmarHello,
DB14 is not supported for a SQL Server system. The valid monitor transactions are (at least)
ST04, DB12, DB13, DB01, DB02
Regards
Clas Hortien -
could any one please tell me the solution..
even i did not understand, why Apple Support remain silent...hi your phone is not factory unlocked , you should have think about before updating ... may be you didnt know about the situation , any way you can make it ..you have to take to local place where iphone unlocking ...that suggestion only i can do ...
-
Books, songs and movies are not available in certain countries. You can check what is available in your country here:
http://support.apple.com/kb/TS3599 -
please solve this problem ... initially i had problem with the sound... it used to play videos without sound but now since 1 week, i am getting error msg for videos and it is playing nothing....
i have the latest flash player ..
my chrome browser plays without any problem... i am experiencing problems only in firefox
please solvePlease try to re-install your firefox browser or maybe you must get the latest version of mozilla firefox browser, here >> [https://www.mozilla.org/en-US/firefox/new]
And you can try to re-install your Adobe Flash Player too and get the latest version here >> [http://example.com http://get.adobe.com/flashplayer/] -
Not able to open Access Manager
Hi,
Not able to open Access Manager after shut down the machine and when its started after a long time ( 2-3 hours), Its giving the error " The page is not found" . After configuring the IIS policy agent in other machine i m not getting the browser what i got b4ly. I m getting "U r not authorized to view this page". Pls reply Very Urgent.Thanks Karthik.
1. Was this always like this or the issue is seen recently ?
2. Did you try opening Config Manager from Start menu or it's native folder ?
3. What type of Admin Workstation ( AW ) is this, from where you are trying to run config mgr ? Distributor or client AW ?
4. The error indicates towards issue in receiving " Real-time feed ( RTF )" . I would try restarting the AW & see if it restores the RTF which is a process running on it.
5. Try pinging ( ping -t ) to Logger from AW to see if there are any network issues.
GP -
I am not able to open illustrator file as it is not recognizing the plugin
I am not able to open illustrator file as it is not recognizing the plugin.
Every time i try to open the illustrator file it shows up a alert message that the file can't be opened as it doesn't recognize the plugin.
how can I open that kind of file ?Hi Larry,
I tried opening it with Acrobat. It opened smoothly but somehow I am not able to open on Illustrator as this is the error I am facing
Please help ! -
We changed the privacy options on firefox, closed the program, and now we are not able to open it. We have ended the process on the task manager, but it still will not open. We tried to uninstall it but it won't even let us do that. I've read lots of articles on how to reset firefox, but it isn't helpful when i can't get into firefox to try it.
See:
*http://kb.mozillazine.org/Browser_will_not_start_up
You can use one of these to start Firefox in <u>Safe mode</u>:
*On Windows, hold down the Shift key while starting Firefox with a double-click on the Firefox desktop shortcut
*On Mac, hold down the Options key while starting Firefox
*Help > Restart with Add-ons Disabled
*https://support.mozilla.org/kb/Safe+Mode
Can you bring up the Profile Manager to create a new profile?
*http://kb.mozillazine.org/Profile_Manager
*https://support.mozilla.org/kb/Managing+profiles -
I not able to open any links in the emails I receive and get an "Error: No associated application could be found" when I click on a link. HELP!! What's going on? This happened after I downloaded Chrome and then decided to delete it.
I have Lion and I just came across this link and it took care of the problem.
Jose Antonio Solis
Re: Lion: Delete google chrome completely include user profile?
Try deleting:
~Library/Application Support/Google
and
~Library/Caches/Google/Chrome -
I am not able to convert movies, keep getting this message The document “The Walking Dead Trailer - YouTube-2.mp4” could not be opened. The movie's file format isn't recognized. not sure why, anybody know
Sounds like someone ripped the movie off of YouTube and it got corrupted in the process. Try getting the movie file again, or try using an alternative movie player such as VLC: http://www.videolan.org
Maybe you are looking for
-
Macbook vs. Macbook Pro Video output to a projector which is better?
OK, so I am having an argument with another guy about this. He swears that a macbook doesnt look as good as a macbook pro when being displayed on a projector. My argument is: if you have and dvd, it will look the same when projected because the resol
-
Can't get my number pad to work - No Num Lock
Hello, I recently got my iMac with the wireless keyboard and noticed that I can not get my number pad to work. There is no num lock button to turn on/off, just the clear button. Can someone help me figure this out? Thanks Jay
-
My Ipad says it is loading but never connects to the site, what is the likely problem.?
-
Accesing protectred URIs on Solaris (sparcv9) with WLS 10.3.5 and Apache2
I had started to ask questions about this on another thread of mine, but since I had listed that one as answered and this being different from the original question on that thread...I felt it better to create its own thread. Problem Description: Envi
-
Exchange server 2013 error called "403 Sorry! Access denied :"
I installed a domain and an exchange server on separate computers. After installed Exchange server 2013, tried to open "Exchange Administrative Center" there is an error message that is attached with this post and cannot go to the admin panel. so tr