locked
CrystalReportViewer and Firefox (Microsoft.ReportViewer.WebForms ??) RRS feed

  • Question

  • User-1055005026 posted

    Hi!

    I have a web application asp.NET. And within a CrystalReportViewer but I can not see the menu of crystal in firefox... The state appears well but it is impossible to navigate, print, etc. ... While everything is correct on Internet Explorer.

    Have you an idea of the problem?

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="toto.aspx.cs" Inherits="totoM.rpt.Edition" %>


    <%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
        Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>


    <%@ Register Assembly="CrystalDecisions.Web, Version=10.5.3700.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></title>
    </head>
    <body>
        <form runat="server">    
        <CR:CrystalReportViewer ID="CRV" runat="server" PrintMode="Pdf"  DisplayPage="true"
            DisplayGroupTree = "False" AutoDataBind="true" BackColor="White" />
        </form>
    </body>
    </html>

    I laod the state from the behind code.

    Then
    I was working under VS 2008 and
    since one week on VS 2010 and with the import it has added a register "Microsoft.ReportViewer.WebForms. I wonder if I must use it or if the "CrystalDecisions.Web" enough.

    Thanks all.

    Monday, July 12, 2010 11:55 AM

Answers

  • User-1055005026 posted

    It work ! thanks

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, July 13, 2010 3:59 AM

All replies

  • User1224194097 posted

    I can see that you have set print mode to PDF and disabled Group Navigation.

    you can do this which will work in all browsers

     public void GetReport()
            {
                try
                {
                    CrystalReport1 cr = new CrystalReport1();
                    cr.SetDatabaseLogon("UserName", "Password");
                    MemoryStream mem = (MemoryStream)cr.ExportToStream(ExportFormatType.PortableDocFormat);
                    Response.Clear();
                    Response.Buffer = true;
                    Response.ContentType = "application/pdf";
                    Response.BinaryWrite(mem.ToArray());
                }
                catch (Exception ex)
                {
                    throw ex;
                }
            }

    Monday, July 12, 2010 1:59 PM
  • User-1055005026 posted

    It work ! thanks

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, July 13, 2010 3:59 AM