Table spacing


Table spacing

Postby GThompson on Thu Jul 27, 2006 9:25 pm

We are using EasyPDF 3.30.0.497

We have a program that generates HTML from our data, then prints it with EasyPDF. The HTML contains tables.

If the property csHTML_TRFullPage is set to FALSE, the HTML prints correctly. If it is set to TRUE, we see a large gap between one table row and another in the middle of the page.

How can we eliminate this gap while keeping csHTML_TRFullPage set to TRUE?

Here is some simple code that will illustrate the problem.

The HTML is long, so at the end of the code I am including the same HTML that is formatted to make it easier to read.
--------------------------------------------------------------------------------
<%@ Language=VBScript %>
<%
dim PDF
set PDF = server.createobject("aspPDF.EasyPDF")
PDF.SiteLicense = "cmERDC"
PDF.License "C:\EasyPDF.lic"
PDF.Page "Letter", 0
PDF.SetMargins 54,54,54,54
PDF.SetPos 54,54
PDF.SetFont "F10", "10", ""
'**********************************************************************************************
'If you comment out the next line (keep table rows together on the same page) the page will print with correct spacing
PDF.SetProperty 250, true
'**********************************************************************************************
PDF.SetPos 54,54
varText= "<table cellspacing=0 cellpadding=0 style='adjust-width:no width:100%'><tr><td><table cellspacing=0 cellpadding=0 style='adjust-width:no width:100%'><tr><td colspan=2><strong>1.&nbsp; Please describe how you see your child.&nbsp; Tell what you most like, any concerns or needs.</strong> <br></td></tr><tr><td width='2%'></td><td width='98%'>ad ad ad fad fas dfa dasdf adf afd<br>asfd <br>adf<br> ad fasdfasdf asfd asd fa sdf asdf as fad fa sdf</td></tr></table></td></tr><tr><td><strong>2. Which of the following do you or other family members feel are important concerns or areas about which you would like more information?</strong> </td></tr><tr><td><strong>For your child:</strong> </td></tr><tr><td><table width='100%' cellspacing=0 cellpadding=0 style='adjust-width:no'><tr><td width='2%'></td><td width='98%'><table><tr><td><img height='16' width='16' src='images/X-box.gif'></td><td>getting around&nbsp;&nbsp;</td><td><img height='16' width='16' src='images/noX-box.gif'></td><td>communicating&nbsp;&nbsp;</td><td><img height='16' width='16' src='images/noX-box.gif'></td><td>learning&nbsp;&nbsp;</td></tr><tr><td><img height='16' width='16' src='images/X-box.gif'></td><td>eating, nutrition&nbsp;&nbsp;</td><td><img height='16' width='16' src='images/noX-box.gif'></td><td>sleeping&nbsp;&nbsp;</td><td><img height='16' width='16' src='images/noX-box.gif'></td><td>toilet learning&nbsp;&nbsp;</td></tr><tr><td><img height='16' width='16' src='images/noX-box.gif'></td><td>having fun w/other children&nbsp;&nbsp;</td><td><img height='16' width='16' src='images/noX-box.gif'></td><td>challenging behaviors/emotions&nbsp;&nbsp;</td><td><img height='16' width='16' src='images/noX-box.gif'></td><td>equipment or supplies&nbsp;&nbsp;</td></tr><tr><td><img height='16' width='16' src='images/noX-box.gif'></td><td>health or dental care&nbsp;&nbsp;</td><td><img height='16' width='16' src='images/noX-box.gif'></td><td>pain or discomfort&nbsp;&nbsp;</td><td><img height='16' width='16' src='images/noX-box.gif'></td><td>vision&nbsp;&nbsp;</td></tr><tr><td><img height='16' width='16' src='images/noX-box.gif'></td><td>hearing&nbsp;&nbsp;</td><td><img height='16' width='16' src='images/X-box.gif'></td><td>other ad ad af af afd as fas fa sfd a fda sfdas dfa sdf asdf asdf&nbsp;&nbsp;</td><td></td><td></td></tr></table></td></tr></table></td></tr><tr><td><strong>For your family:</strong> </td></tr><tr><td><table width='100%' cellspacing=0 cellpadding=0 style='adjust-width:no'><tr><td width='2%'></td><td width='98%'><table><tr><td><img height='16' width='16' src='images/X-box.gif'></td><td>meeting other families whose child has similar needs&nbsp;&nbsp;</td><td><img height='16' width='16' src='images/noX-box.gif'></td><td>planning/expectations for future&nbsp;&nbsp;</td></tr><tr><td><img height='16' width='16' src='images/X-box.gif'></td><td>finding a support group&nbsp;&nbsp;</td><td><img height='16' width='16' src='images/noX-box.gif'></td><td>information/ideas for brothers, sisters, friends, relatives, others&nbsp;&nbsp;</td></tr><tr><td><img height='16' width='16' src='images/noX-box.gif'></td><td>finding or working with doctors/other specialists&nbsp;&nbsp;</td><td><img height='16' width='16' src='images/X-box.gif'></td><td>coordinating child's medical care&nbsp;&nbsp;</td></tr><tr><td><img height='16' width='16' src='images/noX-box.gif'></td><td>coordinating/making appointments, dealing with agencies&nbsp;&nbsp;</td><td><img height='16' width='16' src='images/noX-box.gif'></td><td>learning about different services and how they work&nbsp;&nbsp;</td></tr><tr><td><img height='16' width='16' src='images/noX-box.gif'></td><td>information about available resources&nbsp;&nbsp;</td><td><img height='16' width='16' src='images/noX-box.gif'></td><td>information about specific special needs&nbsp;&nbsp;</td></tr><tr><td><img height='16' width='16' src='images/noX-box.gif'></td><td>explaining professional terms/roles&nbsp;&nbsp;</td><td><img height='16' width='16' src='images/noX-box.gif'></td><td>help with transportaiton (to school, appointsments, or vehicle adaptation)&nbsp;&nbsp;</td></tr><tr><td><img height='16' width='16' src='images/noX-box.gif'></td><td>finding child care&nbsp;&nbsp;</td><td><img height='16' width='16' src='images/noX-box.gif'></td><td>people who help in your home/care for your child so you can have a break&nbsp;&nbsp;</td></tr><tr><td><img height='16' width='16' src='images/noX-box.gif'></td><td>assistance with housing, clothing, jobs, food, telephone&nbsp;&nbsp;</td><td><img height='16' width='16' src='images/noX-box.gif'></td><td>assistance in obtaining funds for extra cost of child's special needs&nbsp;&nbsp;</td></tr><tr><td><img height='16' width='16' src='images/noX-box.gif'></td><td>help with insurance&nbsp;&nbsp;</td><td><img height='16' width='16' src='images/noX-box.gif'></td><td>information about recrational opportunities&nbsp;&nbsp;</td></tr><tr><td><img height='16' width='16' src='images/X-box.gif'></td><td>interpreter - language: adf asdf asdf&nbsp;&nbsp;</td><td><img height='16' width='16' src='images/noX-box.gif'></td><td>other&nbsp;&nbsp;</td></tr></table></td></tr></table></td></tr><tr><td><table width='100%' cellspacing=0 cellpadding=0 style='adjust-width:no'><tr><td colspan=2><strong>3.&nbsp; What type of help would you want for your child and family in the months or year ahead?</strong> <br></td></tr><tr><td width='2%'></td><td width='98%'>asf ad a fadfa<br>asfd as dfa sdfasdf<br>asd fas dfa sdfasdf</td></tr></table></td></tr><tr><td><table width='100%' cellspacing=0 cellpadding=0 style='adjust-width:no'><tr><td colspan=2><strong>4. What else do you think would be helpful for others to know about your child?&nbsp; About your family?</strong> <br></td></tr><tr><td width='2%'></td><td width='98%'>a sdfa fd adfa df asdf asfd asfdasdfasd asf<br>asdf as fdas fda sdf asdfasdf</td></tr></table></td></tr></table><BR>"
PDF.AddHTML varText
PDF.BinaryWrite 'works ok
set PDF = nothing
%>
---------------------------------------------------------------------------------


Formatted HTML:
HTML from aa:
<table cellspacing=0 cellpadding=0 style='adjust-width:no width:100%'>
<tr>
<td>
<table cellspacing=0 cellpadding=0 style='adjust-width:no width:100%'>
<tr>
<td colspan=2><strong>1.&nbsp; Please describe how you see your child.&nbsp; Tell what you most like, any concerns or needs.</strong> <br>
</td>
</tr>
<tr>
<td width='2%'>
</td>
<td width='98%'>ad ad ad fad fas dfa dasdf adf afd<br>asfd <br>adf<br> ad fasdfasdf asfd asd fa sdf asdf as fad fa sdf
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><strong>2. Which of the following do you or other family members feel are important concerns or areas about which you would like more information?</strong>
</td>
</tr>
<tr>
<td><strong>For your child:</strong>
</td>
</tr>
<tr>
<td>
<table width='100%' cellspacing=0 cellpadding=0 style='adjust-width:no'>
<tr>
<td width='2%'>
</td>
<td width='98%'>
<table>
<tr>
<td><img height='16' width='16' src='images/X-box.gif'></td>
<td>getting around&nbsp;&nbsp;</td>
<td><img height='16' width='16' src='images/noX-box.gif'></td>
<td>communicating&nbsp;&nbsp;</td>
<td><img height='16' width='16' src='images/noX-box.gif'></td>
<td>learning&nbsp;&nbsp;</td>
</tr>
<tr>
<td><img height='16' width='16' src='images/X-box.gif'></td>
<td>eating, nutrition&nbsp;&nbsp;</td>
<td><img height='16' width='16' src='images/noX-box.gif'></td>
<td>sleeping&nbsp;&nbsp;</td>
<td><img height='16' width='16' src='images/noX-box.gif'></td>
<td>toilet learning&nbsp;&nbsp;</td>
</tr>
<tr>
<td><img height='16' width='16' src='images/noX-box.gif'></td>
<td>having fun w/other children&nbsp;&nbsp;</td>
<td><img height='16' width='16' src='images/noX-box.gif'></td>
<td>challenging behaviors/emotions&nbsp;&nbsp;</td>
<td><img height='16' width='16' src='images/noX-box.gif'></td>
<td>equipment or supplies&nbsp;&nbsp;</td>
</tr>
<tr>
<td><img height='16' width='16' src='images/noX-box.gif'></td>
<td>health or dental care&nbsp;&nbsp;</td>
<td><img height='16' width='16' src='images/noX-box.gif'></td>
<td>pain or discomfort&nbsp;&nbsp;</td>
<td><img height='16' width='16' src='images/noX-box.gif'></td>
<td>vision&nbsp;&nbsp;</td>
</tr>
<tr>
<td><img height='16' width='16' src='images/noX-box.gif'></td>
<td>hearing&nbsp;&nbsp;</td>
<td><img height='16' width='16' src='images/X-box.gif'></td>
<td>other ad ad af af afd as fas fa sfd a fda sfdas dfa sdf asdf asdf&nbsp;&nbsp;</td>
<td></td>
<td></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><strong>For your family:</strong> </td>
</tr>
<tr>
<td>
<table width='100%' cellspacing=0 cellpadding=0 style='adjust-width:no'>
<tr>
<td width='2%'></td>
<td width='98%'>
<table>
<tr>
<td><img height='16' width='16' src='images/X-box.gif'></td>
<td>meeting other families whose child has similar needs&nbsp;&nbsp;</td>
<td><img height='16' width='16' src='images/noX-box.gif'></td>
<td>planning/expectations for future&nbsp;&nbsp;</td>
</tr>
<tr>
<td><img height='16' width='16' src='images/X-box.gif'></td>
<td>finding a support group&nbsp;&nbsp;</td>
<td><img height='16' width='16' src='images/noX-box.gif'></td>
<td>information/ideas for brothers, sisters, friends, relatives, others&nbsp;&nbsp;</td>
</tr>
<tr>
<td><img height='16' width='16' src='images/noX-box.gif'></td>
<td>finding or working with doctors/other specialists&nbsp;&nbsp;</td>
<td><img height='16' width='16' src='images/X-box.gif'></td>
<td>coordinating child's medical care&nbsp;&nbsp;</td>
</tr>
<tr>
<td><img height='16' width='16' src='images/noX-box.gif'></td>
<td>coordinating/making appointments, dealing with agencies&nbsp;&nbsp;</td>
<td><img height='16' width='16' src='images/noX-box.gif'></td>
<td>learning about different services and how they work&nbsp;&nbsp;</td>
</tr>
<tr>
<td><img height='16' width='16' src='images/noX-box.gif'></td>
<td>information about available resources&nbsp;&nbsp;</td>
<td><img height='16' width='16' src='images/noX-box.gif'></td>
<td>information about specific special needs&nbsp;&nbsp;</td>
</tr>
<tr>
<td><img height='16' width='16' src='images/noX-box.gif'></td>
<td>explaining professional terms/roles&nbsp;&nbsp;</td>
<td><img height='16' width='16' src='images/noX-box.gif'></td>
<td>help with transportaiton (to school, appointsments, or vehicle adaptation)&nbsp;&nbsp;</td>
</tr>
<tr>
<td><img height='16' width='16' src='images/noX-box.gif'></td>
<td>finding child care&nbsp;&nbsp;</td>
<td><img height='16' width='16' src='images/noX-box.gif'></td>
<td>people who help in your home/care for your child so you can have a break&nbsp;&nbsp;</td>
</tr>
<tr>
<td><img height='16' width='16' src='images/noX-box.gif'></td>
<td>assistance with housing, clothing, jobs, food, telephone&nbsp;&nbsp;</td>
<td><img height='16' width='16' src='images/noX-box.gif'></td>
<td>assistance in obtaining funds for extra cost of child's special needs&nbsp;&nbsp;</td>
</tr>
<tr>
<td><img height='16' width='16' src='images/noX-box.gif'></td>
<td>help with insurance&nbsp;&nbsp;</td>
<td><img height='16' width='16' src='images/noX-box.gif'></td>
<td>information about recrational opportunities&nbsp;&nbsp;</td>
</tr>
<tr>
<td><img height='16' width='16' src='images/X-box.gif'></td>
<td>interpreter - language: adf asdf asdf&nbsp;&nbsp;</td>
<td><img height='16' width='16' src='images/noX-box.gif'></td>
<td>other&nbsp;&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width='100%' cellspacing=0 cellpadding=0 style='adjust-width:no'>
<tr>
<td colspan=2><strong>3.&nbsp; What type of help would you want for your child and family in the months or year ahead?</strong> <br></td>
</tr>
<tr>
<td width='2%'></td>
<td width='98%'>asf ad a fadfa<br>asfd as dfa sdfasdf<br>asd fas dfa sdfasdf</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width='100%' cellspacing=0 cellpadding=0 style='adjust-width:no'>
<tr>
<td colspan=2><strong>4. What else do you think would be helpful for others to know about your child?&nbsp; About your family?</strong> <br></td>
</tr>
<tr>
<td width='2%'>
</td>
<td width='98%'>a sdfa fd adfa df asdf asfd asfdasdfasd asf<br>asdf as fdas fda sdf asdfasdf</td>
</tr>
</table>
</td>
</tr>
</table>
<BR>
[/img][/code]
G.Thompson
GThompson
 
Posts: 24
Joined: Fri Feb 25, 2005 11:36 pm
Location: Minnesota

Return to PDF

Who is online

Users browsing this forum: No registered users and 1 guest

cron

Fatal error: Not able to open ./cache/data_global.php in D:\Hosting\6480136\html\ForosBB3\includes\acm\acm_file.php on line 106