I am building a database app for a client in PHP/mySQL. There are several dynamic reports that are generated. The client would like his staff to be able to print these reports. He does not want the header/footer to print out and apparently, it is too much of a pain to teach all of his staff how to turn that off before printing. He saw another website that generated PDFs when things needed to be printed and he likes that.

I have looked at FPDF and it seems like a nightmare of rewriting two versions of every report so they can (1) see a web preview (2) print as PDF

Does anyone have any easier quicker ideas?

    If PDF is not a requirement, could you not just have a version using HTML with header/footer and a version without them?

      didnt get it 100% 🙁. sorry for my bad language skills. you mean just html reports without pdf ?? Any how i need a way to make reports.( I am not well experience guy this is my uni project for a client. )

        vidz wrote:

        you mean just html reports without pdf ?

        Yes. That is, you have a single HTML base template for the report, then from this you have one template for the web preview and another for the actual printing.

        vidz wrote:

        Any how i need a way to make reports.

        To some extent, you cannot get away from needing two different templates since you have two different sets of output for the same data.

          laserlight;11007653 wrote:

          To some extent, you cannot get away from needing two different templates since you have two different sets of output for the same data.

          Ah just got what you have said. I have only one template which doesnt contain headers foooters and other normal page elements. I make pdf report out of it

            Write a Reply...