Report Viewer
Answer / santro
/*Reportviewer.aspx.cs*/
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 CrystalDecisions.CrystalReports;
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Shared;
public partial class ReportViewer : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
ReportDocument rptDrug = new ReportDocument();
string path = Server.MapPath("~");
path = path + "\\rptDrugNames.rpt";
rptDrug.Load(path);
TableLogOnInfo logoninfo = new TableLogOnInfo();
/*Here we are assinging the servername,user name
and password to the TableLogonInfo Object*/
logoninfo.ConnectionInfo.ServerName = "localhost";
logoninfo.ConnectionInfo.UserID = "sa";
logoninfo.ConnectionInfo.Password = "sasa";
/* Applaying the TableLogOnInfor object to report
object.*/
rptDrug.Database.Tables[0].ApplyLogOnInfo
(logoninfo);
/*Setting the report source to Crystal Report
viewer control*/
CrystalReportViewer1.ReportSource = rptDrug;
CrystalReportViewer1.DataBind();
}
}
/*ReportViewer.aspx
click form crystal reports
crystal reportviewer*/
Is This Answer Correct ? | 0 Yes | 0 No |
which plan and modem should i take for 3g internet usage mainly for downloads which gives me speed of 3.1 mbps,5.2 m bps,7.1 m bps and unlimited usage for a month .state haryana
How much amount we have to pay octroi Charges for food items in Hyderabad
our country currently experiencing glow growth rate and a high inflation rate. what should be done in this situation by the government and what is the role of the bank?
Ratnavali is the famous work of (A)Asvaghasa. (B) Sri Harsha (C)kalhan. (C) panini
My D.O.B is 13/06/1990. How to write date of birth in christian era?
salary expectation ?
Pentaho CE 3.6 installation. After completing all the installation steps, BI server is not starting. I tried manual starting too but no use. Whenever i open the Web browser for pentaho I'm getting the error as HTTP 1.1 ERROR 404. Can there be any problem in connecting with the repository services.?
'Role model'it means
hi friends,im doing masters in us and in a short span of time i will get a job,my husband who is a designer completed his degree working in a MNC can come to us on dependent visa?please answer me.....
what is hi... meaning
what is DMF? TYPES OF DMFs?
what do u know about sbi?