duanpendan8067 2017-10-30 08:18
浏览 65

使用2Printer命令行工具打印php生成的网页

I am trying to print php generated page using 2Printer(Free Version) from fcoder.zendesk.com. I used the following codes to do the task:

<?php
exec("2Printer.exe -s 'text.php' -alert_no");
//shell_exec("2Printer.exe -s 'text.php' -alert_no");
//system("2Printer.exe -s 'text.php' -alert_no");

None of the above codes work and does not output any errors as well. I tried it with a text file (.txt), still it is not working. But from the normal command window (cmd), the printing is working. Is there anyone having experience with 2printer, please help.

  • 写回答

2条回答 默认 最新

  • doujieyu7062 2017-10-31 14:03
    关注

    1) Please be sure that your source folder and your printer are accessible from the account you call 2Printer.

    2) Just for experiment, please try call 2Printer to print JPEG or PNG image file.

    评论

报告相同问题?

悬赏问题

  • ¥15 孟德尔随机化结果不一致
  • ¥20 求用stm32f103c6t6在lcd1206上显示Door is open和password:
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)
  • ¥15 keil里为什么main.c定义的函数在it.c调用不了
  • ¥50 切换TabTip键盘的输入法