Hi
Thanks for the reply Shauna Kelly.
actualy my program read one word doc (cotain some 200+
pages) and taken single page and open a another word doc
and paste it and then save the new doc as HTML.
here the code,
objword - my main doc contain 200 pages
ObjwordTarget - my target word doc. which contain each
time one page. i am save this file to HTML.
Code:
Objword.ActiveDocument.Bookmarks("\page").Range.Copy
ObjwordTarget.Documents.Add.Content.Paste
ObjwordTarget.ActiveDocument.SaveAs
FileName:=txtTitlePath.Text & "Pages" & DocNum & ".HTM",
FileFormat:=wdFormatHTML
so it will go through the for loop. here i am converted
the objword doc to ConvertNumbersToText. but still the
HTML pages the numbers reassinged. pls help me..
Thanks
balakumar
>-----Original Message-----
>Hi Balakumar
[quoted text clipped - 3 lines]
>
>However, bear in mind that this is a one-way street. You can't convert the numbers back into automatic numbering.
So if you need to
>use the Word document again, don't save it after you've converted the numbers to text.
>
[quoted text clipped - 33 lines]
>
>.
Shauna Kelly - 09 Sep 2003 09:34 GMT
Hi Balakumar
You would have to convert the numbers before copying and pasting. Something like this:
1. Open the source document.
2. In the source document, convert all numbers to text.
3. Loop through the pages of the source document, getting each one's text. Copy and paste the text to a new document.
4. Close the source document without saving changes.
Hope this helps.
Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word
Melbourne, Australia
> Hi
>
[quoted text clipped - 77 lines]
> >
> >.
Balakumar - 09 Sep 2003 16:53 GMT
Hi Shauna Kelly
Thanks for the reply Shauna Kelly.
i am converting all numbers to text before copying only.
still i didnt get the result.the pasted doc numbers get
re-assinged.what to do? pls help me..
Thanks
bala
>-----Original Message-----
>Hi Balakumar
[quoted text clipped - 4 lines]
>2. In the source document, convert all numbers to text.
>3. Loop through the pages of the source document, getting each one's text. Copy and paste the text to a new
document.
>4. Close the source document without saving changes.
>
[quoted text clipped - 87 lines]
>
>.
Shauna Kelly - 09 Sep 2003 22:34 GMT
Hi Bala
I don't think I can help you further. After you do ActiveDocument.ConvertNumbersToText, you should have no numbering information in
the document. It should be just text and should copy as text.
But ... make sure that the heading styles in the output document don't have numbering attached to their styles.
Hope this helps.
Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word
Melbourne, Australia
> Hi Shauna Kelly
>
[quoted text clipped - 121 lines]
> >
> >.
Balakumar - 11 Sep 2003 18:04 GMT
Hi Shauna Kelly,
Thanks for the reply.
look at this article
http://support.microsoft.com/default.aspx?scid=kb;en-
us;119128
The same problem which i am facing in my program.
Thanks
balakumar
>-----Original Message-----
>Hi Bala
>
>I don't think I can help you further. After you do ActiveDocument.ConvertNumbersToText, you should have no
numbering information in
>the document. It should be just text and should copy as text.
>
[quoted text clipped - 133 lines]
>
>.
Shauna Kelly - 12 Sep 2003 01:59 GMT
Hi balakumar
Can I suggest that you first try doing this manually? That is:
1. Open the source document.
2. In the Immediate Pane in the VBE, type ActiveDocument.ConvertNumbersToText and press Enter.
3. Go back to your source document. You should see the correct numbers in that source document. But they won't be automatic numbers
that update as you add or delete paragraphs.
4. Create a new document (the output document).
5. Copy some text from the source document.
6. Paste it into the output document.
In the output document, are the numbers correct?
Hope this helps.
Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word
Melbourne, Australia
> Hi Shauna Kelly,
>
[quoted text clipped - 169 lines]
> >
> >.
Balakumar - 12 Sep 2003 16:49 GMT
Hi Shauna Kelly,
Thanks for the reply.
sorry. the numbers i mention was its heading levels. like
heading 1,heading 2,etc.
For ex:
In my first page i have contain
Heading 1 - some value
---- some text
---- some text
1. Heading 2 - some value
---- some text
---- some text
< ---- My first page over --- >
- here my second page
---- some text
---- some text
2. Heading 2 - some value
actuly i am doing this programmaticaly using vb. but i
tried it in manualy also. it wont work out. i write a one
macro using ActiveDocument.ConvertNumbersToText. after
the convertion i just copy the second page and paste it
to a new page.
it contain
---- some text
---- some text
1. Heading 2 - some value
- the 2 is changed to 1.
- i dont know where i am doing mistake.
Thanks for your help.
-Balakumar
>-----Original Message-----
>Hi balakumar
[quoted text clipped - 6 lines]
>
>3. Go back to your source document. You should see the correct numbers in that source document. But they won't
be automatic numbers
>that update as you add or delete paragraphs.
>
[quoted text clipped - 187 lines]
>
>.
Shauna Kelly - 14 Sep 2003 01:48 GMT
Hi Balakumar
I don't think I can help you further with this one. Maybe try posting in microsoft.public.word.vba.general.
Shauna
Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word
Melbourne, Australia
> Hi Shauna Kelly,
>
[quoted text clipped - 258 lines]
> >
> >.