Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Regular Coder
    Join Date
    Apr 2006
    Posts
    311
    Thanks
    17
    Thanked 0 Times in 0 Posts

    Batch Print multiple files???

    I have a set of 20 html forms pages that when completed comprise
    a home inspection report. Is it possible to print all files with a single click?

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Hmm I don't think so. You may be able to get the print prompt open but you can't force a print on the user unless this is like on your own local system.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Regular Coder
    Join Date
    Apr 2006
    Posts
    311
    Thanks
    17
    Thanked 0 Times in 0 Posts
    This is strictly local, for use by individual home inspectors, not for public consumption. The idea is to consolidate all 20 files into a master docuement (PDF) to be printed, emailed to client, and last but not least stored in the database. We basically want but a snapshot of the forms, NOT the data itself. Once a report is completed (all the pretty little boxes checked and printed) we get paid and have no use for the data ever again. Wondering if it might be possible to save data from all forms in a cookie???

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    No a cookie has a size limit. This is what I would do. Collect all of the info. Once collected have some server side script make a pdf file. I'm pretty sure php can make pdf files, may have to look into that. Then have the pdf file created emailed. I'm not sure how you will do the printing though. I don't know if php has the ability to actually print files.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    Regular Coder
    Join Date
    Apr 2006
    Posts
    311
    Thanks
    17
    Thanked 0 Times in 0 Posts
    Thanks Aero.
    Yeah I have several flavors of php code for making pdf's. Don't know myself about printing from php, but why not just print the pdf? No clue at present as to how to gather the data into the script but I think you've got the right idea. Worried though -- given a size limit for cookies -- what to do with the data untill the report is completed. It is rare that one completes an entire form in one fell swoop. We need to bounce back and forth between the froms several times before all data is gathered. Was counting on use of session cookies to hold until completion.
    Last edited by fuzzy1; 05-02-2006 at 04:36 AM.

  • #6
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Look into forms across multiple pages. I'm not sure how those work though or put all 20 pages on one page?
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #7
    Regular Coder
    Join Date
    Apr 2006
    Posts
    311
    Thanks
    17
    Thanked 0 Times in 0 Posts
    I'll look into it. I thought (ever so briefly) about consolidating the forms into one file but at 1600 lines apiece off a master temlpate... well I'm ascared!!!

    It, would reqire a major re-think and... oh -- hundreds of hours I'm sure!


  •  

    Posting Permissions

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