...

View Full Version : How do I generate HTML report



chikna
12-19-2007, 07:21 PM
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.

_Aerospace_Eng_
12-19-2007, 08:04 PM
Generate a report from what? In what language? More details are needed. We aren't psychic.

chikna
12-20-2007, 02:11 AM
Geeez... I figured it out and used CSS media option. I learned hard way!

chikna
12-20-2007, 07:53 PM
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.



<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>

Apostropartheid
12-21-2007, 10:09 PM
You haven't actually defined a border.

My print fonts go something like this:


font: 11pt/1.6 Calibri, Georgia, Palatino, Verdana, "Times New Roman", Times, serif;



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum