![]() |
Telelogic System Architect (steve huntington) | ![]() |
Topic Title: VB Report Macro error Topic Summary: Created On: 21-Apr-2006 19:07 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Anyone experienced/solved this...? We have a customized macro (created by SA Consultants) which generates a Word report document. The generated document would be in excess of 1000 pages. However, we get a run-time error ("Visual Basic Run-time Error 4198: Command failed") at page 780. Our report document has about 70 figures and alot of formatting. I've searched the web for resolutions and have been unable to fix this error... |
|
![]() |
|
![]() |
|
When you're generating the document, maybe you could add a line to turn off pagination until the thing finishes writing data. I've had similar problems with Excel macros and relcalculation. I'm not sure it's even an option in the Word object library.
If you haven't already, you may want to see that the action when it hangs can be done through a standard Word export, or you may try to create separate documents with each major section or every X definitions/diagrams (a line or two inserted into the top of the for/next loop you're likely using). 1000 pages with heavy graphics and formatting is a pretty big file, so your suspicion is probably correct that there's a limit. |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.