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 5 of 5
  1. #1
    New Coder
    Join Date
    Nov 2007
    Posts
    71
    Thanks
    9
    Thanked 0 Times in 0 Posts

    How do I generate HTML report

    I would like to generate a report like Vendor No, Vendor Name, Address, City, State. I would like to view it and print it. Is there a sample or a link would be helpful.

    Thanks.

  • #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
    Generate a report from what? In what language? More details are needed. We aren't psychic.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New Coder
    Join Date
    Nov 2007
    Posts
    71
    Thanks
    9
    Thanked 0 Times in 0 Posts
    Geeez... I figured it out and used CSS media option. I learned hard way!

  • #4
    New Coder
    Join Date
    Nov 2007
    Posts
    71
    Thanks
    9
    Thanked 0 Times in 0 Posts
    Here is my code and used CSS to view and print. I have few issues:

    Table border (around and columns) not printing.

    COLGRP does not work in FireFox. What is alternate approach?

    Is there a good FONT to use for printing?

    Thanks.

    Code:
    <html>
    <head>
    <title>TEST</title>
    <style type="text/css">
    <!--
    .centeredtitle {font-weight: Bold; font-size: 13pt; text-align: center }
    
    .printtext {display: none;}
    
    body {
         font-family: sans-serif;
         font-size: 10pt;
    }
    -->
    </style>
    
    <style type="text/css" media="print">
    <!---
    h1 {
        font-size: 14pt;
        color: #000000;
    }
    
    body {
     font-family: sans-serif;
     font-size: 10pt;
     color: #000000;
     background-color: #FFFFFF;
    }
    
    .printtext {display: block;}
    
    -->
    </style>
    
    </head>
    
    <body>
    
    <div class=Centeredtitle>730  -  ABC COMPANY - INVENTORY LIST</div>
    <br>
    <table cellspacing=1 cellpadding=0 border=1>
    <colgroup>
       <col width="8%"/>
       <col width="40%"/>
       <col width="15%"/>
       <col span="4" width="10%" style="text-align: right"/>
    </colgroup>
    <thead>
    
    <tr>
      <td>Stock</td>
      <td>Description</td>
      <td>MFG No</td>
      <td>WH OH</td>
      <td>ST OH</td>
      <td>WH Count</td>
    
      <td>ST Count</td>
    </tr>
    </thead>
    
    <tr>
       <td>47203</td>
       <td>20Z BAG OF BONES-4-5"</td>
       <td>20975</td>
       <td>&nbsp</td>
    
       <td>-1</td>
       <td>&nbsp</td>
       <td>&nbsp</td>
    </tr>
    
    </body>
    </html>

  • #5
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    You haven't actually defined a border.

    My print fonts go something like this:
    Code:
    font: 11pt/1.6 Calibri, Georgia, Palatino, Verdana, "Times New Roman", Times, serif;


  •  

    Posting Permissions

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