cancel
Showing results for 
Search instead for 
Did you mean: 

How to print table contents?

Former Member
0 Kudos

hi @,

I am having a view which is dsiplaying data fetched from the R/3 through Adaptive RFC in a table. This table need to have a print functionality to print on the client.

How to do this I am not having any function / UI to do this.

Any help.

Regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

refers this blogs.

/people/sap.user72/blog/2006/05/04/enhancing-tables-in-webdynpro-java-150-custom-built-table-utilities

Printing in Web Dynpro

threads..

hope it will help u.

Edited by: Abhilasha Dahare on Sep 11, 2008 3:15 PM

Edited by: Abhilasha Dahare on Sep 11, 2008 3:17 PM

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Try This:

When the user click on Print button, launch a new window as below:


public void onActionPrint(com.sap.xyz.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
  {
    //@@begin onActionPrint(ServerEvent)
    
		StringBuffer strB = new StringBuffer("/webdynpro/dispatcher/xyz.com/(component name space) ab~xyz~testprint/(application name)PrintTestApp");
		
	
		IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(strB.toString(), "Print");
		window.show();
     
    //@@end
  }

The above code helps to launch a new window with your Web Dynpro application. The application is sepecific to print functionality.

ThePrintTest App should have the content with format what exactly you would like to print. (Users use the browser standard print functionality to print the table content).

This is a kind of work around and as of NW 7.0 there is no standard print functionality available in Web Dynpro.

Thanks

Krishna

Former Member
0 Kudos

Hi,

You can find the print UI in NWDS 7.0 .but from NWDS 7.0.10

you can create a UI and create an action and say

WDPrintService.getPrintService().print(wdControllerAPI);

This shd solve the problem check the blog

Thanks

Pankaj