Click here to Skip to main content
14,969,978 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi


i working crystal report its displaying blank page output

What I have tried:

i checked the dataset filling and versioning

and reinstall the crystal report
Posted
Updated 8-Apr-18 23:17pm

1 solution

Hi can you share your code.
Also check your report source and refresh code.
   
Comments
Member 10386063 9-Apr-18 6:13am
   
ReportDocument reportdocument = new ReportDocument();
reportdocument.Load(Server.MapPath("~/CrystalReport.rpt"));
DataSet1 dsUser = new DataSet1();

using (OracleConnection objConn = new OracleConnection(con))
{
objConn.Open();
OracleCommand cmd = new OracleCommand("select USERNAME,PASSWORD from E_USER_MT", objConn);
OracleDataAdapter da = new OracleDataAdapter(cmd);
da.Fill(dsUser, "Userinfo");
objConn.Close();
}
reportdocument.SetDataSource(dsUser);
CrystalReportViewer1.ReportSource = reportdocument;


________________________________________________________________
____________________________________________________________________
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ 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">



<title>





<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server"
AutoDataBind="true" />


<asp:Button ID="Button1" runat="server" onclick="Button1_Click"
Text="Make it PDF" />


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900