Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Numbering / September 2003

Tip: Looking for answers? Try searching our database.

word numbering prob

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Balakumar - 05 Sep 2003 21:53 GMT
hi
i have the word doc contain 200 pages with heading style
1,2,3,4.
my vb program converts this word doc in to html pages.
each page seperated into single html file. the problem
was, once the conversation done the numbering re-assinged
in a HTML Pages. i need to maintain the numbers same as
word doc. how to do?

for ex:

in my WORD doc,

like in my first page contains the heading 1.1,1.2

in my second page contains 1.3.1.4,15

after the conversation as HTML page

the second page look like 1.1,1.2.1.3 like that.

and also i need that heading style for further action.

pls help me..

thanks
balakumar
Shauna Kelly - 06 Sep 2003 05:38 GMT
Hi Balakumar

Before converting to HTML, you can convert all numbering to text. To do that:
   ActiveDocument.ConvertNumbersToText

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.

Hope this helps.

Shauna Kelly.  Microsoft MVP.
http://www.shaunakelly.com/word
Melbourne, Australia

> hi
> i have the word doc contain 200 pages with heading style
[quoted text clipped - 23 lines]
> thanks
> balakumar
Balakumar - 09 Sep 2003 01:43 GMT
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]
> >
> >.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.