SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast
    Join Date
    Apr 2002
    Location
    Texas
    Posts
    66
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help - client wants automatic printouts of form data

    One of my clients is an apartment complex that wants their residents to be able to submit work orders online (i.e., "the bathroom sink is dripping"). They want the work orders to print out automatically in the apartment office each time a user submits one.

    I don't know of any way to generate a print job like that. (The web site will be based on PHP/MySQL). Any suggestions? I thought maybe when the form is submitted, PHP could initiate a fax to their fax machine, but I'm not sure how to do that. What are your thoughts and suggestions?

    Thanks very much!

  2. #2
    SitePoint Wizard geiger's Avatar
    Join Date
    Jul 2001
    Posts
    2,459
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Never heard of such a thing. If it is possible, it would have to deal with certain technologies that interact with your local computer.

    It is possible for them to open up a web page, and get notified when they recieve a new purchase, though.

  3. #3
    SitePoint Wizard johnn's Avatar
    Join Date
    Mar 2001
    Location
    Southern California, USA
    Posts
    1,181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try this:
    Use php script to email the request form to these fax
    services
    www.faxmate.com
    or
    www.ourfax.com

    Then they will fax it to your client's fax machine. I haven't try it yet. Let us know if it's ok. I may use their services in the future.

    Thanks,
    John

  4. #4
    SitePoint Guru
    Join Date
    Aug 2001
    Location
    Amsterdam
    Posts
    788
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    hmmm where's the printer..

    Well... If you want to print on their printer you can just use Javascript to popup printer dialog..

    if you want to print on a printer in the office you should connect the printer to the webserver and then use PHP's printing functions...

    LXIX. Printer functions
    These functions are only available under Windows 9.x, ME, NT4 and 2000. They have been added in PHP 4 (4.0.4).

    Table of Contents
    printer_open Open connection to a printer
    printer_abort Deletes the printer's spool file
    printer_close Close an open printer connection
    printer_write Write data to the printer
    printer_list Return an array of printers attached to the server
    printer_set_option Configure the printer connection
    printer_get_option Retrieve printer configuration data
    printer_create_dc Create a new device context
    printer_delete_dc Delete a device context
    printer_start_doc Start a new document
    printer_end_doc Close document
    printer_start_page Start a new page
    printer_end_page Close active page
    printer_create_pen Create a new pen
    printer_delete_pen Delete a pen
    printer_select_pen Select a pen
    printer_create_brush Create a new brush
    printer_delete_brush Delete a brush
    printer_select_brush Select a brush
    printer_create_font Create a new font
    printer_delete_font Delete a font
    printer_select_font Select a font
    printer_logical_fontheight Get logical font height
    printer_draw_roundrect Draw a rectangle with rounded corners
    printer_draw_rectangle Draw a rectangle
    printer_draw_elipse Draw an ellipse
    printer_draw_text Draw text
    printer_draw_line Draw a line
    printer_draw_chord Draw a chord
    printer_draw_pie Draw a pie
    printer_draw_bmp Draw a bmp
    the neigbours (free) WIFI makes it just a little more fun

  5. #5
    SitePoint Enthusiast
    Join Date
    Apr 2002
    Location
    Texas
    Posts
    66
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for all the suggestions. One possibility I discovered today is to set a rule in Outlook 2002 that will automatically print an e-mail message from a specified sender. That's probably going to be the easiest solution.

    However I'm interested in learning more about using PHP to fax things. It seems like that would come in handy for a number of different applications.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •