Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
New to C#
Message
From
12/06/2019 09:37:14
Bill Fitzgerald (Online)
Woodbury Systems Group
Hamilton, New Jersey, United States
 
 
To
12/06/2019 08:16:52
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
C#
Category:
Coding, syntax and commands
Title:
Miscellaneous
Thread ID:
01668995
Message ID:
01669025
Views:
64
>
> 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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform