Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 123775
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T04:20:23+00:00 2026-05-11T04:20:23+00:00

I was looking for a solution for client side printing of reports and pre

  • 0

I was looking for a solution for client side printing of reports and pre formatted forms from a PHP web based app. Note that these are not printing of HTML pages. Rather nicely aligned fixed formated Receipts, Order Forms, Ledger etc.

Something that I have though of.

Using PDF: Is there a simple one click way to print the report from client side? The obvious choice of opening the PDF in a window, then select File -> Print seems too cumbersome.

Using Flash: I saw some site providing single click printing through flash. Not sure what’s working in the background. Any insight on this regard will be helpful.

Active-X/Silverlight(?): I won’t want to constraint my users on IE only. But this one-click printing requirement is so rigid that I would rather switch to MS only platforms if it achieves the task.

Note that it’s ok for the single click to bring up the print dialog box and user clicking a second time for printing. But any more complexity than that is a disadvantage.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T04:20:24+00:00Added an answer on May 11, 2026 at 4:20 am

    If the format is so rigid you need a format like PDF. HTML/CSS is so variable you’ll never get it the same on all browsers. Plug Web pages have no real concept of pages (although there is some support for things like CSS print media styling).

    Also not all people actually have a printer. Trying to force something to be printed is really the wrong approach and will generally put some of your customers off.

    The minimal solution is to create a receipt page with the emdia print CSS to make it appear responable most of the time.

    If that’s not enough you need to go PDF. Unfortunately that then becomes hard as this question regarding HTML+CSS to PDF conversion illustrates. PrinceXML does an outstanding job at this conversion but it’s not cheap. Html2PDF is the best of the open source bunch but has issues (see that answer for more detail). I’ve had this same problem in the Java space and for invoices there ending up using Jasper Reports. I haven’t really seen an equivalent reporting solution for PHP though. Python has reportlab, which seems a likely candidate for doing that kind of job too.

    Perhaps your best option is to generate the PDF directly. It’s a bit more tedious but it avoids the many pitfalls of HTML to PDF conversion. This tutorial (Part 2) explains how.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for a solution to bootstrap a client side app (written in Backbone.js)
I have worked with web services before from the client side on Android, but
I should clarify that I am looking for a client-side solution. Alternatively, is there
I'm looking for solution to extract some node from large xml file (using xmlstarlet
I'm looking for a solution for capturing audio from a user's microphone and posting
I'm looking for a solution that gives me a central hub from which to
I'm currently writing a client-side javascript app which performs image manipulation. Some of the
I am looking for a template solution that can work on both server side
I am looking for JQuery or any other ways to store data on client-side
I am looking to transfer commands/data from a web-page to an Arduino in order

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.