A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Tables
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

NESTING - DOES ANYBODY KNOW??



 
 
Thread Tools Display Modes
  #1  
Old September 4th, 2004, 07:46 AM
Pat Garard
external usenet poster
 
Posts: n/a
Default NESTING - DOES ANYBODY KNOW??

G'Day All,

Is there a smart way to locate, within a long document, tables
and/or text boxes that happen to be 'nested'?

I am trying to create an MSReader eBook, and it falls over
because of nested tables or text boxes.
--
Regards,
Pat Garard
Australia

______________________________________


  #2  
Old September 4th, 2004, 11:57 AM
Jezebel
external usenet poster
 
Posts: n/a
Default

Iterate the tables of the document; in each case check the .NestingLevel
property: if that is 1 the table is nested.


"Pat Garard" apgarardATbigpondPERIODnetPERIODau wrote in message
...
G'Day All,

Is there a smart way to locate, within a long document, tables
and/or text boxes that happen to be 'nested'?

I am trying to create an MSReader eBook, and it falls over
because of nested tables or text boxes.
--
Regards,
Pat Garard
Australia

______________________________________




  #3  
Old September 5th, 2004, 12:05 AM
Pat Garard
external usenet poster
 
Posts: n/a
Default

Ah.... Jezebel,

Thank you! - Any ideas on Text Boxes?
--
Regards,
Pat Garard
Australia

______________________________________

"Jezebel" wrote in message
...
Iterate the tables of the document; in each case check the .NestingLevel
property: if that is 1 the table is nested.


"Pat Garard" apgarardATbigpondPERIODnetPERIODau wrote in message
...
G'Day All,

Is there a smart way to locate, within a long document, tables
and/or text boxes that happen to be 'nested'?

I am trying to create an MSReader eBook, and it falls over
because of nested tables or text boxes.
--
Regards,
Pat Garard
Australia

______________________________________






  #4  
Old September 5th, 2004, 03:03 AM
Jezebel
external usenet poster
 
Posts: n/a
Default



Thank you! - Any ideas on Text Boxes?
--


Pat, this question is a tad cryptic. I have lots of ideas on Text Boxes;
most of them obscure, unprintable, and of extremely dubious relevance ...

Textboxes can't be nested (in W2000, anyway). They may overlap -- so that
graphically they have the appearance of nesting -- but the range to which a
textbox is anchored must be part of the MainStory or a Header/Footer. You
can't anchor a textbox to a paragraph within a textbox.


  #5  
Old September 7th, 2004, 11:59 AM
Pat Garard
external usenet poster
 
Posts: n/a
Default

Wow Jezebel!

I can nest a Table OR a Text Box into a Table.
I can nest a Table into a Text Box (but that
table may not then contain another Text Box).

I need to be able to detect all such nestings.
--
Regards,
Pat Garard
Australia

______________________________________

"Jezebel" wrote in message
...


Thank you! - Any ideas on Text Boxes?
--


Pat, this question is a tad cryptic. I have lots of ideas on Text Boxes;
most of them obscure, unprintable, and of extremely dubious relevance ...

Textboxes can't be nested (in W2000, anyway). They may overlap -- so that
graphically they have the appearance of nesting -- but the range to which
a
textbox is anchored must be part of the MainStory or a Header/Footer. You
can't anchor a textbox to a paragraph within a textbox.




  #6  
Old September 7th, 2004, 11:59 AM
Pat Garard
external usenet poster
 
Posts: n/a
Default

Wow Jezebel!

I can nest a Table OR a Text Box into a Table.
I can nest a Table into a Text Box (but that
table may not then contain another Text Box).

I need to be able to detect all such nestings.
--
Regards,
Pat Garard
Australia

______________________________________

"Jezebel" wrote in message
...


Thank you! - Any ideas on Text Boxes?
--


Pat, this question is a tad cryptic. I have lots of ideas on Text Boxes;
most of them obscure, unprintable, and of extremely dubious relevance ...

Textboxes can't be nested (in W2000, anyway). They may overlap -- so that
graphically they have the appearance of nesting -- but the range to which
a
textbox is anchored must be part of the MainStory or a Header/Footer. You
can't anchor a textbox to a paragraph within a textbox.




  #7  
Old September 7th, 2004, 01:44 PM
Jezebel
external usenet poster
 
Posts: n/a
Default

You need to make a distinction between nesting and anchoring. I don't know
the detailed answer to this -- you'll need to do some experimenting, I
guess.

You can work out where textboxes are anchored by looking at the shape's
Anchor property -- this is a reference to the range (ie paragraph) to which
the shape is attached -- you can then check that Range's Information()
property to work out if you are anchored to a paragraph within a table.

Not sure what's the most efficient way to pick if a table is within a
textbox. For one thing, tables in textboxes are not members of the
ActiveDocument.Tables collection, so simply iterating the tables collection
won't encounter them anyway. To find tables within textboxes you could
iterate the activedocument.StoryRanges(wdTextFrameStory).Table s collection.
Does that help?

