cancel
Showing results for 
Search instead for 
Did you mean: 

Print Functionality...on each portal page.

Former Member
0 Kudos
68

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Swathi,

Thanks for your reply.

Rgds,

P.Navakanth

Former Member
0 Kudos

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

Answers (0)