Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_components thread: Trying to create Access Report


Message #1 by "Wally Burfine" <oopConsultant@h...> on Wed, 31 Jan 2001 23:08:26 -0000
Howdy y'll,



I'm getting the following error:



Server object error 'ASP 0196 : 80040154' 



Cannot launch out of process component 



/L2GDev/App/PrintReport.asp, line 6 



Only InProc server components should be used. If you want to use

LocalServer components, you must set the AspAllowOutOfProcComponents

metabase setting. Please consult the help file for important

considerations.



The Code is:



<%@ Language=VBScript%>

<%





dim objAccess

set objAccess = Server.CreateObject("Access.Application.9") <---Line 6

objAccess.DBEngine(0).OpenDatabase("G:\InetPub\wwwroot\Surveys\Data\CorpInfo2000.mdb")



	dim sMailID 

	dim stDocName

	

    sMailID = "KRAMERS@f..."

    stDocName = "qryRptScored_SUMMARY"

    'DoCmd.SendObject acSendReport, stDocName, "Rich Text Format",

sMailID, , , "Survey Summary", "Enclosed is a Summary Report of the

Evaluation you recently completed."



objAccess.SendObject acSendReport, stDocName, "Rich Text Format", sMailID,

, , "Survey Summary", "Enclosed is a Summary Report of the Evaluation you

recently completed."





%>



Does anybody have any GOOD thoughts about this?



Thanks

Wally Burfine


  Return to Index