Report Viewer



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

Post New Answer

More Everything Else AllOther Interview Questions

where can i find original all ved and purans?

0 Answers  


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

0 Answers   Mashreq Bank, Syndicate Bank,


Hello sir /ma'am... Plz help me out..... I selected in ADO THE LIC.... Every people saying this is bad job..is this right? Whether should I join or not?

0 Answers  


how can you identified yourself?

0 Answers  


is it possible to save our dreams in a cd or dvd and after getting up from bed we can view them if not then why not and if why then how?

0 Answers  






= 5, b = 1, x = 10, and y = 5, create a program that outputs the result of the formula f = (a – b) (x – y) using a signal printf () function.

0 Answers  


WHO WAS THE ONLY TENNIS PLAYER EVER WON A OLYMPIC MEDAL FOR INDIA?

1 Answers  


I want to start my own business by taking small shop 150- 200 sq foot iam mechanical engineer which business can i start trading ,dealership in which product where i can contact

0 Answers  


is this sentence correct ??? " i had completed "

0 Answers   HCL,


Which of the rank of para military ie BSF, CRPF or ITBP is equivalant to Lt Col of Indian Army?

8 Answers   BSF, CISF, CRPF, Indian Army, ITBP,


Which fictional character created by Jules Verne hated war and destroyed all warships

0 Answers   NPL,


when wil the SBM clerical interview results be announced? and how??

0 Answers  


Categories