Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How can I display a spreadsheet in a portlet?

2 views
Skip to first unread message

Barry Donohue

unread,
Nov 19, 2003, 2:48:52 PM11/19/03
to
Alan or Subbu,
I am having difficulty simply displaying the excel spreadsheet (or word doc for that matter) from within my webpage (JSP). Can you offer an assistance?
I am running WLS 8.1 Sp1 on Win2K with IE6.0, Sp 1. and MS Office 2K SR1.
Thank you,
Barry

Diptanshu Parui

unread,
Nov 19, 2003, 11:30:30 PM11/19/03
to

I have done this on WLP 7. It should be similar in WLP 8. Use IFrame tags along
with the ShowDoc servlet.

e.g.

<IFRAME SRC="/ShowDoc?contentId=<%= contentId %>" WIDTH=800 HEIGHT=420></IFRAME>

where <%= contentId %> will give the path of your xls/doc/pdf file under dmsBase.
Needless to say, that you need to load the docs under dmsBase, before testing
this out.

Regards,
Diptanshu

Gregory Smith

unread,
Nov 20, 2003, 10:10:57 AM11/20/03
to
Similarly, in WLP8.1, it would be:

<IFRAME SRC="ShowBinary<cm:getProperty id="node" name="cm_path"
encode="url"/>"></IFRAME>

or

<%
// path has a leading / in 8.1 so you don't need it after ShowBinary
String path = node.getPath();
path = com.bea.content.manager.ContentHelper.pathInfoEncode(path);
%>
<IFRAME SRC="ShowBinary<%=path%>"></IFRAME>

iFRAME only works in IE and Mozilla/Netscape6+. If you think that your
client browser has the appropriate plugin, you could also use an
<OBJECT> and/or <EMBED> with similar URLs.

Greg

0 new messages