Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vertical position in Word document
Message
From
05/07/2003 06:50:59
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Vertical position in Word document
Miscellaneous
Thread ID:
00807154
Message ID:
00807154
Views:
55
I am writing a program to create a report in Word using Word tables to list data. As I add a new table, I set the table and rows so neither break across pages.

However I find that what can happen is that the first row of a table (containing a the main header) can be at the bottom of one page and the rows of data on the next page! Is there a way around this problem?

I was thinking that if there was a way of checking the vertical position in a page, I could put in a page break before creating the table. Or is there an equivalent to a paragraph's KeepWithNext property?

I've tried using RelativeVerticalPosition & VerticalPosition without success. It seems to me there must be a way to work out where you are on a page as Word displays the line numbers as you cursor down the page. Maybe it's not available in the object model?

Thanks for any help,

Stewart
Next
Reply
Map
View

Click here to load this message in the networking platform