Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Report Viewer

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

generaly , it is asked by the interviewer that why should we select you only rather than others , Pl suggest it answer

1845


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.

1804


mention some of the major contribution made by you in present & previous jobs- Sales Representative

2124


What is Aggressive behavior needed in corporate world? how aggressive play a role on of the Employee?

2320


how will be the career growth in railways if we join as a asst. station master?

2202


WHAT IS MEANING OF M/S IN RETAIL SENSE ????

1955


HELLO FRIENDS,I AM ABHAY KUMAR IM HISTORY HON AND I HAVE QUALIFIED IBPS PO EXAM .CAN U SUGGEST ME WHAT KIND OF QUESTION CAN ASK IN INTERVIEW ??

2210


define success?

2059


what are the main skills requreed to be software programe manager?

2137


Whate,we can use for HPLC calibration insted of caffine?

2050


i need sponsor for my family in USA

1860


dwipada kavyam of ranganatha ramayanam

6314


I have been selected for clerical interview of SBI..my interview is scheduled on 3rd may 2010...if anybody have attented before that plz tell me which type of questions they r asking..

1941


I have a question, I'd like to know what does "roc" means? E.g. in Beyonce's song : Roc. She is singing: You are my roc, I love to roc with you and it's not a rock. Help me...

1900


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.?

2187