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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Impromptu Macro Busy Server message

Status
Not open for further replies.

riverar

Programmer
Nov 16, 2005
2
US
When I run my macro it opens a Impromptu session and runs the desired report. Once the report is completed it give me a Server Busy message and unless I click on Switch To the macro will not complete.

What causes this and how can I correct my macro to avoid this error message?
 
Sure. It seems to stop responding when it is going to save the report.

******************
Dim objImpApp as Object
Dim objImpRep as Object
Dim DepositDate as String
Dim objPDFPub as Object

Set objImpApp = CreateObject("CognosImpromptu.Application")
Set objImpRep = CreateObject("CognosImpromptu.Application")
'Open an Impromptu session
objImpApp.Visible TRUE 'make Impromptu visible


'Open Catalog
objImpApp.OpenCatalog "G:\COGNOS\enQuestaCatalog\hilldb.cat","Creator"
DepositDate = DateTime
PromptString = Format(DepositDate,"YYYY/MM/DD")

Set objImpRep = objImpApp.OpenReport("G:\Distributed Processing\Projects\Iq_Impromptu_enQuesta\AnnLongo\DailyDepositReceived.imr",PromptString)
objImpRep.RetrieveAll
Set objPDFPub = objImpRep.PublishPDF
objPDFPub.Publish "G:\Distributed Processing\Projects\Iq_Impromptu_enQuesta\AnnLongo\DailyDepositReceived.pdf"

objImpRep.CloseReport
objImpApp.Quit
Set objImpRep = Nothing
Set objImpApp = Nothing
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top