Seabass Posted July 22, 2010 Report Share Posted July 22, 2010 Anybody using ME to schedule Crystal Report to run and export report automatically ??? if you do, how do you manage the "wait for" the report to be populated with the data from the database ???? i have a macro setup, but somethimes the delay is just longer than what it takes to get the data in so it crashes my macro and do not finish the job.... also, every time i run the macro to test or design, it takes forever.. could i run step by step instead of waiting ??? Quote Link to comment Share on other sites More sharing options...
kevin Posted July 22, 2010 Report Share Posted July 22, 2010 Is the report written to a file? If so, use the Wait for File Ready command. Quote Link to comment Share on other sites More sharing options...
lemming Posted August 7, 2010 Report Share Posted August 7, 2010 I don't use Crystal Reports. Does it display a "wait for" window or dialog box? If so, you can just stick an If Window Not Running command in a loop with appropriate delays. Something like: Start Repeat 120 times If Window Not Running (Insert your window title here) Break Delay 500 ms End Repeat This example will run for a maximum of one minute (120 x .5 sec), and will exit the loop earlier if the specified window is not running. I'm assuming here that the "wait for" window will disappear. Quote Link to comment Share on other sites More sharing options...
acantor Posted August 11, 2010 Report Share Posted August 11, 2010 I don't use Crystal Reports either, but I am familiar with applications that reveal their status indirectly. If it's possible to infer that all fields are populated by visually inspecting the UI, then it should be possible to script a macro to watch for the condition. The two most likely ways to do this are: 1. Monitor the shape of the mouse pointer at position x, y. 2. Monitor the colour of the pixel at position x, y. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.