Discussion Locked

Word automation - error 5112

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have a Borland C++ program that creates Word documents based on a template.
This template runs VBA code to create a (large) report.
All works well, except for in about 1% of the cases: Word crashes with an error 5112.
I don't know whether it's the C++ code, the VBA code or the NT environment that causes this ?

7 replies

by stillatit

In VBA, a 5112 error is Format of memo file doesn't match specified external database format.

Word and the NT environment do not have a 5112 error which is relevant.

Check your C++ manual to see if Borland C++ can report an error with this number.

Good luck.

by guy.vertommen

In the meantime I found out that error 5112 means that "Word cannot complete the operation". The error message didn't help me either.

by guy.vertommen

"error 5112: Word cannot complete the operation". Howver there is no specification as to what operation.

by maxwell edison

Error 512 Occurs when setting the MaximizedTop property of a Subclasser object or PowerForm control to a negative value.

Maxwell

This discussion is closed to new replies.