cancel
Showing results for 
Search instead for 
Did you mean: 

Webdynpro print functionality, Hide URL at bottom of page

Former Member
0 Kudos

Hello,

I have made a application where I am generating a simple HTML/String text page for user.

Below is code :

byte[] content = new byte[4028];
try {
	content = this.displayPrint().getBytes("UTF-8");
	wdContext.currentContextElement().setHtmlFile(content[0]);
	
IWDWindow win = wdThis.wdGetAPI().getComponent().getWindowManager().createNonModalExternalWindow(WDWebResource.getWebResource(content, WDWebResourceType.HTML).getURL(),"Employee Details");
win.setWindowSize(600,600);
win.removeWindowFeature(WDWindowFeature.ADDRESS_BAR);
win.removeWindowFeature(WDWindowFeature.MENU_BAR);
win.open();

I am getting a new popup page with desired text. User can select print button from window toolbar.

The problem is with printable output page.

A URL is attached at bottom of printout.

How can I get it removed.

Thanking you in anticipation.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I have just checked that in output HTML screen at client side has a print option which he uses to give print of current HTML page.

Now at client side if I select "Print Preview" and then select "Remove header and footer".

Then my problem is solved.

But how can I control this from web dynpro java application.