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 |
why acidity happens?
Briefly tell us about yourself ? ( Should I need to mention my qualification, work experience, hobbies, family background) Note :- Answer should be less or equal to four lines.
how to get c & f agengy licence or ragistration ??
hi can i get all H.R interview questions from all companies to my mail.
how to improve our communication skill?
in keyboard the letter K is not working.. But u want to type ur password as Kavi how u will type the letter K.....
Can you explain a difficult situation in your job and how have to solved it . ( for a risk reporting analyst position) Hopefully answer should be about data.
Could anyone tell me how to get a quick start in the Game of Grand Battle? Hi, I am a game fan. I have downloaded the free Android game Grand Battle on Google Play, and I enjoy the game design so much. As a beginner, I am eager to get a quick start guide. I hope the senior Grand Battle game players can help me. Thanks a lot.
there are two materials one should be for cash sale only and the other material is a regular one. in sales order the first material should be accepted only for cash sale- how do you do this?
What is DDNS and why do I need it?
What is the Lowest Test Innings Total in test cricket history? (a)25 (b)30 (c)45 (d)55
i completed my btech in 5years..can i get job on java..do recruiters prefer me if i get a good command on java