Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/08/2008, 09:50
Avatar de palomahayes
palomahayes
 
Fecha de Ingreso: febrero-2008
Mensajes: 63
Antigüedad: 16 años, 2 meses
Puntos: 0
asp y crystal report

holas holas!!

bueno, pues... como estan?
espero que bien y no como yo que estoy echa un lio!!!

resulta que me jefe me dejo un reporte en crystal report, yo tengo el crystal report enterprise 9

siempre he tenido problemas con esos reportes


tengo una pagina de asp que todo lo que tiene es la fecha de hoy y un boton que al darle click me trae el "generador.asp" que es el que trae adentro mi reporte.

no le quiero mandar parametros ni nada, en el reporte de crystal, me trae como que una consulta... de cuales empleados han hecho una encuesta obligatoria...

pero yo necesito verlo para mandarselo a otra compañera o que ella lo vea automaticamente cuando abra el asp de que tiene el boton y la fecha de hoy

el problema es que nooooooo abreeeeeee!!! ya lo intente poniendo esto en el generador.

Código PHP:
<%
<!-- 
#include file="AlwaysRequiredSteps.asp" --> 
reportname "Avance_Captura.rpt"
%>
<!-- 
#include file="AlwaysRequiredSteps.asp" --> 
<!-- #include file="ActiveXViewer.asp" --> 

con este generador no se ve el reporte.... :(
tengo sus respectivos archivos que necesita, excepto el MoreRequiredSteps.asp que no lo tengo en la pc

tambien basandome en otros generadores que tengo... que no hice yo, los hizo otra chica...
Código PHP:
<%@ LANGUAGE="VBSCRIPT" %>

<%
'******************************************************
'
Creado por 
'Fecha de creación: 
'
******************************************************
IntranetPath "../"
%>
<!--
#include file="../Library/Utils.inc"-->

<HTML>
<
HEAD>
    <
TITLE>Reporte</TITLE>
</
HEAD>
<
BODY bgcolor=C6C6C6 >

<%
'===================================================================
This line creates a string variable called Reporte that we will use to pass
' the Crystal Report filename (.rpt file) to the OpenReport method contained in 
the AlwaysRequiredSteps.asp.
'===================================================================================
RASFilesPath = IntranetPath & "CrystalRAS/"
reporte = "Avance_Captura.rpt"
Reportname=reporte
%>
<%
'
==================================================================
' ALWAYS REQUIRED STEPS (CREATING THE REPORT CLIENT DOC OBJECT)
'
==================================================================
%>       
                                             
<!-- 
#include file="../CrystalRAS/AlwaysRequiredSteps.asp" -->
<%
'==================================================================
LOGGING ON TO DATABASE
'==================================================================

'
Log on to the database (works even if report contains subreports)
Session("oClientDoc").DatabaseController.Logon "IntraDEO""deop"

'==================================================================
WORKING WITH DISCRETE PARAMETERS
'==================================================================
Private Sub PassParameter(strParamName, ParamValue)

    '
Determine the index position of the parameter in the report
    ParamIndex 
Session("oClientDoc").DataDefinition.ParameterFields.Find(strParamName0)

    
'Get parameter in the report at the position ParamIndex
    Set objParam = Session("oClientDoc").DataDefinition.ParameterFields.Item(ParamIndex)

    '
Clone the parameter object so we can modify it
    Set objNewParam 
objParam.Clone

    
'Add parameter field value to this object
    objNewParam.CurrentValues.Add ParamValue

    '
Insert the modified parameter back into the report
    Session
("oClientDoc").DataDefController.ParameterFieldController.Modify ParamIndexobjNewParam
End Sub

' INSERT VALUES

Pass the parameter values by name to the report


'==================================================================
WORKING WITH THE RECORD SELECTION FILTER
'==================================================================
Dim selection_formula

'
selection_formula="{IO_PAccesos_Aplicaciones.Id_Aplicacion}='" aplicacion "'"
  
  ' Create new Filter object
Set oFilter = ObjFactory.CreateObject("CrystalReports.Filter")

Set the text of the Record Filter through the FreeEditingText property
oFilter
.FreeEditingText =  selection_formula

' Modify the record filter through the Record Filter Controller
Session("oClientDoc").DataDefController.RecordFilterController.Modify oFilter


'
==================================================================
' INSTANTIATING THE REPORT VIEWER
'
==================================================================
%>

<!-- 
#include file="../CrystalRAS/ActiveXViewer.asp" -->

    
</BODY>
</
HTML
peor aun me sale que "Report Name was not Found" o sino el error de "windows error de aplicacion

La instruccion en "0x2e7d3642" hace referencia a la memoria 0x0000000000000. La meemoria no se puede written"

ese maldito error ke creo que no tenga algo que ver aqui!!!

Alguna forma rapida de ver el reporte??!!!

solamente lo quiero ver???

o con el crystal que tengo lo puedo ver? no como preview sino asi como lo veria con un asp???...

Help