Hi I'm trying to print a crystal report to a network printer from an asp page. And when I try to I get a error. EXCEPTION: PRINT OUT. This is the code i'm using.....
set gconSQLServer = createObject("ADODB.connection")

Set session("oApp") = CreateObject("CrystalRuntime.Application")
Set session("oRpt") = session("oApp").OpenReport(path & reportname, 1)

session("oRpt").MorePrintEngineErrorMessages = False
session("oRpt").EnableParameterPrompting = False

Set oADORecordset = CreateObject("ADODB.Recordset")
Set oADORecordset = gconSQLServer.Execute("SQL statement")

Set oRptTable = session("oRpt").Database.Tables.Item(1)
oRptTable.SetDataSource oADORecordset, 3

session("oRpt").SelectPrinter "", "", "winspool,Ne00:,15,45"

session("oRpt").PrintOut False

The code works when it's in a vb script, but not from the asp page.

Can anyone help ???Please