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
IS ANYONE GOT OFFER LETTER WHO ATTENDED THE IBM (CMR COLLEGE) HYDERABAD INTERVIEW ON APR 12 & 13, 2012
Can a Trust be made nominee in a life insurance policy
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...........
what is article?
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?
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 ?
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?
What is the salary in railway in group c with grade pay 2400?
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
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.
Describe a time when you anticipated potential problems and developed preventive measures
Interviewer: This is a phone/pen. How you will sell this item to me?
WHY DO YOU WANT TO JOIN AS CLERK IN BANK AFTER M.SC IN BIOTECHOLOGY
Explain your methods for resource allocation
What happens when centrifugal pump is operated with closed discharge valves?