Crystal Reports Crystalviewer export button in the toolbar is not working

Last post 11-06-2009 9:15 AM by roslandarus. 14 replies.

Sort Posts:

  • Crystal Reports Crystalviewer export button in the toolbar is not working

    11-10-2006, 9:55 AM

    Please help,

    I have an ASP.net web application in VB. I developed the application in my Windows XP work station.  Everything works in my work station.

    I deployed the application in our development server. THe server is a Windows 2000 server (OLD).

    The export button and the print button in the toolbar is not working.

    When I invoke/click the export button, the export window(interface) is not launched. There is no interface that will enable you to select the file type to export.

    Before deploying, I created a deployment setup app. with the merge modules.

    I'm using Crystal reports XI R2 and VS 2005.
     
    The print button however launches the an html box but its empty. No print button.

    Ive been working on this functionality for 2 weeks now and I have not found a clue why I can't get my asp.net app with crystal reports to work.

    Thanks in advance

    Michael

  • Re: Crystal Reports Crystalviewer export button in the toolbar is not working

    11-14-2006, 10:41 AM
    • Participant
      756 point Participant
    • jgurgen
    • Member since 03-01-2006, 4:09 PM
    • Posts 253
    i have been having the same problem for weeks too.  I even had purchased extra copies of crystal reports thinking it was licsence issue but that hasnt solved it. 
  • Re: Crystal Reports Crystalviewer export button in the toolbar is not working

    11-14-2006, 12:51 PM

    What a pain Eh..

     I still have the problem but think the problem has to do when I converted my application from VS 2003 with Crystal XI to VS 2005 with Crystal XI R2.

    I notice that when I compile the VS 2005 Ver of my ASP.net application, the DLL files that is supposed to be created are missing.

    So this is what I'm trying to do right now.

    1. Create a new application with one of my Crystal Reports Integrated to it. So far I cant get my report going but the DLL's are created.  I'm ready to throw my computer.

    2. Once I get my Report working, I will deploy this application to the WIN 2 K server that we have...I'll let u know what happens.

    But please if you try, what I'm doing. Let me know the results.

    Thanks,

     Michael

     

    jgurgen:
    i have been having the same problem for weeks too.  I even had purchased extra copies of crystal reports thinking it was licsence issue but that hasnt solved it. 

     

  • Re: Crystal Reports Crystalviewer export button in the toolbar is not working

    11-14-2006, 3:36 PM
    • Participant
      756 point Participant
    • jgurgen
    • Member since 03-01-2006, 4:09 PM
    • Posts 253

    i havent tried what you said but i did notice something that might help.

    I added a textbox with a button to click to search the report using CrystalReportViewer1.SearchAndHighlightText(string, searchdirection) and on the button click it does nothing.  It seems like all form buttons arent working correctly.  Ill post my code to see if someone notices something.

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="template.aspx.cs" Inherits="iProf_template" %>
    
    <%@ Register Assembly="CrystalDecisions.Web, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
        Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
    
    <%@ Register Assembly="eWorld.UI, Version=2.0.0.2148, Culture=neutral, PublicKeyToken=24d65337282035f2"
        Namespace="eWorld.UI" TagPrefix="ew" %>
        
    <!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 id="Head1" runat="server">
        <link href="iprof.css" rel="stylesheet" type="text/css" media="screen" />
        <link href="print.css" rel="stylesheet" type="text/css" media="print" />
    
        <script src="CheckBoxGrid.js" id="checkboxjavascript" type="text/javascript" />
     <title>iProf - v1.1 - TEMPLATE</title>
    
        <link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
            rel="stylesheet" type="text/css" />
        <link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
            rel="stylesheet" type="text/css" />
    </head>
    <body>
        <form id="form1" runat="server">
            <div style="width: 100%;" class="pageproperties">
                <div id="TopBanner" class="iProfTopHeader">
                    iProf v1.1</div>
                <div id="Div1">
                     </div>
                <div id="Div2" class="titleBar">
                    <strong>Test</strong>
                </div>
                </div>
            <asp:TextBox ID="TextBox1" runat="server" MaxLength="10"></asp:TextBox> <asp:Button
                ID="SearchButton" runat="server" OnClick="SearchButton_Click" Text="Search" /><br />
            <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true" />
        </form>
    
       
    </body>
    </html>
    

     

    using System;
    using System.Data;
    using System.Configuration;
    using System.Collections;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Web.UI.HtmlControls;
    using System.IO;
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.Shared;
    
    public partial class iProf_template : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
    
        }
        private void Page_Init(object sender, EventArgs e)
        {
            ConfigureCrystalReports();
        }
        private void ConfigureCrystalReports()
        {
    
            CrystalReportViewer1.ReportSource = @"\\ifs.com\svcdata\rpt\POCOJ.rpt";
            CrystalReportViewer1.DisplayToolbar = true;
            CrystalReportViewer1.HasSearchButton = true;
            CrystalReportViewer1.HasExportButton = true;
            CrystalReportViewer1.HasPrintButton = true;
            
        }
        protected void SearchButton_Click(object sender, EventArgs e)
        {
            TextBox1.Text = TextBox1.Text.PadLeft(10,'0');
            string search_string = TextBox1.Text;
            CrystalReportViewer1.SearchAndHighlightText(search_string, SearchDirection.Forward);
        }
    }
     
  • Re: Crystal Reports Crystalviewer export button in the toolbar is not working

    11-15-2006, 4:34 PM
    • Participant
      756 point Participant
    • jgurgen
    • Member since 03-01-2006, 4:09 PM
    • Posts 253

    really weird but it works all of a sudden.  I started a new page with nothing on it added a button and that worked.  Then i added the crystal viewer and now the toolbar buttons work fine.  really weird.

     

  • Re: Crystal Reports Crystalviewer export button in the toolbar is not working

    11-16-2006, 7:31 AM
    • Member
      70 point Member
    • m24paul
    • Member since 09-20-2006, 7:49 AM
    • Posts 18
    jgurgen:

    really weird but it works all of a sudden.  I started a new page with nothing on it added a button and that worked.  Then i added the crystal viewer and now the toolbar buttons work fine.  really weird.

    I have same problem. My solution was to move report viewer outside the update panel!

  • Re: Crystal Reports Crystalviewer export button in the toolbar is not working

    10-03-2007, 4:57 AM
    • Member
      4 point Member
    • PacoNP
    • Member since 10-03-2007, 8:53 AM
    • Spain
    • Posts 2

     Hellow m24paul,

    what do you means with "update panel"? I work with Master Pages and my report is embedded in this. Do you think I have to move report viewer outside the Master Page?

    Thank you! 

  • Re: Crystal Reports Crystalviewer export button in the toolbar is not working

    10-03-2007, 10:39 AM
    • Member
      59 point Member
    • rock056
    • Member since 04-03-2006, 11:51 AM
    • Posts 177

    Surely he is speaking of the UpdatePanel from the Ajax controltoolkit.  I ran across the same problem and moving the reportviewer outside of the updatepanel cleared up all the issues.

  • Re: Crystal Reports Crystalviewer export button in the toolbar is not working

    10-03-2007, 10:47 AM
    • Member
      4 point Member
    • PacoNP
    • Member since 10-03-2007, 8:53 AM
    • Spain
    • Posts 2

    I understand, but I don`t work with Ajax, so... I don't know where is the problem :(

    In anycase, thank you very much for your answer!

  • Re: Crystal Reports Crystalviewer export button in the toolbar is not working

    12-12-2007, 2:41 PM
    • Member
      4 point Member
    • egeetha
    • Member since 12-12-2007, 7:39 PM
    • Posts 2

    Copy CrystalreportViewers115 folder to your solution. It's a known bug with crystalviewer.

  • Re: Crystal Reports Crystalviewer export button in the toolbar is not working

    12-17-2007, 10:44 AM
    • Member
      2 point Member
    • albertofilho
    • Member since 12-17-2007, 3:42 PM
    • Posts 1

     

    Where can i find this folder? (CrystalreportViewers115)
  • Re: Crystal Reports Crystalviewer export button in the toolbar is not working

    12-17-2007, 7:31 PM
    • Member
      4 point Member
    • egeetha
    • Member since 12-12-2007, 7:39 PM
    • Posts 2
    Depends on which version of crystal you are using. If you have Crystal reports 11.5 installed on a server you should find Crystalreports115 under \program files\common files\Business objects\If you are using a different version of crystal you will see a different folder like Crystalreports11 or 10....Also if you used visual studio to develop your reports then make sure the version on the server, your asp.net page and web.config match.

     Good Luck

  • Re: Crystal Reports Crystalviewer export button in the toolbar is not working

    03-04-2009, 12:20 AM
    • Member
      239 point Member
    • punnanthomas
    • Member since 03-03-2009, 12:27 PM
    • Kerala,India
    • Posts 70

    First check the PrintMode property of CrystalReportViewer and set it as ActiveX.

     

    If the PrintMode property is set to PDF the you must install Adobe Reader.

    Thanks,
    Punnan Thomas K.

    Mark as Answer if this post helps you.
  • Re: Crystal Reports Crystalviewer export button in the toolbar is not working

    05-23-2009, 2:31 AM
    • Member
      2 point Member
    • Dinesh.T
    • Member since 05-23-2009, 6:25 AM
    • Posts 1

    I have sane problem i.e i can pass 4 parameters to report.(those parameters will be declered in class and i can call those in crystalreport viewer)after that i can run website the report will be opened and if i press print button in tool bar then it will ask parameter values.

        But i can already pass those parameters. how i can avoid these problem .

     

    Thanks in Advance.

     

  • Re: Crystal Reports Crystalviewer export button in the toolbar is not working

    11-06-2009, 9:15 AM
    • Member
      2 point Member
    • roslandarus
    • Member since 11-06-2009, 9:12 AM
    • Posts 1

    Hi. I have 2 scenario.

    I am using CRviewer.dll to view the output of the report that was created using Crystal Report 8.5. In this CRViewer the export button is enable.

    However for the new reports created using Crystal Report 11, i'm  using CRViewer9.dll to view the report output. However in this CR Viewer9 the export button was disable. Is there any step to enable the export button in the CR viewer9. Or do I need to enable it from the Crystal Report 11. And how to enable it.  Appreciate adivce from the forums.

    Tx in advance,

Page 1 of 1 (15 items)