cancel
Showing results for 
Search instead for 
Did you mean: 

crystal report viewer not showing any option in browser at run time

Former Member
0 Kudos

Hello concern

I am mahendra gohil a student in computer science.

I am using crystal report viewer with VS 10 . Every thing is fine code is running , in browser data are displayed but I didn't find any options that make print of my document . In my document has multiple pages but it displays only first page. all options are set to true with "pdf" as print mode.

I have read all post regarding this issue , could not find any solution. Also set "Enable Acrobat Javascript " in adobe reader application.

I have attached my project image with this question.

Can any one plz help me to solve this ?

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

Hello Mahenra

Looks like the toolbar was disabled somehow. A normal web app viewer looks like this:

One way to disable the toolbar is through the viewer properties:

Also, see: Visual Studio 2012 Crystal Report not working on Windows Server 2012/ 0x800a1391 – JavaScr... re. configuration of the web viewer.

- Ludek

Senior Support Engineer AGS Product Support, Global Support Center Canada

Follow us on Twitter

Former Member
0 Kudos

thanks for your reply sir,

I have read your reply. In my project toolbar is not disable. It shows in the right place in browser but without any option. I have attached image for that.

former_member183750
Active Contributor
0 Kudos

What browser and version of the browser are you using?

Post your code.

- Ludek

Former Member
0 Kudos

I am using Firefox 20.0* and Crome 34.0.*

Here is my code

page :: viewreport.aspx

<%@ Page Title="" Language="C#" MasterPageFile="~/ideal.master" AutoEventWireup="true" CodeFile="viewreport.aspx.cs" Inherits="Default3" %>

<%@ Register assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web" tagprefix="CR" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

    <style type="text/css">

    .style1

    {

        width: 100%;

    }

</style>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <table class="style1">

    <tr>

        <td>

             </td>

        <td>

             </td>

    </tr>

    <tr>

        <td colspan="2">

            <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server"

                AutoDataBind="True" EnableDatabaseLogonPrompt="False"

                GroupTreeImagesFolderUrl="" Height="50px"

                ToolbarImagesFolderUrl="" ToolPanelWidth="200px" Width="881px"

                ToolbarStyle-BackColor="#33CC33" ToolbarStyle-BorderColor="#FF5050"

                ToolbarStyle-BorderStyle="Dashed" />

        </td>

    </tr>

</table>

</asp:Content>

page :: viewreport.aspx.cs

            ReportDocument rp = new ReportDocument();

            rp.Load(Server.MapPath("IPD_BILL.rpt"));

            string payment_str = "SELECT * from report";

            DataSet ds = new DataSet();

            ds = conn.read_op(payment_str);       

            rp.SetDataSource(ds.Tables[0]);

            CrystalReportViewer1.ReportSource = rp;

former_member183750
Active Contributor
0 Kudos

See SAP Crystal Reports, Developer Version for Visual Studio .NET - Supported Platforms. That eliminates Chrome 34. Firefox and IE should work. I'd like you to try with IE. Also, I'd like to have a look at the following blog:

Visual Studio 2012 Crystal Report not working on Windows Server 2012/ 0x800a1391 &amp;#8211; JavaScr...

One other test I'd like you to do:

Create a new project. Throw a viewer on a form. Add the code to init:

CrystalReportViewer1.ReportSource = <path to a saved data report>

Run. Does the baove work?

Ludek

Answers (0)