The Jscript code listed below comes from an asp script I am trying to run on Windows Server 2003. I receive the following error in my browser (Mozilla):
Microsoft JScript runtime error '800a01fb'
An exception occurred
/qa/test.asp, line 30
Line 30 is "crReport.Export(false);".
This same code works fine on Windows 2000 Server. Thanks for any assistance you can provide.
<%
var crApp = Server.CreateObject("CrystalRuntime.Application");
var crReport = crApp.OpenReport("d:/qa/test.rpt", 1);
crReport.EnableParameterPrompting = false;
crReport.MorePrintEngineErrorMessages = false;
if (crReport.Database.Tables.Count > 0) {
var crDBTable = crReport.Database.Tables.Item(1);
crDBTable.SetLogOnInfo(
/*ODBC Name*/ "Test",
/*DatabaseName*/ "",
/*UserID*/ "admin",
/*Password*/ "");
}
var exportOptions = crReport.ExportOptions;
exportOptions.HTMLFileName = "d:/qa/test.html";
exportOptions.FormatType = 25;
exportOptions.DestinationType = 1;
crReport.Export(false);
%>
mlmcc