PDA

View Full Version : html print



SonHouse
02-28-2004, 02:32 PM
I'm trying to add a footnote to my program printouts that would include the company name, web site etc. I have a web object that preloads the correct information in html tables, that will print fine...but when I tried to add a table at the bottom of the page to include the footnote info, the html keeps pushing the 2nd table to the right of the first instead of below. I know basic html and added the breaks, <BR>, in between but that doesn't seem to help. I'm probably missing something simple but can't seem to figure it out...any ideas?

Corey
02-28-2004, 02:58 PM
I can help you fix it if you post the .html page.

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

SonHouse
02-28-2004, 04:21 PM
Hi Corey...thanks for your reply...here is a sample of the code.

TextFile.WriteFromString(DestFolder.."\\"..HtmlPageName..".htm", '<TABLE BORDER="0" WIDTH="100%">', true);
TextFile.WriteFromString(DestFolder.."\\"..HtmlPageName..".htm", '<TR>', true);
TextFile.WriteFromString(DestFolder.."\\"..HtmlPageName..".htm", '<TD WIDTH="60%">Name:</TD>', true);
TextFile.WriteFromString(DestFolder.."\\"..HtmlPageName..".htm", '<TD>Date:</TD></TR></TABLE>', true);
TextFile.WriteFromString(DestFolder.."\\"..HtmlPageName..".htm", '<HR>', true);
TextFile.WriteFromString(DestFolder.."\\"..HtmlPageName..".htm", '<HR>', true);
TextFile.WriteFromString(DestFolder.."\\"..HtmlPageName..".htm", '<BR><BR>', true);


TextFile.WriteFromString(DestFolder.."\\"..HtmlPageName..".htm", '<p></p>\r\n', true);
TextFile.WriteFromString(DestFolder.."\\"..HtmlPageName..".htm", '<TABLE WIDTH="50%" BORDER="1" ALIGN="LEFT">', true);
TextFile.WriteFromString(DestFolder.."\\"..HtmlPageName..".htm", '<TR ALIGN="LEFT" VALIGN="TOP">', true);
TextFile.WriteFromString(DestFolder.."\\"..HtmlPageName..".htm", '<TD ALIGN="LEFT" VALIGN="MIDDLE" WIDTH="10%">1.</TD>', true);
TextFile.WriteFromString(DestFolder.."\\"..HtmlPageName..".htm", '<TD WIDTH="15%"></TD>', true);
TextFile.WriteFromString(DestFolder.."\\"..HtmlPageName..".htm", '<TD WIDTH="15%">'..x[1]..'</TD></TR>', true);
TextFile.WriteFromString(DestFolder.."\\"..HtmlPageName..".htm", '<TR ALIGN="LEFT" VALIGN="TOP">', true);

TextFile.WriteFromString(DestFolder.."\\"..HtmlPageName..".htm", '<TD ALIGN="LEFT" VALIGN="MIDDLE" WIDTH="10%"></TD>', true);
TextFile.WriteFromString(DestFolder.."\\"..HtmlPageName..".htm", '<TD WIDTH="15%">'..sign..'</TD>', true);
TextFile.WriteFromString(DestFolder.."\\"..HtmlPageName..".htm", '<TD WIDTH="15%">'..y[1]..'</TD></TR>', true);
TextFile.WriteFromString(DestFolder.."\\"..HtmlPageName..".htm", '<TR ALIGN="LEFT" VALIGN="TOP">', true);

TextFile.WriteFromString(DestFolder.."\\"..HtmlPageName..".htm", '<TD ALIGN="LEFT" VALIGN="MIDDLE" WIDTH="10%"></TD>', true);
TextFile.WriteFromString(DestFolder.."\\"..HtmlPageName..".htm", '<TD WIDTH="15%"></TD>', true);
TextFile.WriteFromString(DestFolder.."\\"..HtmlPageName..".htm", '<TD WIDTH="15%"><HR></TD></TR>', true);
TextFile.WriteFromString(DestFolder.."\\"..HtmlPageName..".htm", '<TR ALIGN="LEFT" VALIGN="TOP">', true);

TextFile.WriteFromString(DestFolder.."\\"..HtmlPageName..".htm", '<TD ALIGN="LEFT" VALIGN="MIDDLE" WIDTH="10%"></TD>', true);
TextFile.WriteFromString(DestFolder.."\\"..HtmlPageName..".htm", '<TD WIDTH="15%"></TD>', true);
TextFile.WriteFromString(DestFolder.."\\"..HtmlPageName..".htm", '<TD WIDTH="15%">'..z[1]..'</TD></TR>', true);
TextFile.WriteFromString(DestFolder.."\\"..HtmlPageName..".htm", '<TR ALIGN="LEFT" VALIGN="TOP">', true);

TextFile.WriteFromString(DestFolder.."\\"..HtmlPageName..".htm", '<TD ALIGN="LEFT" VALIGN="MIDDLE" WIDTH="10%"></TD>', true);
TextFile.WriteFromString(DestFolder.."\\"..HtmlPageName..".htm", '<TD WIDTH="15%"></TD>', true);
TextFile.WriteFromString(DestFolder.."\\"..HtmlPageName..".htm", '<TD WIDTH="15%">'..c[1]..'</TD></tr></table><br><br>\r\n', true);
TextFile.WriteFromString(DestFolder.."\\"..HtmlPageName..".htm", '<p></p>\r\n', true);
TextFile.WriteFromString(DestFolder.."\\"..HtmlPageName..".htm", '<BR><TABLE BORDER="1">', true);
TextFile.WriteFromString(DestFolder.."\\"..HtmlPageName..".htm", '<BR><BR><br><br>', true);
TextFile.WriteFromString(DestFolder.."\\"..HtmlPageName..".htm", '<TR>', true);
TextFile.WriteFromString(DestFolder.."\\"..HtmlPageName..".htm", '<TD WIDTH="60%">www.company.com</TD>', true);
TextFile.WriteFromString(DestFolder.."\\"..HtmlPageName..".htm", '<TD>company name</TD></TR></TABLE></p>', true);

SonHouse
02-28-2004, 08:30 PM
Corey,

I think I figured it out....thanks.

Corey
02-28-2004, 08:39 PM
Cool! Glad to hear that, I just came in to fix it for you now but I must say that's excellent news, now I can go work on some other site stuff. :)

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)