本文介绍了如何使用Printer_Write打印页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的先生或女士



如何通过在printer_write中给出路径来直接打印php。

我的代码

$ print = file_get_contents('print_halad.php');

$ handle = printer_open('EPSON TM-T81 Receipt');

printer_start_doc($ handle,Recipt Document);

printer_set_option($ handle,PRINTER_MODE,RAW);

printer_set_option($ handle,PRINTER_SCALE,20);

printer_set_option($ handle,PRINTER_TEXT_ALIGN,PRINTER_TA_CENTER);

printer_start_page($ handle);

printer_write($ handle,$ print);

printer_end_page($ handle);

printer_end_doc($ handle);

printer_close($ handle);

?>



在我的代码中,单击提交按钮时,我想打印带有所有值的print_halad.php。



plese帮助mi。



谢谢。

解决方案




dear sir or madam

how it is possible to print php directly by giveing path in printer_write.
My code
$print = file_get_contents('print_halad.php');
$handle = printer_open('EPSON TM-T81 Receipt');
printer_start_doc($handle, "Recipt Document");
printer_set_option($handle, PRINTER_MODE, "RAW");
printer_set_option($handle, PRINTER_SCALE, 20);
printer_set_option($handle, PRINTER_TEXT_ALIGN, PRINTER_TA_CENTER);
printer_start_page($handle);
printer_write($handle, $print);
printer_end_page($handle);
printer_end_doc($handle);
printer_close($handle);
?>

In my code when submit button is click i want to print print_halad.php with all values.

plese help mi.

Thank You.

解决方案




这篇关于如何使用Printer_Write打印页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-25 03:34