Perhaps for your purpose, dealing with the distinct StoryRanges as separate
entities might be the best approach.





"Pat Garard" apgarardATbigpondPERIODnetPERIODau wrote in message
...
Wow Jezebel!

I can nest a Table OR a Text Box into a Table.
I can nest a Table into a Text Box (but that
table may not then contain another Text Box).

I need to be able to detect all such nestings.
--
Regards,
Pat Garard
Australia

______________________________________

"Jezebel" wrote in message
...


Thank you! - Any ideas on Text Boxes?
--


Pat, this question is a tad cryptic. I have lots of ideas on Text Boxes;
most of them obscure, unprintable, and of extremely dubious relevance

....

Textboxes can't be nested (in W2000, anyway). They may overlap -- so

that
graphically they have the appearance of nesting -- but the range to

which
a
textbox is anchored must be part of the MainStory or a Header/Footer.

You
can't anchor a textbox to a paragraph within a textbox.






  #8  
Old September 7th, 2004, 01:44 PM
Jezebel
external usenet poster
 
Posts: n/a
Default

You need to make a distinction between nesting and anchoring. I don't know
the detailed answer to this -- you'll need to do some experimenting, I
guess.

You can work out where textboxes are anchored by looking at the shape's
Anchor property -- this is a reference to the range (ie paragraph) to which
the shape is attached -- you can then check that Range's Information()
property to work out if you are anchored to a paragraph within a table.

Not sure what's the most efficient way to pick if a table is within a
textbox. For one thing, tables in textboxes are not members of the
ActiveDocument.Tables collection, so simply iterating the tables collection
won't encounter them anyway. To find tables within textboxes you could
iterate the activedocument.StoryRanges(wdTextFrameStory).Table s collection.
Does that help?

Perhaps for your purpose, dealing with the distinct StoryRanges as separate
entities might be the best approach.





"Pat Garard" apgarardATbigpondPERIODnetPERIODau wrote in message
...
Wow Jezebel!

I can nest a Table OR a Text Box into a Table.
I can nest a Table into a Text Box (but that
table may not then contain another Text Box).

I need to be able to detect all such nestings.
--
Regards,
Pat Garard
Australia

______________________________________

"Jezebel" wrote in message
...


Thank you! - Any ideas on Text Boxes?
--


Pat, this question is a tad cryptic. I have lots of ideas on Text Boxes;
most of them obscure, unprintable, and of extremely dubious relevance

....

Textboxes can't be nested (in W2000, anyway). They may overlap -- so

that
graphically they have the appearance of nesting -- but the range to

which
a
textbox is anchored must be part of the MainStory or a Header/Footer.

You
can't anchor a textbox to a paragraph within a textbox.






  #9  
Old September 7th, 2004, 10:47 PM
Pat Garard
external usenet poster
 
Posts: n/a
Default

G'Day All,

The product I am using is OverDrive ReaderWorks.

Their support now tell me that the 'unusual' nesting is
sometimes carried out by Word during a 'Save As...'
to HTML format.

This means that the 'nesting' is often NOT found in
the DOC format........

(to be continued..........(maybe).)
--
Regards,
Pat Garard
Australia

______________________________________

"Pat Garard" apgarardATbigpondPERIODnetPERIODau wrote in message
...
G'Day All,

Is there a smart way to locate, within a long document, tables
and/or text boxes that happen to be 'nested'?

I am trying to create an MSReader eBook, and it falls over
because of nested tables or text boxes.
--
Regards,
Pat Garard
Australia

______________________________________



  #10  
Old September 7th, 2004, 10:47 PM
Pat Garard
external usenet poster
 
Posts: n/a
Default

G'Day All,

The product I am using is OverDrive ReaderWorks.

Their support now tell me that the 'unusual' nesting is
sometimes carried out by Word during a 'Save As...'
to HTML format.

This means that the 'nesting' is often NOT found in
the DOC format........

(to be continued..........(maybe).)
--
Regards,
Pat Garard
Australia

______________________________________

"Pat Garard" apgarardATbigpondPERIODnetPERIODau wrote in message
...
G'Day All,

Is there a smart way to locate, within a long document, tables
and/or text boxes that happen to be 'nested'?

I am trying to create an MSReader eBook, and it falls over
because of nested tables or text boxes.
--
Regards,
Pat Garard
Australia

______________________________________



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How many form nesting levels? Bam Bam General Discussion 1 July 7th, 2004 10:06 PM
Nesting limit Steve Bursach Worksheet Functions 8 May 14th, 2004 07:25 PM
Nesting Levels Retail Mike Worksheet Functions 1 January 3rd, 2004 05:24 AM
Nesting a nested function with {..} Dave R. Worksheet Functions 0 November 8th, 2003 01:09 AM
Nesting a nested function with {..} Mico Llanos Worksheet Functions 0 November 8th, 2003 01:01 AM


All times are GMT +1. The time now is 05:54 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.