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

IS ANYONE GOT OFFER LETTER WHO ATTENDED THE IBM (CMR COLLEGE) HYDERABAD INTERVIEW ON APR 12 & 13, 2012

2634


Can a Trust be made nominee in a life insurance policy

2034


how to calculate an ohmmeter(multiple range)?.. kindly show your computatations?.... plsss answer b4 feb. 1, 2010....... it is important thing..... hope for your kindness...........

2266


what is article?

2006


i m from engineering background and now i want to go banks....if the question will asked that why u prefer the bank job while u r from technical background?

1881


I heard about online data entry job and is this job safe, legal to do at home. How I will find a good online job to do at home ?

1839


Tell me about a time when you had to work as part of a team and someone was not holding up their end of the work (it can be work or school). What did you do?

3888


What is the salary in railway in group c with grade pay 2400?

1676


Hi friends I am sasi,Got selected for Syndicate Bank PO.I dont have any idea about Banking sector.I dont know how to prepare for the interview.Can anyone help me plz

2050


We are a manufacturing organisation , the product produced are batch detemined ( every day we have a different Batch No day wise). Part of the finished product produced is taken by another department to manufacture thier final product . We transfer material from one storage location to another and have activtaed the back flush indicator for manufacturing the finished product of department 2. The transfer of the product from dept 1 to dept 2 is of different batches . will the system do automatic back flushing for the final product of dept 2. If yes please let me know.

1757


Describe a time when you anticipated potential problems and developed preventive measures

2242


Interviewer: This is a phone/pen. How you will sell this item to me?

923


WHY DO YOU WANT TO JOIN AS CLERK IN BANK AFTER M.SC IN BIOTECHOLOGY

4156


Explain your methods for resource allocation

2719


What happens when centrifugal pump is operated with closed discharge valves?

2210