Skip to Content
0

Print a fragment SAP UI5

Nov 08, 2017 at 05:47 AM

51

avatar image
Former Member

I am trying to print a fragment using window.print() but not getting the expected output. I am using below code :

var $domTarget = oTarget.mAggregations.content["0"].mAggregations.content["0"].mAggregations.pages["0"].mAggregations.content["0"].$()[0];var sTargetContent = $domTarget.innerHTML;var sOriginalContent = document.body.innerHTML;
document.body.innerHTML = sTargetContent;
window.print();

I am getting first half of fragment printed but not second half.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Iftah Peretz
Jan 19 at 09:42 PM
0

Hi,

Are you not getting the part that is in sTargetContent printed?

Share
10 |10000 characters needed characters left characters exceeded