php print to printer example

Поділитися
Вставка
  • Опубліковано 27 жов 2024

КОМЕНТАРІ • 67

  • @notgatee
    @notgatee 5 років тому

    How do I print an image image? Can you help me? This way the code only outputs the image path :(
    $printer = new Printer($connector);
    $printer -> text('');
    $printer -> cut();

  • @yoskokleng3658
    @yoskokleng3658 6 місяців тому

    is it work for cloud hosting to local machine?

  • @maulanaakhmadyarief7844
    @maulanaakhmadyarief7844 Рік тому

    this work too for printer POS-58, Thanks you.....

  • @ianxreload2772
    @ianxreload2772 4 роки тому

    im use okay thermal printer. its fine?

  • @shankars6351
    @shankars6351 3 роки тому

    Uncaught Error: Class 'Mike42\Escpos\PrintConnectors\WindowsPrintConnector' not found

  • @shahidkhan-og3wz
    @shahidkhan-og3wz 3 роки тому

    I have tailoring software but i can't print data any code using php?

  • @jawazath
    @jawazath 5 років тому

    Hello, I have tested from server side but won't print in client side printer, Please help. I am using IIS 8.5 and Nginx server.

  • @notyouridealguy9202
    @notyouridealguy9202 4 роки тому

    where did that testfile came from????

  • @radeontraxoffice3066
    @radeontraxoffice3066 4 роки тому

    ours is a thermal printer this code is not working for it the command prompt is showing the testfile is printing to action.can any one help us?

  • @codadry
    @codadry 4 роки тому

    Excellent. Thanks you.

  • @BraiCruzz
    @BraiCruzz 7 років тому +2

    What printer do you use for this video?

    • @Webeasystep
      @Webeasystep  7 років тому +1

      BIXOLON SRP-330
      ua-cam.com/video/9GRVEdWuxmA/v-deo.html

  • @Achsya1
    @Achsya1 5 років тому +1

    I have a website on hosted, I want Print from client(viewer/visitor), can I do step such us that video ? work or not ?

    • @Webeasystep
      @Webeasystep  5 років тому

      sure you can ,without the windows setup step

    • @afaizf89
      @afaizf89 5 років тому

      @@Webeasystep Which "windows setup step" should I skip ?

  • @farukweb
    @farukweb 5 років тому +1

    how to redirect to home page after print out ?
    $printer -> text("Hello world
    ");
    $printer -> cut();
    // redirect to

    • @fingaming2095
      @fingaming2095 4 роки тому +1

      add this line: header("Location: index.php"); change index.php to ur default home page

  • @WilsonXtrem007
    @WilsonXtrem007 6 років тому +1

    Hi my friend you can make a video please whit how to make this in Codeigniter? Thank you!

    • @web_easy_step
      @web_easy_step 6 років тому

      Hi,no needs for that my friend it's the same concept

  • @h.azambayhasanbay9348
    @h.azambayhasanbay9348 Рік тому

    the print message is coming but not printing

  • @hussainsayyed654
    @hussainsayyed654 6 років тому

    How it document print
    Exampl for. Invoic bill , paytm invoice resit printing

  • @eliabekun
    @eliabekun 4 роки тому

    hi! congratulations for this video. I have a question. when put the command "print /D:"\\%COMPUTERNAME%\Gprinter_GP-3120TU" testfile", show the message "is being printed" but not print. That means my printer not accept this command?

    • @Webeasystep
      @Webeasystep  4 роки тому

      may be you need to check the printer brand

  • @VIKASROYv
    @VIKASROYv 5 років тому

    Unable to initialise device when I am using Pring with desktop name

  • @RaselAhmed-zx9dd
    @RaselAhmed-zx9dd 6 років тому +1

    It is working fine for text. But how can i Print a pdf or html file? please help

    • @web_easy_step
      @web_easy_step 6 років тому

      You can check my blog to print pdf and HTML ,there are many tutorials for that

    • @osamamohsen3993
      @osamamohsen3993 2 роки тому

      Did you find any solution for that?

  • @WilsonXtrem007
    @WilsonXtrem007 6 років тому

    Hi friend how to use this library in CodeIgniter? Can You help me please

  • @prokashmondal7341
    @prokashmondal7341 6 років тому +6

    how to print from server side. thank you.

    • @julianmoors47
      @julianmoors47 4 роки тому

      You can silently print on Google chrome using “-kiosk-printing” flag appended at the end of the shortcut location. You can use JavaScript to initiate the print to default printer.

  • @alexsilva4794
    @alexsilva4794 4 роки тому

    enthernet smb? o que seria? como faço a conexão? ta funcionando no meu localhost normal.... a e obrigado seu tutorial foi o melhor

    • @gilcelecoelho4066
      @gilcelecoelho4066 4 роки тому

      ola, tambem consegui fazer funcionar apenas no meu localhost. quando enviei para o servidor web não funciona. Voce conseguiu alguma informação se funciona em servidor web(kinghost) com esta biblioteca, ou tem que ser de outra forma.. faz dias que estou perdida nisso. voce pode me passar alguma indicação?

  • @eusoudiegodanni
    @eusoudiegodanni 6 років тому +2

    But in linux cloud not print well

    • @Webeasystep
      @Webeasystep  6 років тому

      Hi Diego,sorry for that but the tutorial focus on the installation steps for windows OS,you can also try to use mpdf as an alternative as i discuss in the same tutorial ,you can find the link in the description

  • @kingch.5715
    @kingch.5715 7 років тому

    Does this work with html print button too ?

  • @samarsaleh9080
    @samarsaleh9080 5 років тому

    Thank you this video help me a lot.

    • @Webeasystep
      @Webeasystep  5 років тому

      You are welcome

    • @muhammadsafdar6093
      @muhammadsafdar6093 5 років тому

      @@Webeasystep I have an POS device like Andriod phone with internal Thermal printer attached. So, is it possible to use this library and print the web page in chrome in andriod phone?

  • @ronithabobon
    @ronithabobon 6 років тому +2

    will this work on hosted php site?

    • @Webeasystep
      @Webeasystep  6 років тому

      Ronith Abobon sure, just check requirements andvphp version

    • @ronithabobon
      @ronithabobon 6 років тому

      wow thanks for the immediate reply ill subscribe for that

    • @afaizf89
      @afaizf89 5 років тому

      @@Webeasystep What is the requirement & what php version ?

  • @handleless_by
    @handleless_by 5 років тому

    how can i change set paper tray? i want print tray 2 ? thanks!,

  • @doanuongdieu3129
    @doanuongdieu3129 4 роки тому

    print not working for me

  • @makgr
    @makgr 6 років тому

    it doesn't work. Please help..

  • @lu9man
    @lu9man 6 років тому +1

    Thanks alot this is very useful

  • @purnamawatisabat6044
    @purnamawatisabat6044 6 років тому

    name is already equated but still error in online 23

  • @bharathkumar2799
    @bharathkumar2799 6 років тому

    SIr I use the Hp printer how can i use it

  • @ifacperusac7777
    @ifacperusac7777 6 років тому

    nice

  • @Truethought689
    @Truethought689 Рік тому

    Source code pls.

  • @brunomontecinos1221
    @brunomontecinos1221 6 років тому

    @webeasystep Excelent Help!
    Other question:
    Could you print special characters that are used in words or names in Spanish like: Egüez (ü), Baño (ñ) fantasía (í).
    exmple: $printer -> text("Maria Ibañez Egüez
    ");
    Thanks!!!!!

    • @Webeasystep
      @Webeasystep  6 років тому

      Bruno Montecinos i tried to use some utf-8 chars but it didn't work and for that i tried Mpdf library as alternative,

  • @h.azambayhasanbay9348
    @h.azambayhasanbay9348 Рік тому

    autoload.php ??

  • @jensysantana8663
    @jensysantana8663 6 років тому +1

    Ni. This work in php7?

    • @Webeasystep
      @Webeasystep  6 років тому

      try to visit their repository in GitHub to find information about compatibility

  • @rifkiardiansyah616
    @rifkiardiansyah616 5 років тому

    wtf is tht

  • @ronithabobon
    @ronithabobon 6 років тому +1

    will this work on hosted php site?

    • @Webeasystep
      @Webeasystep  6 років тому

      Ronith Abobon sure, just check requirements and PHP version is available on your host