Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prompt resolution in C# .NET application using MSTR SDK

Status
Not open for further replies.

miguel3000

Technical User
Jan 22, 2003
8
US
I'm creating a C# application that uses the MSTR SDK to run reports and haven't been able to run prompted reports yet. The ResolvePrompts event doesn't seem to be raised even though I think I've created all the necessary event handling code. Anyone with experience doing this please contact me. Sample code would be great.
 
I'm new at Microstrategy myself, but did you raise the ExecutionCancelled event? If this event fires, the RaisePrompt event may never fire (because execution was cancelled due to another error) and you won't know the difference unless you are monitoring the event.
 
I followed your suggestion and wrote handlers for all possible events... the only one that was raised was ProgressNotification, with the message "Server created job". Interestingly, the event was raised only when I paused the program (throught the debugger) for a few seconds after calling the Execute method. If I didn't pause it, no events were called.

In all cases, the IServer shows the report status "waiting for autoprompt"...

I may still be missing something, but I've looked and tested other examples of handling events raised by COM dll's, and the MSTR dll is the only one that fails.

Thanks for replying.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top