לאתר זה תהיה פונקציונליות מוגבלת בזמן שאנו מתחזקים אותו לשיפור החוויה שלך. אם מאמר מסויים לא פותר את הבעיה שלך וברצונך לשאול שאלה, קהילת התמיכה שלנו מחכה לעזור לך ב־Twitter תחת ‎@FirefoxSupport וב־Reddit תחת ‎/r/firefox.

חיפוש בתמיכה

יש להימנע מהונאות תמיכה. לעולם לא נבקש ממך להתקשר או לשלוח הודעת טקסט למספר טלפון או לשתף מידע אישי. נא לדווח על כל פעילות חשודה באמצעות באפשרות ״דיווח על שימוש לרעה״.

מידע נוסף

Is there any setting to avoid printing of balnk page which is present between document.

  • 2 תגובות
  • 1 has this problem
  • 6 views
  • תגובה אחרונה מאת the-edmeister

more options

I am printing statement using mozilla firfox 9. It is inserting blank page after every page. It is working fine in Mozilla Firefox 22.

Below is code which i am adding before print for page break. Below code is working in IE also.

var SourceStr   = text1;
     var sPhraseList = SourceStr.replace (/Dutch-Bangla/gi, "<p style='page-break-after: always;text-indent: 18em'>Online Statement");
     text1 = SourceStr;
     var text2 = sPhraseList;

w.document.write("<HTML><BODY><pre rows='60' cols='150' style='font-family:Courier New;font-size:12pt'>"+text2+"</pre></BODY></html>");

 w.print();


Please suggest some solution.

Thanks in advance.

I am printing statement using mozilla firfox 9. It is inserting blank page after every page. It is working fine in Mozilla Firefox 22. Below is code which i am adding before print for page break. Below code is working in IE also. <pre><nowiki>var SourceStr = text1; var sPhraseList = SourceStr.replace (/Dutch-Bangla/gi, "<p style='page-break-after: always;text-indent: 18em'>Online Statement"); text1 = SourceStr; var text2 = sPhraseList; w.document.write("<HTML><BODY><pre rows='60' cols='150' style='font-family:Courier New;font-size:12pt'>"+text2+"</pre></BODY></html>"); w.print();</nowiki></pre> Please suggest some solution. Thanks in advance.

השתנתה ב־ על־ידי cor-el

כל התגובות (2)

more options

Is there a reason why you are still using version 9?

I don't think the problem is (within that part of) your code. It's probably the case that between version 9 and 22 some update was introduced that prevents your code from being backwards compatible. You should use the latest firefox version instead.

more options

Top and bottom margin settings.
Header and footer turned off.