Hi Andrey,
No it doesn't. Furthermore the paragraph is placed after a page break in
most cases. But I couldn't claim this.
This could be a clue. A manual page break is part of the paragraph that appears on the following
page. See if things function "as expected" when all manual page breaks are removed from (a copy
of) the document?
If that solves the problem, then you could format each paragraph that's currently linked with a
page break with "Page Break Before" (see Format/Paragraphs/Line and Page breaks).
range.Select();
application.ScreenRefresh();
float X =
(float) application.Selection.get Information(WdInformation.wdHorizontalPositionRelativeToPage);
float Y =
(float) application.Selection.get Information(WdInformation.wdVerticalPositionRelativeToPage);
this seems rather odd code to determine the first paragraph on a page... It only tells you the
location of the current selection. What's the purpose of making this determination?
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question or reply in the newsgroup
and not by e-mail
