Hi,

I need to create a range object that contains the entire document. This is
what I wrote in C#:
object start = 0; //start of document.

object end = docTemplate.Characters.Count; //end of document.

rngDoc1 = docTemplate.Range(ref start,ref end); //range object

Is this the correct way of doing it? Any help would be highly appreciated

Regards,

Wamiq Ansari

wamiq@msn.com

Re: Document Range containing Entire Document by Stefan

Stefan
Tue Jul 20 06:59:44 CDT 2004

You can get an entire Word document as a Range object by using the
Content property of the Document class.

--
Stefan Blom


"Wamiq Ansari" <wamiq@msn.com> wrote in message
news:%23NKJwKabEHA.1152@TK2MSFTNGP09.phx.gbl...
> Hi,
>
> I need to create a range object that contains the entire document.
This is
> what I wrote in C#:
> object start = 0; //start of document.
>
> object end = docTemplate.Characters.Count; //end of document.
>
> rngDoc1 = docTemplate.Range(ref start,ref end); //range object
>
> Is this the correct way of doing it? Any help would be highly
appreciated
>
> Regards,
>
> Wamiq Ansari
>
> wamiq@msn.com
>
>
>
>
>
>