ASP.NET - Error con crystal reports

 
Vista:

Error con crystal reports

Publicado por Miguel P. (1 intervención) el 23/11/2012 15:36:12
Hola.

Tengo montado un servidor IIS, donde he montado una pagina web con informes CrystalReports.

He estado haciendo pruebas, desde el equipo donde esta montado el IIS, se ven perfectamente los informes, pero cuando intento conectarme desde un equipo fuera de la red. Me da el siguiente error: No se ha podido cargar el informe.

Lo tengo diseñado, de la siguiente forma.

Resguardo.aspx

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="resguardo.aspx.vb" Inherits="resguardo" %>
<%@ Register assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web" tagprefix="CR" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
...
    <form id="form1" runat="server">
    <div>
 
        <CR:CrystalReportViewer ID="ResguardoOperaciones" runat="server"
            AutoDataBind="True" EnableTheming="True" GroupTreeImagesFolderUrl=""
            HasGotoPageButton="False" HasPageNavigationButtons="False"
            HasSearchButton="False" Height="1269px"
            ToolbarImagesFolderUrl="" ToolPanelWidth="200px"
            Width="1082px" ReuseParameterValuesOnRefresh="True" ShowAllPageIds="True"
            HasCrystalLogo="False"
            HasDrilldownTabs="False" HasDrillUpButton="False"
            HasToggleGroupTreeButton="False" HasToggleParameterPanelButton="False"
            HasZoomFactorList="False" ToolPanelView="None" RenderingDPI="300" />
    </div>
    </form>
</body>
</html>


Resguardo.aspx.vb

1
2
3
4
5
6
7
8
9
10
...
Dim CrReport As New CrystalDecisions.CrystalReports.Engine.ReportDocument
CrReport = New CrystalDecisions.CrystalReports.Engine.ReportDocument()
CrReport.Load(Server.MapPath("resguardos\resguardo.rpt"))
CrReport.SetDataSource(dtDatos)
ResguardoOperaciones.ReportSource = CrReport
ResguardoOperaciones.ParameterFieldInfo.Clear()
Response.Buffer = False
Response.Clear()
CrReport.ExportToHttpResponse(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, Response, True, "Resguardo")
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
Imágen de perfil de Hugo
Val: 76
Plata
Ha mantenido su posición en ASP.NET (en relación al último mes)
Gráfica de ASP.NET

Error con crystal reports

Publicado por Hugo (91 intervenciones) el 27/11/2012 23:10:17
Intentalo de la siguiente manera:

CrReport.Load(Server.MapPath("..\resguardos\resguardo.rpt"))

Saludos
http://www.ichilango.com
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar