Controlling Column Heights

T

toddcarew

I have a database with 10 to 15 "stories" in it per "issue" of a
newsletter. I need the newsletter formated so that when it is printed
(from an online browser) it is presented in 2 columns on the page
approximatly 3.5" wide each.

I can set up the page so that there is the 2 columns with out
difficulty. The problem I am runnign into is wrapping the stories so
that they go down one column until the hit "the bottom of the page"
and then continue to the next column.

I also need to figure out if a story is longer then the column space
left on the second column. If so then I need to pring it on the next
page instead.


so, somehow I need to determine how :high" each story will be, word
wrapped, if I place it with a certain font and size into a 3.5 "
column.

Please feel fre to contact me or post code here if you know how this
is accomplished on an aspx page using C#
 
C

Chan Ming Man

Your database mean SQL 2005?

From what you describe probably it is better to do it in Microsoft
Publisher.

chanmm
 
T

toddcarew

Your database mean SQL 2005?

From what you describe probably it is better to do it in Microsoft
Publisher.

chanmm










- Show quoted text -

sorry it needs to be on the web dynamically
 
C

Chan Ming Man

You can actually try to render the table with 2 column dynamically like:

Response.Write("<span style=" & """font-size: 24pt; color: #0000cc""" &
"><Strong>Movie Lists</Strong></span>")
Response.Write("<Table Border=" & """1""" & ">")
Response.Write("<tr>")
Response.Write("<td align=" & """center""" & ">")
Response.Write("<font color=" & """#008000""" & ">")
Response.Write("Some text")
Response.Write("</font>")
Response.Write("</td>")

Think about it

chanmm
 
T

toddcarew

You can actually try to render the table with 2 column dynamically like:

Response.Write("<span style=" & """font-size: 24pt; color: #0000cc""" &
"><Strong>Movie Lists</Strong></span>")
Response.Write("<Table Border=" & """1""" & ">")
Response.Write("<tr>")
Response.Write("<td align=" & """center""" & ">")
Response.Write("<font color=" & """#008000""" & ">")
Response.Write("Some text")
Response.Write("</font>")
Response.Write("</td>")

Think about it

chanmm







- Show quoted text -

I knbow how to do that... this is a much more complicated
application. the first colum needs to print all the way down the
page.. when it reaches the bottom, it needs to then create a second
column on the page, perhaps continuing the storie, perhaps starting a
new one.

In the second conlumn, it needs to know how many "lines" are left and
decide if it should start the next story there or go onto the next page
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top