Visual Studio 2010 kullanıyorum. Bundan önce Crystal Reporting üzerinde çalıştım ama şimdi Report Viewer'ı kullanarak rapor oluşturmak istiyorum. Bu konuya yeni olduğum için lütfen bana yol göster. Teşekkürler !!!Rapor Görüntüleyicisi'ni kullanarak asp.net'de nasıl rapor oluşturulur
cevap
Temel öğretici için size
Adding and Configuring the ReportViewer Controls
Creating an ASP.NET report using Visual Studio 2010 - Part 1
Creating an ASP.NET report using Visual Studio 2010 - Part 2
Creating an ASP.NET report using Visual Studio 2010 - Part 3
How to use the Report Viewer Control to access a Reporting Services Server
Kodum (ASP.NET/ C#) 1.Create Öğrenci Sınıfı İş Class kullanarak Raporu Oluşturma
& ReportViewer Nesneleri ... business class nesneler için Rapor oluşturmak
public class StudentClass
{
public int No { get; set; }
public string Name { get; set; }
public string Degree { get; set; }
}
2.Create Öğrenci işleri GetStudents ile Deposu() fonksiyonu
public class StudentRepository : StudentClass
{
public List<StudentClass> studentList = new List<StudentClass>();
public List<StudentClass> GetStudents()
{
StudentClass student1 = new StudentClass();
student1.No = 1;
student1.Name = "Bhuvana";
student1.Degree = "M.Tech";
studentList.Add(student1);
StudentClass student2 = new StudentClass();
student2.No = 2;
student2.Name = "Annie";
student2.Degree = "B.Tech";
studentList.Add(student2);
StudentClass student3 = new StudentClass();
student3.No = 3;
student3.Name = "Muthu Abi";
student3.Degree = "B.Tech";
studentList.Add(student3);
return studentList;
}
}
3.Ünitenin Rapor Sihirbazı “StudentReport.rdlc” oluşturmak ve seçmek DataSource
4.In index.aspx dosyasında kodda ToolBox'den (Sürükle ve Bırak)
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<rsweb:ReportViewer ID="ReportViewer1" runat="server">
</rsweb:ReportViewer>
</div>
5.Modify Page_Load() yöntemini Senaryo Yöneticisi ve Rapor Görüntüleyici eklemek
public partial class Index : System.Web.UI.Page
{
StudentRepository sr = new StudentRepository();
List<StudentClass> sc = new List<StudentClass>();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ReportViewer1.ProcessingMode = ProcessingMode.Local;
ReportViewer1.LocalReport.ReportPath = Server.MapPath("~/Report/Student.rdlc");
sc = sr.GetStudents();
IEnumerable<StudentClass> ie;
ie = sc.AsQueryable();
ReportDataSource datasource = new ReportDataSource("DataSet1", ie);
ReportViewer1.LocalReport.DataSources.Clear();
ReportViewer1.LocalReport.DataSources.Add(datasource);
}
}
}
6.Build Ve Çalıştırın
- 1. Calabash-android'da rapor nasıl oluşturulur
- 2. ssrs rapor nesnesine fotramt rapor
- 3. Python HTML'de Rapor Dışı Raporlama
- 4. SSRS 2012 Rapor Modelleri
- 5. SSRS dış imajını rapor
- 6. CommandTable Cystal Rapor Hatası
- 7. BIRT kullanarak rapor üretmeye yönelik Java kodu
- 8. Özel Rapor Öğeleri
- 9. Alt rapor oluşturma ve ana raporda acumatica rapor tasarımcısı
- 10. Mobil rapor yayımcısında bir sql sunucu bağlantısı nasıl oluşturulur
- 11. Rapor Parametreleri Oturum Aç
- 12. Alıntıyla verilen rapor Ekleri
- 13. jacoco kod kapsamı rapor üreteci: Rapor etiketi: Ben jacoco kullanarak jacoco raporu oluştururken am
- 14. Rapor Parametre (Çok değer) Rapordaki
- 15. SSRS rapor gecikmesini anlamaya çalışıyorum
- 16. Rapor alt bilgisi Excel'e aktarılmıyor
- 17. Acemi rapor görüntüleyici için öğretici?
- 18. yalnızca kristal rapor ayrıntıları bölüm
- 19. Firebase Kilitlenme rapor e-posta
- 20. SSRS Rapor gövdesinde TotalPages nasıl alabilirim?
- 21. C# daki istisnaları nasıl rapor edebilirim?
- 22. Jasper ile alt rapor kaynakları nasıl yüklenir?
- 23. Bir form uygulamasına dayalı bir rapor görüntüleme
- 24. Rapor İşlemci Riemann ile her zaman tamam
- 25. Raylarda tarih aralığına göre rapor oluşturma
- 26. Pentaho rapor tasarımcısı büyük harfler a
- 27. PHP csv rapor ekleme Sütun adları
- 28. C# winform raporları yazdırma ve rapor oluşturma
- 29. Rapor Verileri Geri Bildirim Verilmiyor Kayboluyor
- 30. Cihaza özgü hatalar Samsung'a nereye rapor edilir?
Teşekkürler Pranay ... Bu temel dersler bana yardımcı olur ... –
@SonamMohite - buyurun .. Cevap vermemek için bekliyorum .. –
Hey Pranay .... İlk yardım için teşekkürler . Sadece Veri Tabanı ile Tablo ile iyi çalıştım, şimdi bu bir denemek isteyebilirsiniz.Sadece sizin için kod yazabilirsiniz.Yanıtlanmış Procedures ile Veri Kümesi oluşturma konusunda küçük bir karışıklık var. –