• Post Reply Bookmark Topic Watch Topic
  • New Topic

Jakarta POI executed from Form action

 
Pat Flickner
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm hoping that this is really the right place for this. I'm using the Jakarta POI successfully with really no problems whatsoever..... BUT (and you knew that was coming) the issue I'm having is that if I want to get the spreadsheet to be created without the annoying window when the "Open, Save, Cancel" popup appears, I have to have a temporary window via target in the html form that it uses if I select Open.

But if I get rid of the "target=" and open the spreadsheet, it opens in the page I'm on. Is there a third option? We can live with it opening on the same page, but it's a slight annoyance, whereas the temporary window popping up behind the popup is just plain awful looking -- not what we want for a professional site and certainly not when we've time making the spreadsheet look very nice and professional.

Thanks for any help.
 
Jayesh Lalwani
Ranch Hand
Posts: 502
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can open the spreadsheet in a seperate frame within your page. Put a Frame or an iframe in your page and assign a name to it. When you open the spreadsheet, say target="<name of the frame>"

BTW, if you want to remove the nasty, Open/Save/Cancel popup, you can try looking at the DSO Framer Control. This is an ActiveX control that can open any office document through javascript. However, note that ActiveX will work on IE only. So, this soultion won't be portable
 
Pat Flickner
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. I'd already considered this solution (to put it in another frame), but the problem is that the report is already in a frame. If I just click Open, the spreadsheet opens in the frame and the users can't see any way to save the report. The only acceptable solution was to send it to _parent upon Open. If I try to have it targeted to a non-existent area (i.e., no existing frame or window), it creates an orphan popup window that is great if you want to Open and disappears if you click Save or Cancel, but is annoying to everyone until you do something.

And I don't want to get rid of the Open, Save, Cancel because: 1) our users want that flexability and 2) we support Netscape as well. But thanks for the suggestion.

Pat
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!