Word 2007 problem with NUMPAGES

P

Peter Karlström

Hi

I have read a lot of articles concerning NUMPAGES errors in documents from
as early versions as for Word 97.

I have developed a VB6 COM-Addin to a customer for Word XP, Word 2003 and
Word 2007, and in the client environment the pages is shown correctly after
some updates from the COM-Addin.

However, in the customers system for management of the documents, which is
web-based, a rendering function creates problems. The users can create
PDF-files from Word documents using a server component, and the rendered
document has wrong total number of pages.
So we have created a small Word COM-addin for the server to update the
document, and this works for most of the documents, but unfortunately not all.

One end-user says that he created a macro in one document and after that,
the error in number of pages disappeared for that document.

Could this make any difference, and if so, what is happening when a document
consists of macro code?
Is there a timing error that the existens of a macro helps solve?

This is a most enoying error, since it shouldn't even exist efter 12 years
of different Word versions.

Is there anybody out there who has a final and working solution?

Thanks in advance
 
C

Colbert Zhou [MSFT]

Hello Peter,

I am sorry about the inconvenience taken to you! I empathize the scenario
that may be some anoying.

What codes are included in the customer's Macro. Is it possible that the
Macro has some Document Open codes that may be collide with the COM-Addin's
updater codes? If you have both of the Macro codes and COM-AddIn, would you
mind posting the codes here or sending to me for future investigation?

Have a nice weekend!

Best regards,
Colbert Zhou
Microsoft Online Support Team
 
P

Peter Karlström

Hi Colbert

Thanks for your reply.
The code is just nonsence, like i = 3, and the event is even more strange,
it's placed in the Document_New event, and is therefore never executed.

Best Regards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top