Q/R>Printing forms

Discussion in 'Programming' started by frostentangle, Apr 25, 2010.

  1. #1
    Hi all,

    I have searched most forums and i still did not have the tools that i wanted for my project.

    Here is an overview of the system:
    My project is all about inventory listing. Items that are purchased by the organization should be tracked by this project. Items are then inspected when it arrives and the details are recorded on a database. Then the system generates reports in a form of RECEIPT FORMS. The difficulty is that these forms are printed using a dot matrix over a pre-printed form (a form that has some serial number from a government body). The fields that are to be printed on that form should align to the pre-printed form when printed.

    Main problem:
    I dont have any experience in printing programming.
    What tools/plugins/script should i use that is easier to understand and implement using PHP. My system is mainly web based.

    Thanks in advance.
     
    frostentangle, Apr 25, 2010 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,849
    Likes Received:
    4,542
    Best Answers:
    123
    Trophy Points:
    665
    #2
    web based can be a bit of a pig because the browser will insist on printing the url and date as well.

    You might be better to generate a pdf of each receipt and print that. Once you get your head around it pdf isn't that bad. This is a good option if you can use PHP: http://www.ros.co.nz/pdf/
     
    sarahk, Apr 26, 2010 IP
  3. frostentangle

    frostentangle Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for the quick reply.

    I thought of doing the pdf also and started searching for tools over the internet.
    But i did not find what im looking for.

    This is a good PHP class to start. Though I dont want to show the pdf generation part and skip to printing right away.

    I have to ask is there a PHP way to print a pdf file?
     
    frostentangle, Apr 26, 2010 IP
  4. sarahk

    sarahk iTamer Staff

    Messages:
    28,849
    Likes Received:
    4,542
    Best Answers:
    123
    Trophy Points:
    665
    #4
    PHP is on the server so it can't do anything on the users machine. It just outputs a stream of text that just so happens to be html, xml etc.

    Javascript can initiate the printing.
     
    sarahk, Apr 26, 2010 IP
  5. frostentangle

    frostentangle Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Sorry for that.
    Will try to search for js tools for printing pdf files.

    Thanks! I will update the thread once i can have a sample ready.
     
    frostentangle, Apr 26, 2010 IP
  6. merlinseo

    merlinseo Well-Known Member

    Messages:
    1,686
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    130
    #6
    merlinseo, May 10, 2010 IP