on 03-21-2011 9:31 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.