Printing over the Internet

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • samatair
    New Member
    • Nov 2007
    • 61

    Printing over the Internet

    I have a requirement of printing over the Internet using a web application
    It's a shopping cart. Once the order is confirmed it should be printed out in
    the company's warehouse.
    I use PHP for server side scripting and MS SQL for database.
    I think the web server must be Windows server.

    Is this possible. If so anyone can help me in this.

    Your efforts are greatly appreciated.

    Thank you very much
  • hsriat
    Recognized Expert Top Contributor
    • Jan 2008
    • 1653

    #2
    Originally posted by samatair
    I have a requirement of printing over the Internet using a web application
    It's a shopping cart. Once the order is confirmed it should be printed out in
    the company's warehouse.
    I use PHP for server side scripting and MS SQL for database.
    I think the web server must be Windows server.

    Is this possible. If so anyone can help me in this.

    Your efforts are greatly appreciated.

    Thank you very much
    ok, so when a customer gets confirmation for an order, the order is printed on the warehouse's printer, not the customer's...? is it?

    I don't know if its possible to print it instantaneously , but its possible to print orders as soon as the warehouse's browser opens the received-orders-website.
    On the ONLOAD event of the body call the javascript's print function and print all the orders which are received after the last printing was done.
    And after the printing is done, turn off some PRINT_PENDING flag to ensure it doesn't get printed next time. AJAX may be required in this.

    Comment

    • samatair
      New Member
      • Nov 2007
      • 61

      #3
      Originally posted by hsriat
      ok, so when a customer gets confirmation for an order, the order is printed on the warehouse's printer, not the customer's...? is it?

      I don't know if its possible to print it instantaneously , but its possible to print orders as soon as the warehouse's browser opens the received-orders-website.
      On the ONLOAD event of the body call the javascript's print function and print all the orders which are received after the last printing was done.
      And after the printing is done, turn off some PRINT_PENDING flag to ensure it doesn't get printed next time. AJAX may be required in this.

      Hi hsriat,

      Thank you very much for your reply.
      Yes, Indeed what you had understood is exactly Correct.
      Yeah! am able to think of what solution you had offered.
      But my client persists to do it when the order is confirmed.
      I heard that Windows has an Internet Printing Protocol which can be
      used to Print Over the Internet using the IP address of the Printer.
      I think there should be a print server running for this.
      But am not able to understand futher regarding this.

      If any one knows whether it can possible their help would be greatly appreciated.

      Once again Thanks Hsriat

      Comment

      • hsriat
        Recognized Expert Top Contributor
        • Jan 2008
        • 1653

        #4
        Originally posted by samatair
        Hi hsriat,

        Thank you very much for your reply.
        Yes, Indeed what you had understood is exactly Correct.
        Yeah! am able to think of what solution you had offered.
        But my client persists to do it when the order is confirmed.
        I heard that Windows has an Internet Printing Protocol which can be
        used to Print Over the Internet using the IP address of the Printer.
        I think there should be a print server running for this.
        But am not able to understand futher regarding this.

        If any one knows whether it can possible their help would be greatly appreciated.

        Once again Thanks Hsriat
        If there is something like printing protocol you talking about, that may hepl you. But I don't know about that.

        If there is no way left, then use AJAX (in the same page I talked about above), and keep on sending request to the server (say) every 1 minute using JavaScript. Any updation will get printed then.

        One more Idea: (Sorry if you'll find it stupid) If you want a more professional way, so that even the customer is happy, make an application (not web page) which can get the details of the updated confirmation after given time interval over the http and print it automatically. Configure that application on the startup of the OS so that there's no need to start application manually.

        Comment

        Working...