on 2007 Feb 06 8:48 AM
Hi,
Can we have the print functionality on every portal page...We wanted the user to be able to print the report assigned to a page.
Thanks & Regards,
P.Navakanth.
Hi Navakanth,
The print functionality can be included by writing a Separate PortalComponent and calling the component when the print button is clicked on evry page.
In the JSP call the print cmponent By using <%@ page import="com.sapportals.portal.prt.service.urlgenerator.IUrlGeneratorService"%>
<%@ page import="com.sapportals.portal.prt.service.urlgenerator.specialized.IPortalUrlGenerator"%>
<%@ page import="com.sapportals.portal.prt.service.urlgenerator.specialized.ISpecializedUrlGenerator"%>
For instance :
Include code like this in all your jsps
<%
try {
IUrlGeneratorService urlGen =(IUrlGeneratorService) componentRequest.getService(IUrlGeneratorService.KEY);
// get Specialized Portal Url Generator
IPortalUrlGenerator portalGen = null;
ISpecializedUrlGenerator specUrlGen =urlGen.getSpecializedUrlGenerator(IPortalUrlGenerator.KEY);
if (specUrlGen instanceof IPortalUrlGenerator)
{
portalGen = (IPortalUrlGenerator) specUrlGen;
printUrl =portalGen.generatePortalComponentUrl(
componentRequest,
"<<b>ProjectName</b>><b>.</b><<b>PrintComponen</b>t>");// calling the Print Component
} catch (Exception e) {
response.write("EXception---"+e.getMessage());
}
%>
Hold the bean values in the HttpSession.
Hope it helped.
Thanks
Swathi>
pls offer points if helped
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Swathi,
Please could you help me is urgent..
I am looking for the .jar where i could find the IPortalUrlGenerator Class calling the
<%@ page import="com.sapportals.portal.prt.service.urlgenerator.specialized.IPortalUrlGenerator"%>
<%@ page import="com.sapportals.portal.prt.service.urlgenerator.specialized.ISpecializedUrlGenerator"%>
I read that i have to import these com.sap.portal.appintegrator.sap.bwcapi.jar
but i cannot find it.
Please could you mail me these jar?
My mail agika14@gmail.com.
I appreaciate your help!
Regards,
Ari
User | Count |
---|---|
67 | |
8 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.