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 |
Interviewer: This is a phone/pen. How you will sell this item to me?
if i purchased goods worth rs. 100000/- and paid rs. 12500/- as local vat and transferred the same goods to my branch in other state against form `f` which amount we claim in my local vat return or can we adjust the 12500/- with my other output taxes create with other sales
what is the age limit of BC A-5 women category
how can u catch the bull by the horn
why do flower pots have holes in the bottom?
Hi Friends, I am going to appear for Central Bank of India's Probationary officers test.Kindly forward if u have the sample papers my ID id is ramya_0922@yahoo.in.Please help me friends... Regards, Ramya
0 Answers Central Bank of India,
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.
1. I'm just S.S.L.C I don't have UG completion... But l want to study PG in M.Com or any fine arts in PG, Is it possible..., If possible please tell me which university can i apply,,, is that University in Chennai ?.
Sir..which one is better of the two? Auditor or Bank P.O.. Please favour me here..
what environmental performance criteria are used in your company
Login Screen
i want to b join intellegence bueru for acio grade2 i graduction for b.a kya mai ib join kar sakta ho palese give a answera