Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Sorry about that, more detail...

Just as you can write a small program to go through the answer set from an SQL statement and display the results (Multiple columns and multiple records) in an HTML table or even to an EXCEL file. It would be (more than nice) if you could send the results to a PDF file. As we use PERL to go against data in our Data Warehouse for reports that our users run. I love it, data comes back 100's of times faster than the "canned" reporting apps that we have. The only problem is that users want to be able to print out their reports. We all know that HTML is not pretty when it comes to printing, to wide to long etc... column headers do not repeat on all pages etc...

As I said above, I was thinking about something that would take in account the font you want, the size you want, convert it into the resolution that the PDF module is wanting, find the maxium width of each column, and start laying out the data. Again you will have to check to make sure that you do not go off the edge of the page, and you will need to repeat report titles, and column headers on each page, add page numbers etc. I would think that a lot of people would need this kind thing, and would have bet money that it has been done already.


John Herbold

In reply to Re: Re: DBI to PDF by jwherbold
in thread DBI to PDF by jwherbold

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (2)
As of 2021-09-17 22:23 GMT
Find Nodes?
    Voting Booth?

    No recent polls found