It possible displayed a CrystalReportViewer in Ext.Net component?

  1. #1

    It possible displayed a CrystalReportViewer in Ext.Net component?

    Hi !

    I try show a report in a ext panel, i think handling is similar to asp code

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PlataformaInformes.aspx.cs" Inherits="Reportes2011.PlataformaInformes" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <%@ Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
    ...
    ...
    <body>
        <form id="Form1" runat="server">
            <ext:ResourceManager ID="ResourceManager1" runat="server" />
            <ext:Panel ID="panel" runat="server">
            <Content>
                <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true" />
            </Content>
            </ext:Panel>
        </form>
    </body>
    </html>
    this code does not show the report
  2. #2
    If you set a .Height and .Width for the Panel does the ReportViewer render?
    Geoffrey McGill
    Founder
  3. #3

    not works

    geoffrey.mcgill
    If you set a .Height and .Width for the Panel does the ReportViewer render?
    I change the code to

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PlataformaInformes.aspx.cs" Inherits="Reportes2011.PlataformaInformes" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <%@ Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
    ...
    ...
    <body>
        <form id="Form1" runat="server">
            <ext:ResourceManager ID="ResourceManager1" runat="server" />
            <ext:Panel runat="server" ID="pan" Height="800" Width="1300">
            <Content>
                <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true" PageZoomFactor="50" HasCrystalLogo="False" />
            </Content>
            </ext:Panel>
        </form>
    </body>
    </html>
    Change1: Height and Width increase of panel
    Change2: 50% of original size CrystalReportViewer1

    Not works
  4. #4

    Any Idea?

    I cant display a Crystal Report in EXT component
  5. #5
    Hi,

    Does that CrystalReportViewer appear without a Panel?
  6. #6
    Hi, cmujica

    The solution is load your report from another source.

    Example:

    LoadConfig config = new LoadConfig("your_report.aspx", LoadMode.IFrame);
    yourpanelorwindows.LoadConfig(config);
    I tell you and the report now is working integrated with Ext.NET

    Now Post your'e screenshoot with your report fully integrated.


    Bye.

    Patricio Palacios M.
    Your Boss
  7. #7
    Quote Originally Posted by Daniil View Post
    Hi,

    Does that CrystalReportViewer appear without a Panel?
    Yeah

    -------------------------------------------------
    xD ppalaciosm

    THE PROBLEM: the line " <ext:ResourceManager ID="ResourceManager1" runat="server" /> " no is compatible with EXT, when this line exists in the code, CrystalReportViewer no appears. thus my idea of manage components of CR and EXT.NET in the same apsx no works, BUT, WE CAN DISPLAY A CRV IN EXT COMPONENT

    THE SOLUTION: In a aspx with EXT components calls a aspx with the CrystalReportViewer with the follow code
    C#
            LoadConfig L = new LoadConfig("View_Report.aspx", LoadMode.IFrame);
           win.LoadContent(L);  // win is a window in EXT.NET, the panel too works
    Attached Thumbnails Click image for larger version. 

Name:	informe.png 
Views:	324 
Size:	28.1 KB 
ID:	3435  
  8. #8
    @cmujica, thanks for the update.

    Quote Originally Posted by cmujica View Post
    THE PROBLEM: the line " <ext:ResourceManager ID="ResourceManager1" runat="server" /> " no is compatible with EXT, when this line exists in the code, CrystalReportViewer no appears. thus my idea of manage components of CR and EXT.NET in the same apsx no works, BUT, WE CAN DISPLAY A CRV IN EXT COMPONENT
    Could you provide a simple sample which we would run locally without any changes and reproduce the problem?

    We need a sample to investigate the Ext.NET and CR compatibility problem.

    I was unable to reproduce the problem using the following sample.

    Example
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <%@ 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">
    <head runat="server">
        <title>Ext.NET Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <ext:Panel runat="server" Height="800" Width="1300">
                <Content>
                    <CR:CrystalReportViewer runat="server" AutoDataBind="true" />
                </Content>
            </ext:Panel>
        </form>
    </body>
    </html>

Similar Threads

  1. [CLOSED] portal component is not displayed
    By tactime10 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 01, 2012, 10:40 AM
  2. How can I put a CrystalReportViewer into a Panel?
    By zhangjiagege in forum 1.x Help
    Replies: 0
    Last Post: Nov 22, 2011, 8:22 AM
  3. Add Ext JavaScript Component to Component
    By geoffrey.mcgill in forum Examples and Extras
    Replies: 3
    Last Post: Mar 10, 2010, 12:38 PM
  4. ext:ScriptManager prevents display CrystalReportViewer 12?
    By tdmf40 in forum 1.x Legacy Premium Help
    Replies: 0
    Last Post: Dec 04, 2009, 11:46 AM
  5. Replies: 1
    Last Post: May 22, 2009, 7:38 AM

Tags for this Thread

Posting Permissions