Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
New to C#
Message
De
12/06/2019 09:37:14
 
 
À
12/06/2019 08:16:52
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
C#
Catégorie:
Code, syntaxe and commandes
Titre:
Divers
Thread ID:
01668995
Message ID:
01669025
Vues:
65
>
> Isn't SSRS Sql Server Reporting Services?
Yes it is.
However the Visual Studio IDE allows us to develop SSRS reports.
SSRS reports support .NET objects - I use typed datasets- as data sources.


>> Where is a native reporting system embedded in the language (C#)? A sample or link please if it really exists.
Before VS 2017 .NET required that a report viewer module be installed on each workstation before an SSRS report could be executed.
With VS 2017 that report viewer was built into VS and the module is no longer required

Here is a C# utility that displays a .NET dataset table in an SSRS report in a winform frmreportviwer that contains a report viewer control.
public void ShowVsReport(string ReportPath, string DataSetName, DataTable dt)
        {
            FrmVSReportViewer frmVSReportViewer = new FrmVSReportViewer();
            frmVSReportViewer.reportViewerVSReport.ProcessingMode = ProcessingMode.Local;
            frmVSReportViewer.reportViewerVSReport.LocalReport.DataSources.Clear();
            frmVSReportViewer.reportViewerVSReport.LocalReport.ReportPath = ReportPath;
            ReportDataSource rds = new ReportDataSource();
            rds.Name = DataSetName;
            rds.Value = dt;
            frmVSReportViewer.reportViewerVSReport.LocalReport.DataSources.Add(rds);
            frmVSReportViewer.reportViewerVSReport.RefreshReport();
            frmVSReportViewer.ShowDialog();

        }


    }
}
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform