on 04-16-2014 4:36 PM
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 ?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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;
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:
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
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.