I already got it by supplying printer's name. Only an extra single character of printer's name makes a warning. But now my problem is I have a lot of printer_write() or even printer_draw_text() function in one printing function. When I call the printing function it prints page by page. Here's my code:
function printIssue() {
$handle=printer_open("EPSON LX-300");
$font=printer_create_font("Draft Condensed",25,6,PRINTER_FW_THIN,false,false,false,0);
printer_select_font($handle,$font);
printer_write($handle,"Library & Learning Resource Center");
printer_write($handle,$name);
printer_write($handle,$address);
printer_write($handle,$book_borrowed);
printer_delete_font($font);
printer_close($handle);
}
Why it prints "Library & Learning Resource Center" on one page and $name on the other page and so on...
When I call this function my 4 sheet of papers are printed 1 line each. I want to print this line by line and not page by page. Any idea?