Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Counting output for page break/Getting document properties in VBS?

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,39202
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> Counting output for page break/Getting document properties in VBS?
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Counting output for page break/Getting document propert... - 10/26/2006 6:18:38 AM   
  LITTLERIC

 

Posts: 2
Score: 0
Joined: 10/26/2006
Status: offline
Looking for ideas on doing pixel count of content in a table row (DB-driven so it varies).  Want to be able to set a <BR> with page break when doing print output so table rows have clean breaks.

Anyone have experience reading properties from document model?  My tests so far aren't working.

Want to be able to do something like:

<tr id="ANAMEFORTHISROW"> (yadda yadda yadda) </tr>

...at THIS point want to return the document.ANAMEFORTHISROW.height property to VB and add to total.
If the total >= pagebreakpoint, the table is closed, page break written, new table/header written and resume with the next ...
 
<tr id="ANAMEFORNEXTROW"> etc.

Problem is getting the value from the document.ANAMEFORTHISROW.height back to the script.  I assume it's a syntax issue (as in the DOM it appears you can read a height property if the property is assigned to something that can be identified with ID=xxxx)

THANKS

 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> Counting output for page break/Getting document properties in VBS? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts