Re: CrystalReportViewer not show in aspx
From: Richard (richardp_at_e-hkma.com)
Date: 04/17/04
- Next message: Randy Birch: "Re: SENDMESSAGE api"
- Previous message: Vercammen John: "Re: SENDMESSAGE api"
- In reply to: Steve: "Re: CrystalReportViewer not show in aspx"
- Messages sorted by: [ date ] [ thread ]
Date: 16 Apr 2004 19:25:49 -0700
Thx Steve. I can display Crstal Report in Web browser now by typing
"aspnet_regiis.exe -i" under the
"C:\WINNT\Microsoft.NET\Framework\v1.1.4322" path of client IIS
machine.
Richard
<Steve> wrote in message news:<e7eSbc6IEHA.2876@TK2MSFTNGP09.phx.gbl>...
> If that's the literal content being returned to the browser, then it looks
> like the problem is with ASP.NET/IIS, not Crystal. Verify that you have the
> .Net Framework and ASP.NET installed on the IIS machine. If ASP.NET is
> installed but IIS is not recognizing the .aspx extension, run aspnet_regiis
> to fix the mappings.
>
> "Richard" <richardp@e-hkma.com> wrote in message
> news:edc69499.0404152214.2344b959@posting.google.com...
> > Hi,
> >
> > I have used CrystalReportViewer to display report in aspx. By using
> > "PUSH" approach, I have created a dataset with data and assigned them
> > into pre-defined crystal report. Finally, the crystal report object is
> > assigned to CrystalReportViewer.
> >
> > The report is shown correctly in web browser in developer's machine.
> > However, the report is not shown in other machine if I put those file
> > into another IIS machine even with Crystal Enterprise installed. It
> > only show the content of the page like this
> >
> > <%@ Page language="VB" AutoEventWireup="false"
> > Codebehind="WebForm1.aspx.vb" Inherits="PUSH.WebForm1"%>
> > <%@ Register TagPrefix="cr" Namespace="CrystalDecisions.Web"
> > Assembly="CrystalDecisions.Web, Version=9.2.3300.0, Culture=neutral,
> > PublicKeyToken=692fbea5521e1304" %>
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> > <HTML>
> > <HEAD>
> > <title>WebForm1</title>
> > <meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
> > <meta name="CODE_LANGUAGE" content="Visual Basic 7.0">
> > <meta name="vs_defaultClientScript" content="JavaScript">
> > <meta name="vs_targetSchema"
> > content="http://schemas.microsoft.com/intellisense/ie5">
> > </HEAD>
> > <body MS_POSITIONING="GridLayout">
> > <form id="Form1" method="post" runat="server">
> > <FONT face="新細明體">
> > <cr:CrystalReportViewer id="CrystalReportViewer1" style="Z-INDEX:
> > 101; LEFT: 23px; POSITION: absolute; TOP: 16px" runat="server"
> > Width="518px" Height="19px"></cr:CrystalReportViewer></FONT>
> > </form>
> > </body>
> > </HTML>
> > --------------------------------------------------------------------------
> >
> > How to show crystal report in web browser correctly? Any thing I need
> > to install in the IIS machine?
> >
> >
> > Here is the original code in WebForm1.aspx.vb
> > -----------------------------------------
> > Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
> > System.EventArgs) Handles MyBase.Load
> > Dim crpt As New CrystalReport1()
> > Dim myDS As New DataSet()
> > Dim myTable As DataTable
> > Dim row As DataRow
> > Me.CrystalReportViewer1.Visible = True
> > myDS.ReadXmlSchema(Server.MapPath("\PUSH\bin\Dataset1.xsd"))
> > myTable = myDS.Tables("Account")
> > row = myTable.NewRow()
> > row("Fname") = "Mathew"
> > row("Lname") = "Hayden"
> > row("Salary") = "5000$"
> > myTable.Rows.Add(row)
> > crpt.SetDataSource(myDS)
> > Me.CrystalReportViewer1.ReportSource = crpt
> > End Sub
> >
> > ------------------------------------------------------------
- Next message: Randy Birch: "Re: SENDMESSAGE api"
- Previous message: Vercammen John: "Re: SENDMESSAGE api"
- In reply to: Steve: "Re: CrystalReportViewer not show in aspx"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|