Guest User

Untitled

a guest
Jul 20th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. $("#Section1").printElement({
  2. leaveOpen: true,
  3. printMode: 'popup',
  4. pageTitle: '<%=Resources.Reporting.Text_Title%>'
  5. });
  6.  
  7. if (opts["printMode"].toLowerCase() == 'popup') {
  8. popupOrIframe = window.open('about:blank', 'printElementWindow', 'width=650,height=440,scrollbars=yes');
  9. documentToWriteTo = popupOrIframe.document;
  10. }
  11.  
  12. var windowName = "printElementWindow";
  13. windowName = windowName + (Math.round(Math.random() * 99999)).toString();
  14. if (opts["printMode"].toLowerCase() == 'popup') {
  15. popupOrIframe = window.open('about:blank', windowName, 'width=650,height=440,scrollbars=yes');
  16. documentToWriteTo = popupOrIframe.document;
  17. }
Add Comment
Please, Sign In to add comment