Parametros
Publicado por Rodrigo (3 intervenciones) el 04/06/2008 20:21:10
al ejecutar un reporte que contine parametros se ejecuta todo bien, pero si luego ejecuto un reporte que no tenga parametros o formulas, me dice que: EL NOMBRE DE FORMULA NO EXISTE.
Creo que en alguna parte quedan activas las formulas de parametros o Formulas, pero no se como limpiar lo mensionado.
Adjunto ejemplo de como ejecuto el reporte uno y luego el reporte dos:
REPORTE UNO
'Ejecucion segundo reporte
Report_Server.WindowShowPrintSetupBtn = True
Report_Server.ReportFileName = "C:syg_sqlRptDocumentosOT_X_Fecha.rpt"
Report_Server.DiscardSavedData = True
Report_Server.StoredProcParam(0) = 1 '
Report_Server.Formulas(0) = "Usuario = " & Comillas(Usuario)
Report_Server.Action = 1
Report_Server.ReportFileName = ""
REPORTE DOS
'Ejecucion segundo reporte
Report_Server.WindowShowPrintSetupBtn = True
Report_Server.ReportFileName = "C:syg_sqlRptDocumentosOT_X_Fecha.rpt"
Report_Server.DiscardSavedData = True
Report_Server.Action = 1
Report_Server.ReportFileName = ""
Agradeceria cualquier ayuda.
Creo que en alguna parte quedan activas las formulas de parametros o Formulas, pero no se como limpiar lo mensionado.
Adjunto ejemplo de como ejecuto el reporte uno y luego el reporte dos:
REPORTE UNO
'Ejecucion segundo reporte
Report_Server.WindowShowPrintSetupBtn = True
Report_Server.ReportFileName = "C:syg_sqlRptDocumentosOT_X_Fecha.rpt"
Report_Server.DiscardSavedData = True
Report_Server.StoredProcParam(0) = 1 '
Report_Server.Formulas(0) = "Usuario = " & Comillas(Usuario)
Report_Server.Action = 1
Report_Server.ReportFileName = ""
REPORTE DOS
'Ejecucion segundo reporte
Report_Server.WindowShowPrintSetupBtn = True
Report_Server.ReportFileName = "C:syg_sqlRptDocumentosOT_X_Fecha.rpt"
Report_Server.DiscardSavedData = True
Report_Server.Action = 1
Report_Server.ReportFileName = ""
Agradeceria cualquier ayuda.
Valora esta pregunta


0