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

I have given my B.O.B Interview on 14/01/10 @ delhi. Could anyone tell me when would be the results declared? pls post if anyone is seleted.

1459


Bhagwan budh got enlightment under the tree of Banyan (But briksh)then why there are a peepal tree in Bodh Gaya as a Bodhibriksh?

1881


which institute is best for group2 in hyderabad ?

3423


what is the intention of Central excise act for making diff betn production and manufacture?

1510


can you give the RRB coaching center adress

1624






plz send me last 10 years bank clerk papers for union bank clerk for preparation. thank u..plz hurry up..its urgent

1641


how do they cal for SBI interview? based on merit or roll no?

1895


Order Management Questions on the Oracle applications. ================================================= A)Explain the basic flow of Order Management Regular Sales order cycle. B)Explain the difference between the pick release and Ship Confirm process. c)Explain the Credit Check functionality. d)Explain the Ship Confirm Rule e)Explain how the price can be given to an item. f)Explain how can we Generate an invoice once we booked the order for a shippable item. g)Explain the Pricing Entities 1)Modifiers 2)Qualifiers. h)If the Ship Confirm button is Greyed out from the Shipping Transactions form what could be the reason. i)Explain the KFF’s in Order management Inventory a)Explain types of move orders b)Explain the Planning Methods c)Explain the Difference between Purchasable and purchased attributes. d)Explain KFF’s In Oracle inventory. e)Explain the Lead times concept. f)What is cumulative lead time and Cummulative Mfg Lead time. g)Explain Standard Costing and Average Costing. h)How can the Lead times be setup in the Item Master. i)Explain how many levels of reservation can be done. Purchasing a)Explain the document types. b)Explain the KFF’s in Purchasing. c)Explain the balancing segment. d)Explain the returns on Purchase order concept. e)Explain the attributes used for the purchasing.

2388


Gilt edged market means

1801


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 ?

1457


Hi i have been selected in federal bank Po exam can somebody throw some light on what type of interview questions are expected??

1576


who is President of India? important Current events? Important National and international events

1790


dwipada kavyam of ranganatha ramayanam

5852


There is an urgent need of SBI PO syllabus and previous & solved question papaer... please also refer the book for the entrance exam...please Send the syllabus and question paper at my email id itsam86@gmail.com

1460


what is banking

1685