Now i can be able to print the contents of text box. But the text is not printing in the way i have inserted into the text box. Actually i have inserted with different lines and some text at particular position. But it is printing in a paragraph without
considering any newline , tab or space. So can u please help me to print as in the text box with newline ,space and tab.
thanks
Sorry, that is far too much work to help you with, if it is even possible.
Can u please tel me how it can be done. I wil try to do it. This is the one of the last feature in my project. Or is ther any other way to print the contents of the text box in the same way.
NC01
All-Star
82577 Points
15430 Posts
MVP
Re: how to print the contents of text box with a print dialog & print priview dialog
Dec 08, 2008 11:44 AM|LINK
Sorry, that is far too much work to help you with, if it is even possible.
NC...
sancti
Member
13 Points
151 Posts
Re: how to print the contents of text box with a print dialog & print priview dialog
Dec 08, 2008 11:55 AM|LINK
hi NC,
Can u please tel me how it can be done. I wil try to do it. This is the one of the last feature in my project. Or is ther any other way to print the contents of the text box in the same way.
thanks once again,
NC01
All-Star
82577 Points
15430 Posts
MVP
Re: how to print the contents of text box with a print dialog & print priview dialog
Dec 08, 2008 11:58 AM|LINK
I don't know what else to tell you. I've already told you that I don't think that it is even possible. Maybe someone else can answer.
NC...
Lance Zhang ...
All-Star
33091 Points
2361 Posts
Re: how to print the contents of text box with a print dialog & print priview dialog
Dec 09, 2008 08:03 AM|LINK
Please try the following demo, which is based on NC’s code:
Thanks.
sancti
Member
13 Points
151 Posts
Re: how to print the contents of text box with a print dialog & print priview dialog
Dec 09, 2008 08:25 AM|LINK
hi Lance,
Thank u very much. I tried ur method.Its working. Can u just tel me how to replace tab and space in the same way.
thanks
NC01
All-Star
82577 Points
15430 Posts
MVP
Re: how to print the contents of text box with a print dialog & print priview dialog
Dec 10, 2008 12:36 PM|LINK
var tabRegex = /\t/g;
printContent = printContent.replace(tabRegex, " ");
var spaceRegex = / /g;
printContent = printContent.replace(spaceRegex, " ");
NC...