troubleshooting Question

JSCRIPT error on Windows Server 2003, making call to craxdrt.dll

Avatar of rhopping
rhopping asked on
Crystal Reports
9 Comments1 Solution524 ViewsLast Modified:
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);
%>
ASKER CERTIFIED SOLUTION
modulo

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 9 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros