Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DBF2HTML

Status
Not open for further replies.

johnbuckley

Technical User
Mar 25, 2002
52
GB
I've been using DBF2HTML and GenHTML.prg to output data as a list table into a browser using code from the DoHtml sample. It works fine.

However the data grid displays with a grey background and doubled lines which doesn't fit with the rest of my displays.

I can change the background colour by altering it in the Prescript field of GenHTML.dbf

But I can't see how to alter the cell spacing in the DBF or in GenHTML.prg.

The HTML code generated is:

<body bgcolor=&quot;silver&quot;>
<table id=&quot;GenTable&quot; border=1 >

which for some reason displays with a cell spacing of 2 giving double lines.
I want to get:

<body bgcolor=&quot;white&quot;>
<table id=&quot;GenTable&quot; border=1 cellspacing=&quot;0&quot;>

which will give me single lines separating fields and records.

Does anyone know how to generate this please.
I don't want to have to edit the HTML before displaying it.

John
 
I had the same problem.. and the documentation regarding genhtml is nonexistant in regards to the issue.

I ended up using strtofile, which allowed me to setup tables and field names as I wanted w/ no problems..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top