diff --git a/wpf-toc.html b/wpf-toc.html index ae8d04938d..b5fcfa0a76 100644 --- a/wpf-toc.html +++ b/wpf-toc.html @@ -1321,15 +1321,6 @@
  • Custom views
  • -
  • - NotifyIcon - -
  • OlapChart
  • -
  • - ReportViewer - -
  • -
  • - ReportWriter - -
  • Ribbon +
  • +
  • + NotifyIcon (Classic) +
  • TreeViewAdv (Classic) diff --git a/wpf/Control-Dependencies.md b/wpf/Control-Dependencies.md index 6168dede67..b7ef331d29 100644 --- a/wpf/Control-Dependencies.md +++ b/wpf/Control-Dependencies.md @@ -808,64 +808,6 @@ Syncfusion.ReportDesigner.WPF -## ReportViewer - - - - - - - - - - -
    Assembly references NuGet package
    -Syncfusion.Chart.Wpf
    -Syncfusion.Compression.Base
    -Syncfusion.DocIO.Base
    -Syncfusion.Gauge.Wpf
    -Syncfusion.Grid.Wpf
    -Syncfusion.Linq.Base
    -Syncfusion.Pdf.Base
    -Syncfusion.PropertyGrid.Wpf
    -Syncfusion.ReportControls.Wpf
    -Syncfusion.ReportViewer.Wpf
    -Syncfusion.SfMaps.Wpf
    -Syncfusion.SfSkinManager.Wpf
    -Syncfusion.Shared.Wpf
    -Syncfusion.Tools.Wpf
    -Syncfusion.XlsIO.Base
    -
    -Syncfusion.ReportViewer.WPF -
    - -## ReportWriter - - - - - - - - - - -
    Assembly references NuGet package
    -Syncfusion.Chart.Wpf
    -Syncfusion.Compression.Base
    -Syncfusion.DocIO.Base
    -Syncfusion.Gauge.Wpf
    -Syncfusion.Linq.Base
    -Syncfusion.Pdf.Base
    -Syncfusion.ReportControls.Wpf
    -Syncfusion.ReportWriter.Base
    -Syncfusion.SfMaps.Wpf
    -Syncfusion.Shared.Wpf
    -Syncfusion.XlsIO.Base -
    -No separate nuget -
    - ## Ribbon diff --git a/wpf/ReportViewer/Getting-Started.md b/wpf/ReportViewer/Getting-Started.md deleted file mode 100644 index fe08923f78..0000000000 --- a/wpf/ReportViewer/Getting-Started.md +++ /dev/null @@ -1,219 +0,0 @@ ---- -layout: post -title: Getting Started with WPF ReportViewer control | Syncfusion -description: Learn here about getting started with Syncfusion Essential Studio WPF ReportViewer control, its elements and more. -platform: wpf -control: ReportViewer -documentation: ug ---- - -# Getting Started with WPF Report Viewer - -## Creating ReportViewer through Visual Studio - -You can create a simple application through the Visual Studio Designer with the Syncfusion WPF ReportViewer control by using the following steps. - -1. Create new WPF application in Visual Studio. - -2. Add the ReportViewer from the Toolbox. - - Drag and drop the ReportViewer control from the Toolbox to the XAML Page. - - ![WPF ReportViewer drag and drop from toolbox](Getting-Started_images/Getting-Started_img1.png) - -3. To add references, Right-click on References and select Add Reference. - - ![Add the reference for WPF ReportViewer](Getting-Started_images/Getting-Started_img2.png) - -4. Add the following assemblies. - - * Syncfusion.Chart.Wpf - * Syncfusion.Compression.Base - * Syncfusion.DocIO.Base - * Syncfusion.Gauge.Wpf - * Syncfusion.Grid.Wpf - * Syncfusion.Linq.Base - * Syncfusion.Pdf.Base - * Syncfusion.PropertyGrid.Wpf - * Syncfusion.ReportControls.Wpf - * Syncfusion.ReportDesigner.Wpf - * Syncfusion.ReportViewer.Wpf - * Syncfusion.SfMaps.Wpf - * Syncfusion.SfSkinManager.Wpf - * Syncfusion.Shared.Wpf - * Syncfusion.Tools.Wpf - * Syncfusion.XlsIO.Base - - N> Refer the above assemblies from the installed location, C:\Program Files (x86)\Syncfusion\Essential Studio\WPF\{{ site.releaseversion }}\Assemblies - -5. Add the following code for creating ReportViewer using code. - - ~~~ xml - - - - - - - - - - ~~~ - -6. Set `ReportPath` and `ProcessingMode` to the ReportViewer. - - ~~~ xml - - ~~~ - -7. Set Visual Style to the ReportViewer. - - ~~~ csharp - SkinStorage.SetVisualStyle(this, "Metro"); - ~~~ - -8. Run the sample application and you can see the ReportViewer as displayed in the following screenshot. - - ![Report details of WPF ReportViewer](Getting-Started_images/Getting-Started_img3.png) - -## Show RDLC Reports - -1. Assign `ReportPath` and `ProcessingMode` to ReportViewer. - - ~~~ csharp - Syncfusion.Windows.Reports.Viewer.ReportViewer viewer= new Syncfusion.Windows.Reports.Viewer.ReportViewer; - viewer.ReportPath=@"../ReportTemplate/RDLC/ProductCatalog.rdlc"; - viewer.ProcessingMode = ProcessingMode.Local; - ~~~ - -2. Set Datasource to the RDLC Report and invoke `RefreshReport` to render the report. - - ~~~ csharp - viewer.DataSources.Clear(); - viewer.DataSources.Add(new ReportDataSource { Name = "ProductCatalog", Value = ProductCatalog.GetData() }); - viewer.RefreshReport(); - ~~~ - -3. Assign values for the datasource in RDLC. - - ~~~ csharp - #region Product details - - public class ProductCatalog - { - public string ProdSubCat { get; set; } - public string ProdModel { get; set; } - public string ProdCat { get; set; } - public string Description { get; set; } - public string ProdName { get; set; } - public string ProductNumber { get; set; } - public string Color { get; set; } - public string Size { get; set; } - public double? Weight { get; set; } - public double? StandardCost { get; set; } - public string Style { get; set; } - public string Class { get; set; } - public double? ListPrice { get; set; } - public static IList GetData() - { - List datas = new List(); - ProductCatalog data = null; - data = new ProductCatalog() - { - ProdSubCat = "Road Frames", - ProdModel = "HL Road Frame", - ProdCat = "Components", - Description = "Our lightest and best quality aluminum frame made from the newest alloy; it is welded and heat-treated for strength. Our innovative design results in maximum comfort and performance.", - ProdName = "HL Road Frame - Black, 58", - ProductNumber = "FR-R92B-58", - Color = "Black", - Size = "58", - Weight = 2.24, - StandardCost = 1059.3100, - Style = "U ", - Class = "H ", - ListPrice = 1431.5000 - }; - datas.Add(data); - data = new ProductCatalog() - { - ProdSubCat = "Road Frames", - ProdModel = "HL Road Frame", - ProdCat = "Components", - Description = "Our lightest and best quality aluminum frame made from the newest alloy; it is welded and heat-treated for strength. Our innovative design results in maximum comfort and performance.", - ProdName = "HL Road Frame - Red, 58", - ProductNumber = "FR-R92R-58", - Color = "Red", - Size = "58", - Weight = 2.24, - StandardCost = 1059.3100, - Style = "U ", - Class = "H ", - ListPrice = 1431.5000 - }; - datas.Add(data); - data = new ProductCatalog() - { - ProdSubCat = "Helmets", - ProdModel = "Sport-100", - ProdCat = "Accessories", - Description = "Universal fit, well-vented, lightweight , snap-on visor.", - ProdName = "Sport-100 Helmet, Red", - ProductNumber = "HL-U509-R", - Color = "Red", - Size = "", - Weight = null, - StandardCost = 13.0863, - Style = "", - Class = "", - ListPrice = 34.9900 - }; - datas.Add(data); - return datas; - } - } - #endregion - ~~~ - -4. Run the application. The following output is displayed. - - ![WPF ReportViewer Shows the RDLC report](Getting-Started_images/Getting-Started_img4.png) - -## Load SSRS Reports - -1. To load SSRS reports, initialize ReportViewer control and set the `ReportPath`, `ProcessingMode` and `ReportServerUrl`. - - ~~~ csharp - Syncfusion.Windows.Reports.Viewer.ReportViewer viewer = new Syncfusion.Windows.Reports.Viewer.ReportViewer(); - viewer.ReportPath = @"/SSRSSamples/Territory Sales"; - viewer.ReportServerUrl = @"http://mvc.syncfusion.com/reportserver"; - viewer.ProcessingMode = ProcessingMode.Remote; - viewer.ReportServerCredential = new System.Net.NetworkCredential("ssrs", "RDLReport1"); - ~~~ - -2. Add the credential information to the datasource. - - ~~~ csharp - List crdentials = new List(); - - foreach (var dataSource in viewer.GetDataSources()) - { - DataSourceCredentials credn = new DataSourceCredentials(); - credn.Name = dataSource.Name; - credn.UserId = "ssrs1"; - credn.Password = "RDLReport1"; - crdentials.Add(credn); - } - viewer.SetDataSourceCredentials(crdentials); - viewer.RefreshReport(); - ~~~ - -3. Run the application. The following output displays. - - ![WPF ReportViewer shows the SSRS report](Getting-Started_images/Getting-Started_img5.png) \ No newline at end of file diff --git a/wpf/ReportViewer/Getting-Started_images/Getting-Started_img1.png b/wpf/ReportViewer/Getting-Started_images/Getting-Started_img1.png deleted file mode 100644 index cd5b640970..0000000000 Binary files a/wpf/ReportViewer/Getting-Started_images/Getting-Started_img1.png and /dev/null differ diff --git a/wpf/ReportViewer/Getting-Started_images/Getting-Started_img2.png b/wpf/ReportViewer/Getting-Started_images/Getting-Started_img2.png deleted file mode 100644 index 2ae0eeb323..0000000000 Binary files a/wpf/ReportViewer/Getting-Started_images/Getting-Started_img2.png and /dev/null differ diff --git a/wpf/ReportViewer/Getting-Started_images/Getting-Started_img3.png b/wpf/ReportViewer/Getting-Started_images/Getting-Started_img3.png deleted file mode 100644 index 124af838fb..0000000000 Binary files a/wpf/ReportViewer/Getting-Started_images/Getting-Started_img3.png and /dev/null differ diff --git a/wpf/ReportViewer/Getting-Started_images/Getting-Started_img4.png b/wpf/ReportViewer/Getting-Started_images/Getting-Started_img4.png deleted file mode 100644 index b3d46f3b94..0000000000 Binary files a/wpf/ReportViewer/Getting-Started_images/Getting-Started_img4.png and /dev/null differ diff --git a/wpf/ReportViewer/Getting-Started_images/Getting-Started_img5.png b/wpf/ReportViewer/Getting-Started_images/Getting-Started_img5.png deleted file mode 100644 index ddacc1c6a1..0000000000 Binary files a/wpf/ReportViewer/Getting-Started_images/Getting-Started_img5.png and /dev/null differ diff --git a/wpf/ReportViewer/HTML-Formatted-Data-Support-in-Report-Viewer.md b/wpf/ReportViewer/HTML-Formatted-Data-Support-in-Report-Viewer.md deleted file mode 100644 index 3bd5894caf..0000000000 --- a/wpf/ReportViewer/HTML-Formatted-Data-Support-in-Report-Viewer.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -layout: post -title: HTML formatted data in Reports | ReportViewer | WPF | Syncfusion -description: HTML formatted data in Reports in Syncfusion Essential Studio WPF ReportViewer control, its elements, and more. -platform: wpf -control: ReportViewer -documentation: ug ---- - -# HTML Formatted Data with Report - -Report viewer supports showing the HTML formatted data with Textbox report items along with the inline CSS. This section provides the information about supported tags and limitations. - -## Supported HTML Tags - -* Hyperlinks: `` -* Fonts: `` -* Header, style and block elements: `,
    , ,

    ,

    ,
  • , ` -* Text format: `, , , ` - -### Limitations of Cascading Style Sheet Attributes - -The following is a list of attributes that are supported: - -* text-align, text-indent -* font-family -* font-size -* Only valid RDL size values are supported in absolute CSS length units. Supported units are: in, cm, mm, pt, pc, px, ex, and em. -* Relative CSS length units are ignored and are not supported. Unsupported units include percentage (%), and rem. -* color -* padding, padding-bottom, padding-top, padding-right, and padding-left -* font-weight \ No newline at end of file diff --git a/wpf/ReportViewer/How-To/Add-Custom-Report-Item-images/Custom-Report-Item-1.png b/wpf/ReportViewer/How-To/Add-Custom-Report-Item-images/Custom-Report-Item-1.png deleted file mode 100644 index 1e44552683..0000000000 Binary files a/wpf/ReportViewer/How-To/Add-Custom-Report-Item-images/Custom-Report-Item-1.png and /dev/null differ diff --git a/wpf/ReportViewer/How-To/Add-Custom-Report-Item-images/Custom-Report-Item-2.png b/wpf/ReportViewer/How-To/Add-Custom-Report-Item-images/Custom-Report-Item-2.png deleted file mode 100644 index 441753c9fd..0000000000 Binary files a/wpf/ReportViewer/How-To/Add-Custom-Report-Item-images/Custom-Report-Item-2.png and /dev/null differ diff --git a/wpf/ReportViewer/How-To/Add-Custom-Report-Item-images/Custom-Report-Item-3.png b/wpf/ReportViewer/How-To/Add-Custom-Report-Item-images/Custom-Report-Item-3.png deleted file mode 100644 index 47389468a3..0000000000 Binary files a/wpf/ReportViewer/How-To/Add-Custom-Report-Item-images/Custom-Report-Item-3.png and /dev/null differ diff --git a/wpf/ReportViewer/How-To/Add-Custom-Report-Item.md b/wpf/ReportViewer/How-To/Add-Custom-Report-Item.md deleted file mode 100644 index 03c474fdc0..0000000000 --- a/wpf/ReportViewer/How-To/Add-Custom-Report-Item.md +++ /dev/null @@ -1,212 +0,0 @@ ---- -layout: post -title: Custom Report Item in WPF ReportViewer control | Syncfusion -description: Creating a custom report item run-time component in Syncfusion WPF ReportViewer control, its elements, and more. -platform: WPF -control: ReportViewer -documentation: ug ---- - -A custom report item allows you to add the functionality that is not natively supported in the RDL or extend the functionality of existing controls in the RDL standard. The run-time component allows to render the custom report item in report viewer. - -## Creating a custom report item run-time component - -The run-time component of the custom report item is implemented by using CLS-compliant language, and is called by the report processor at run-time. The below section provides detail to create run-time component with the barcode custom report item in report viewer. - -### Create report item assembly - -1. Open the Visual Studio and select the class library project type, then name the project as "Syncfusion.Extensions.BarcodeCRI" for the run-time component. - ![Add-Custom-Report-Item-images2](Add-Custom-Report-Item-images/Custom-Report-Item-2.png) -2. Add the reference "Syncfusion.ReportControls.Wpf", "Syncfusion.SfBarcode.WPF" and "Syncfusion.Shared.WPF" for the extension project. - ![Add-Custom-Report-Item-images3](Add-Custom-Report-Item-images/Custom-Report-Item-3.png) - - N> Refer the above assemblies from the below installed location.For Essential Studio: C:\Program Files (x86)\Syncfusion\Essential Studio{{ site.releaseversion }}\Assemblies -3. Add a class "BarcodeCustomReportItem" by inheriting the `ICustomReportItem` interface. - -### Implementing the ICustomReportItem interface - -To create a CustomReportItem run-time component, you should implement the `ICustomReportItem` interface, it generates the following two method stubs. -
  • - - - - - - - - - - - - -
    Interface methodsDefinition
    GenerateReportItemDefinitionCalled first and is used for setting definition properties and creating the image object that contains both the definition and instance properties that are used for rendering the item.
    EvaluateReportItemInstanceCalled after the definition objects have been evaluated, and it provides the instance objects that will be used for rendering the item.
    - -{% highlight c# %} -namespace Syncfusion.Extensions.BarcodeCRI -{ - public class BarcodeCustomReportItem : RDL.Data.ICustomReportItem - { - #region ICustomReportItem Members - - public void GenerateReportItemDefinition(CustomReportItem cri) - { - //It will create the Image object - cri.CreateCriImageDefinition(); - } - - public void EvaluateReportItemInstance(CustomReportItem cri) - { - Thread thread = new Thread(delegate () - { - RDL.Data.Image imageReportItem = (RDL.Data.Image)cri.GeneratedReportItem; - imageReportItem.ImageData = DrawImage(cri); - }, (1024 * 1024 * 64)); - - thread.SetApartmentState(ApartmentState.STA); - thread.Start(); - thread.Join(); - } - - #endregion - - //To create image from custom report item control - private byte[] DrawImage(CustomReportItem customReportItem) - { - try - { - byte[] imageData = null; - SfBarcode barcodeControl = new SfBarcode(); - barcodeControl.Background = new SolidColorBrush(Colors.Transparent); - barcodeControl.Height = customReportItem.Height.ToPixels(); - barcodeControl.Width = customReportItem.Width.ToPixels(); - barcodeControl.Text = (string)LookupCustomProperty(customReportItem.CustomProperties, "BarcodeValue"); - barcodeControl.InvalidateArrange(); - barcodeControl.UpdateLayout(); - MemoryStream stream = new ImageConversion().CovertToImage(barcodeControl); - imageData = new byte[(int)stream.Length]; - stream.Seek(0, SeekOrigin.Begin); - stream.Read(imageData, 0, (int)stream.Length); - return imageData; - } - catch - { - return null; - } - } - } -} -{% endhighlight %} - -### Convert custom report item as image - -The custom report item is rendered as image in report viewer, so that the run-time component need to be converted as an image. The following converter is used to generate the image for rendering. - -{% highlight c# %} - -internal partial class ImageConversion : UserControl -{ - Canvas InnerCanvas; - - public MemoryStream CovertToImage(Control innerControl) - { - try - { - this.InnerCanvas = new Canvas(); - this.Content = this.InnerCanvas; - - innerControl.Margin = new Thickness(0); - InnerCanvas.Children.Add(innerControl); - - InnerCanvas.Width = innerControl.Width; - InnerCanvas.Height = innerControl.Height; - - Canvas canvas = this.InnerCanvas; - canvas.Measure(new Size((int)canvas.Width, (int)canvas.Height)); - canvas.Arrange(new Rect(new Size((int)canvas.Width, (int)canvas.Height))); - - int Height = ((int)(InnerCanvas.ActualHeight)); - int Width = ((int)(InnerCanvas.ActualWidth)); - - this.Height = InnerCanvas.Height; - this.Width = InnerCanvas.Width; - InnerCanvas.LayoutTransform = null; - - Size size = new Size(InnerCanvas.ActualWidth, InnerCanvas.ActualHeight); - - InnerCanvas.Background = Brushes.White; - InnerCanvas.Arrange(new Rect(size)); - InnerCanvas.UpdateLayout(); - - RenderTargetBitmap rtb = new RenderTargetBitmap(Width, Height, 300, 300, PixelFormats.Default); - rtb.Render(InnerCanvas); - - var Source = new MemoryStream(); - BitmapEncoder encoder = new BmpBitmapEncoder(); - encoder.Frames.Add(BitmapFrame.Create(rtb)); - encoder.Save(Source); - return Source; - } - catch - { - return null; - } - } -} -{% endhighlight %} - -#### Build project - -You can clean and build the extension project, it will generate the run-time component assembly "Syncfusion.Extensions.BarcodeCRI.dll" in the bin folder of the project. - -N> You can create a standalone report viewer application with the help of given [Getting Started Documentation.](/wpf/reportviewer/getting-started) - -You can download the extension project with barcode custom report item for report viewer from [here](http://www.syncfusion.com/downloads/support/directtrac/general/ze/Syncfusion.Extensions.BarcodeCRI1898349564). - -## Deploy a custom report item - -To deploy a custom report item, you must modify the application configuration files or create "ReportExtensions.config" file and copy the run-time component assembly (Syncfusion.Extensions.BarcodeCRI) and its dependent assemblies to the bin folder of your application. The deployment requires configuration to process the extensions, and the following describes about configuration settings. - -Create a "ReportExtensions.config" file in your application. The following "configSections" section is mandatory to process the extension in the control, so add it as shown in the following code. - -{% highlight xml %} - -
    - -{% endhighlight %} - -You must add the `ReportItem` tag for all newly added custom report item with the following attributes. - - - - - - - - - - - - - - - - - - -
    AttributeDescription
    NameName of your report item that is going to be displayed in the list.
    AssemblyName of the newly created report item assembly.
    TypeReport item class name with the namespace.
    - -{% highlight xml %} - - - - - -{% endhighlight %} - -After creating the config file, add it to the report viewer application. Run the application, output with the barcode custom report item is rendered as below. - -![Add-Custom-Report-Item-images1](Add-Custom-Report-Item-images/Custom-Report-Item-1.png) - -Shows the invoice report rendered with the barcode custom report item. - {:.caption} - diff --git a/wpf/ReportViewer/How-To/Can-you-use-Azure-SSRS-reports-in-ReportViewer.md b/wpf/ReportViewer/How-To/Can-you-use-Azure-SSRS-reports-in-ReportViewer.md deleted file mode 100644 index ef2c10792e..0000000000 --- a/wpf/ReportViewer/How-To/Can-you-use-Azure-SSRS-reports-in-ReportViewer.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -layout: post -title: Can you use Azure SSRS reports in WPF ReportViewer | Syncfusion -description: Can you use azure ssrs reports in Syncfusion Essential Studio WPF ReportViewer control, its elements, and more. -platform: wpf -control: ReportViewer -documentation: ug ---- - -# Can you use Azure SSRS reports in ReportViewer? - -Yes, Syncfusion Report Viewer supports viewing and exporting Azure hosted reports. By default, Azure Reporting Service works with a Forms credential. So, provide your Forms credential in the ReportServerFormsCredential to view the report. - -{% highlight C# %} -this.reportViewer1.ReportLoaded += (sen, arg) => -{ - IList < DataSourceCredentials > credentials = new List < DataSourceCredentials > (); - foreach(var datasource in this.reportViewer1.GetDataSources()) - { - DataSourceCredentials creden = new DataSourceCredentials(); - creden.Name = datasource.Name; - creden.UserId = "username"; - creden.Password = "password"; - credentials.Add(creden); - } - this.reportViewer1.SetDataSourceCredentials(credentials); -}; -this.reportViewer1.ReportPath = " / AzureReportProject / Reports"; -this.reportViewer1.ReportServerUrl = @"http://ServerName/ReportServer"; -this.reportViewer1.ReportServerFormsCredential = new System.Net.NetworkCredential("userID", "Password"); -this.reportViewer1.RefreshReport(); -{% endhighlight %} \ No newline at end of file diff --git a/wpf/ReportViewer/How-To/Can-you-use-SharePoint-Integrated-Mode-Report-Server-reports-in-ReportViewer.md b/wpf/ReportViewer/How-To/Can-you-use-SharePoint-Integrated-Mode-Report-Server-reports-in-ReportViewer.md deleted file mode 100644 index 254d9f6657..0000000000 --- a/wpf/ReportViewer/How-To/Can-you-use-SharePoint-Integrated-Mode-Report-Server-reports-in-ReportViewer.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -layout: post -title: Can you use SharePoint Integrated Mode in WPF ReportViewer| Syncfusion -description: Can you use sharepoint integrated mode report server reports in Syncfusion WPF ReportViewer control, its elements, and more. -platform: wpf -control: ReportViewer -documentation: ug ---- - -# Can you use SharePoint Integrated Mode in ReportViewer? - -Yes, Syncfusion Report Viewer supports viewing and exporting SharePoint Integrated Mode Reporting Service reports. - -{% highlight C# %} -this.reportViewer1.ReportLoaded += (sen, arg) => -{ - IList < DataSourceCredentials > credentials = new List < DataSourceCredentials > (); - foreach(var datasource in this.reportViewer1.GetDataSources()) - { - DataSourceCredentials creden = new DataSourceCredentials(); - creden.Name = datasource.Name; - creden.UserId = "username"; - creden.Password = "password"; - credentials.Add(creden); - } - this.reportViewer1.SetDataSourceCredentials(credentials); -}; -this.reportViewer1.ReportPath = @" http://ServerName/testreport.rdl"; -this.reportViewer1.ReportServerUrl = @"http: //ServerName/ReportServer"; -this.reportViewer1.RefreshReport(); -{% endhighlight %} \ No newline at end of file diff --git a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer.md b/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer.md deleted file mode 100644 index a378b8ec2a..0000000000 --- a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer.md +++ /dev/null @@ -1,135 +0,0 @@ ---- -layout: post -title: Create RDLC Report In VS2010 | ReportViewer | WPF | Syncfusion -description: Create rdlc report in vs2010 and show it in Syncfusion WPF ReportViewer control, its elements, and more. -platform: wpf -control: ReportViewer -documentation: ug ---- - -# Create RDLC Report In VS2010 and Show It in Report Viewer - -This section covers the steps to create RDLC report in VS2010 and shows the created RDLC report in the Report viewer. - -1. Create a new WPF application with .NET Framework 4. The Solution Explorer dialog opens. - -2. To add a new RDLC report in the WPF application, right-click on the newly added WPF application in the Solution Explorer. - -3. Select Add, and then click New Item. - - ![Create-RDLC-Report-images1](Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img1.png) - -4. Then Add New Item dialog opens. - -5. To create a dataset for the RDLC report, click Reporting under Visual C# Items. - -6. Click Report, and then click Add. - - ![Create-RDLC-Report-images2](Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img2.png) - -7. The Report Wizard opens. - -8. Enter a dataset name in Name field.To choose a data source for the dataset, click New on the right of Data source drop-down combo box. - - ![Create-RDLC-Report-images3](Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img3.png) - -9. Then Data Source Configuration Wizard opens. - -10. Click Database under Where will the application get data from? and then click Next. - - ![Create-RDLC-Report-images4](Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img4.png) - -11. Click Entity Data Model under What type of database model do you want to use? and click Next. - - ![Create-RDLC-Report-images5](Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img5.png) - -12. Then Entity Data Model Wizard opens. - -13. Click Generate from database under what should the model contain? and click Next. - - ![Create-RDLC-Report-images6](Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img6.png) - -14. Select a data connection from Which data connection should your application use to connect to the database? drop-down combo box. Click Next. - - ![Create-RDLC-Report-images7](Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img7.png) - -15. Select the required object and click Next. The Data Source Configuration Wizard opens. - - ![Create-RDLC-Report-images8](Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img8.png) - -16. Select Object under Where will the application get data from? and click Next. - - ![Create-RDLC-Report-images9](Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img9.png) - -17. Select the object under What objects do you want to bind to? and click Finish. - - ![Create-RDLC-Report-images10](Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img10.png) - -18. The Report Wizard shows the details of the dataset under Fields and Click Next. - - ![Create-RDLC-Report-images11](Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img11.png) - -19. Arrange the available fields to row groups, column groups and values field. Click Next. - - ![Create-RDLC-Report-images12](Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img12.png) - -20. Choose the layout design in the next window and click Next. - - ![Create-RDLC-Report-images13](Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img13.png) - -21. In the next window, choose the style and click Finish. - - ![Create-RDLC-Report-images14](Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img14.png) - -22. On Toolbox window, in Report Items, select Table. - - ![Create-RDLC-Report-images15](Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img15.png) - -23. Draw a table on the WPF Designer window. - - ![Create-RDLC-Report-images16](Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img16.png) - -24. Drag the dataset field on the Table. - - ![Create-RDLC-Report-images17](Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img17.png) - -25. To add Report Viewer in the WPF application, select ReportViewer under Reporting. - - ![Create-RDLC-Report-images18](Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img18.png) - -26. Set the ReportPath and the ProcessingMode as local in the Report Viewer. - - ~~~xml - - - - - - ~~~ - -27. Set the DataSource information in the code to view the report in the Report Viewer. - - ~~~csharp - public MainWindow() - { - InitializeComponent(); - this.Loaded += new RoutedEventHandler(MainWindow_Loaded); - } - void MainWindow_Loaded(object sender, RoutedEventArgs e) - { - this.viewer.DataSources.Clear(); - this.viewer.DataSources.Add(new Syncfusion.Windows.Reports.ReportDataSource() - { - Name = "Employee", - Value = new AdventureWorksEntities().Addresses.Take(100) - }); - this.viewer.RefreshReport(); - } - ~~~ - -28. Run the application. The following output is displayed. - - ![Create-RDLC-Report-images19](Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img19.png) \ No newline at end of file diff --git a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img1.png b/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img1.png deleted file mode 100644 index e3f114a180..0000000000 Binary files a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img1.png and /dev/null differ diff --git a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img10.png b/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img10.png deleted file mode 100644 index 94a7f0417f..0000000000 Binary files a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img10.png and /dev/null differ diff --git a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img11.png b/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img11.png deleted file mode 100644 index cbfab85730..0000000000 Binary files a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img11.png and /dev/null differ diff --git a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img12.png b/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img12.png deleted file mode 100644 index cf09553dd5..0000000000 Binary files a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img12.png and /dev/null differ diff --git a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img13.png b/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img13.png deleted file mode 100644 index 8c2c1b510b..0000000000 Binary files a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img13.png and /dev/null differ diff --git a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img14.png b/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img14.png deleted file mode 100644 index 6b378cbc48..0000000000 Binary files a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img14.png and /dev/null differ diff --git a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img15.png b/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img15.png deleted file mode 100644 index 5a6c7f1079..0000000000 Binary files a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img15.png and /dev/null differ diff --git a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img16.png b/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img16.png deleted file mode 100644 index 1711de2ce1..0000000000 Binary files a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img16.png and /dev/null differ diff --git a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img17.png b/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img17.png deleted file mode 100644 index 25a7fed420..0000000000 Binary files a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img17.png and /dev/null differ diff --git a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img18.png b/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img18.png deleted file mode 100644 index a7ed6fb4a5..0000000000 Binary files a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img18.png and /dev/null differ diff --git a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img19.png b/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img19.png deleted file mode 100644 index 04063d4e5d..0000000000 Binary files a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img19.png and /dev/null differ diff --git a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img2.png b/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img2.png deleted file mode 100644 index 555b9ceee5..0000000000 Binary files a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img2.png and /dev/null differ diff --git a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img3.png b/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img3.png deleted file mode 100644 index 65137a2b9a..0000000000 Binary files a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img3.png and /dev/null differ diff --git a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img4.png b/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img4.png deleted file mode 100644 index 0385d04b13..0000000000 Binary files a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img4.png and /dev/null differ diff --git a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img5.png b/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img5.png deleted file mode 100644 index 6a3486c49d..0000000000 Binary files a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img5.png and /dev/null differ diff --git a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img6.png b/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img6.png deleted file mode 100644 index 8e15d07d38..0000000000 Binary files a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img6.png and /dev/null differ diff --git a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img7.png b/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img7.png deleted file mode 100644 index ab9e9f0cdc..0000000000 Binary files a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img7.png and /dev/null differ diff --git a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img8.png b/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img8.png deleted file mode 100644 index 06a2851ed7..0000000000 Binary files a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img8.png and /dev/null differ diff --git a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img9.png b/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img9.png deleted file mode 100644 index cde1497442..0000000000 Binary files a/wpf/ReportViewer/How-To/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_images/Create-RDLC-Report-In-VS2010-and-Show-It-in-Report-Viewer_img9.png and /dev/null differ diff --git a/wpf/ReportViewer/How-To/Provide-the-Data-Source-credential-information-in-code-behind.md b/wpf/ReportViewer/How-To/Provide-the-Data-Source-credential-information-in-code-behind.md deleted file mode 100644 index 033208d05e..0000000000 --- a/wpf/ReportViewer/How-To/Provide-the-Data-Source-credential-information-in-code-behind.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -layout: post -title: Data Source credential information in WPF ReportViewer | Syncfusion -description: Provide the data source credential information in code behind for Syncfusion WPF ReportViewer control, its elements, and more. -platform: wpf -control: ReportViewer -documentation: ug ---- - -# Provide the Data Source credential information in code behind - -Use SetDataSourceCredentials to provide the data source credential for the Report Viewer. Use this method in a ReportLoaded event to avoid unexpected issues. - -{% highlight C# %} -this.reportViewerControl.ReportLoaded += new ReportLoadedEventHandler (reportViewerControl_ReportLoaded); -void reportViewerControl_ReportLoaded(object sender, EventArgs e) -{ - var dataSources = this.reportViewerControl.GetDataSources(); - List credentials=new List (); - foreach (var dataSource in dataSources) - { - DataSourceCredentials credential= new DataSourceCredentials (); - credential.Name = dataSource.Name; // Sets the credential based on the data source. - credential.UserId = "userName"; - credential.Password = "password"; - credentials.Add (credential); - } - this.reportViewerControl.SetDataSourceCredentials (credentials); -} -{% endhighlight %} \ No newline at end of file diff --git a/wpf/ReportViewer/How-To/Provide-the-Report-Parameters-in-code-behind.md b/wpf/ReportViewer/How-To/Provide-the-Report-Parameters-in-code-behind.md deleted file mode 100644 index 8e85a1140f..0000000000 --- a/wpf/ReportViewer/How-To/Provide-the-Report-Parameters-in-code-behind.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -layout: post -title: Report Parameters in code behind | ReportViewer | WPF | Syncfusion -description: Provide the report parameters in code behind for Syncfusion WPF ReportViewer control, its elements, and more. -platform: wpf -control: ReportViewer -documentation: ug ---- - -# Provide the Report Parameters in code behind - -Use the SetParameters method in the Report Viewer to provide the parameter values for rendering reports. Note that this method can also be used in a ReportLoaded event to avoid unexpected issues. - -{% highlight C# %} -this.reportViewerControl.ReportLoaded += new Syncfusion.Windows.Reports.ReportLoadedEventHandler(reportViewerControl_ReportLoaded); -void reportViewerControl_ReportLoaded(object sender, EventArgs e) -{ - //this.reportViewerControl.SetParameters -} -{% endhighlight %} \ No newline at end of file diff --git a/wpf/ReportViewer/How-To/Why-do-you-have-to-provide-SSRS-shared-embedded-data-source-credential-information-in-code-behind.md b/wpf/ReportViewer/How-To/Why-do-you-have-to-provide-SSRS-shared-embedded-data-source-credential-information-in-code-behind.md deleted file mode 100644 index 1d30619262..0000000000 --- a/wpf/ReportViewer/How-To/Why-do-you-have-to-provide-SSRS-shared-embedded-data-source-credential-information-in-code-behind.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -layout: post -title: SSRS shared embedded datasource in WPF ReportViewer | Syncfusion -description: Why do you have to provide ssrs shared/embedded datasource credential in code behind for Syncfusion WPF ReportViewer control, its elements, and more. -platform: wpf -control: ReportViewer -documentation: ug ---- - -# SSRS shared/embedded datasource credential information in ReportViewer - -RDL reports have limitations for retrieving a password from the SQL Reporting Service (SSRS) for security reasons. Therefore, the credential information is provided when the data source credential is saved in the Reporting Server for shared or embedded data sources. - -The following code provides SSRS shared/embedded data source credential information. - -{% highlight C# %} -void reportViewerControl_ReportLoaded(object sender, EventArgs e) -{ - var dataSources = this.reportViewerControl.GetDataSources(); - List credentials=new List (); - foreach (var dataSource in dataSources) - { - DataSourceCredentials credential= new DataSourceCredentials (); - credential.Name = dataSource.Name; // Sets the credential based on the data source. - credential.UserId = "userName"; - credential.Password = "password"; - credentials.Add (credential); - } - this.reportViewerControl.SetDataSourceCredentials (credentials); -} -{% endhighlight %} \ No newline at end of file diff --git a/wpf/ReportViewer/Limitations.md b/wpf/ReportViewer/Limitations.md deleted file mode 100644 index 7f6faa780f..0000000000 --- a/wpf/ReportViewer/Limitations.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -layout: post -title: Limitations | ReportViewer | WPF | Syncfusion -description: Learn here about Limitations in Syncfusion Essential Studio WPF ReportViewer control, its elements, and more. -platform: wpf -control: ReportViewer -documentation: ug ---- - -# Limitations in WPF ReportViewer control - -## RDL Specification support - -* ReportViewer control does not support RDL Specification for SQL Server 2000 and RDL Specification for SQL Server 2005. - -## Layout Process - -* Syncfusion ReportViewer control has some limitations in Tablix Cell split Layout process in comparison with MS ReportViewer. When table cell width value exceeds the page width, the entire cell moves to the next page in order to display the complete cell items. - -## Unsupported expression - -* Object function and VB function do not have complete support in ReportViewer. -* VB Code functions are not supported in Silverlight and WinRT ReportViewer. \ No newline at end of file diff --git a/wpf/ReportViewer/Overview.md b/wpf/ReportViewer/Overview.md deleted file mode 100644 index 9c2ddbd31b..0000000000 --- a/wpf/ReportViewer/Overview.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -layout: post -title: About WPF ReportViewer control | Syncfusion -description: Learn here all about introduction of Syncfusion Essential Studio WPF ReportViewer control, its elements and more. -platform: wpf -control: ReportViewer -documentation: ug ---- - -# WPF ReportViewer Overview - -Essential ReportViewer is a rendering component to display reports defined in the Microsoft’s RDL format (2008 or 2008 R2) on both WPF and Silverlight applications. By using the ReportViewer, you can display tabular, graphical or free-form reports that make use of relational, multi-dimensional, XML and object data source. It supports both Server and Client reports. - -The important features of WPF ReportViewer are listed as follows: - -* RDL Specification - Supports RDL Specification for SQL Server 2008 and RDL Specification for SQL Server 2008 R2 only. You can refer MSDN for list of available specifications - [msdn.microsoft.com/library/dd297486(SQL.100)](https://docs.microsoft.com/en-us/previous-versions/sql/sql-server-2008/dd297486(v=sql.100)). -* Data sources - You can use advanced Database server data sources in the ReportViewer (SQL, Oracle and Azure). -* Charts - Show all basic types of Charts that are available in Microsoft RDL reports. -* Tablix - Shows the summaries and simple tables. -* Gauge - Shows measurement values by using expression values. -* Textbox - Shows textbox data with expression support. -* Report Parameter - View the report based on report parameter value. -* Expression - You can use expression to handle reports. -* Printing - Prints the assigned document. -* Customization - You can customize the ReportViewer appearance. - -By using the ReportViewer, you can show variety of interactive MicrosoftReport Definition Language (RDL) standard reports. The reports can be exported to PDF and displayed by using ReportViewer. - diff --git a/wpf/ReportViewer/Report-Viewer-API.md b/wpf/ReportViewer/Report-Viewer-API.md deleted file mode 100644 index 5b9084436d..0000000000 --- a/wpf/ReportViewer/Report-Viewer-API.md +++ /dev/null @@ -1,209 +0,0 @@ ---- -layout: post -title: ReportViewer API | ReportViewer | WPF | Syncfusion -description: Learn here about List of Reportviewer API of Syncfusion Essential Studio for WPF, its elements, features, and more. -platform: wpf -control: ReportViewer -documentation: ug ---- - -# ReportViewer API of Essential Studio WPF - -## Properties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    PropertyDescriptionTypeData Type
    ReportPathGets or sets the file Reporting Server Report Path or local system path.Dependency Propertystring
    DataSourcesGet a collection of data sources used by the report.-ReportDataSourceCollection
    CurrentPageGets or sets the current pageDependency PropertyInt
    ProcessingModeGets or sets the processing mode namely Remote(from ReportingService or process DataSource from Database server) or LocalDependency PropertyEnum
    ReportServerUrlGets or sets the ReportServerUrl of the Report ServerDependency PropertyString
    ShowContextMenuGets or sets the ContextMenu visibilityDependency PropertyBoolean
    ShowPrintButtonGets or sets a value that indicates whether Print button is visible on the toolbar.Dependency PropertyBoolean
    ShowRefreshButtonGets or sets a value that indicates whether the Refresh button is visible.Dependency PropertyBoolean
    ShowToolBarGets or sets a value that indicates whether the toolbar is visible on the control.Dependency PropertyBoolean
    ShowZoomControlGets or sets a value that indicates whether the Zoom list box is visible.Dependency PropertyBoolean
    ViewModeGets or sets a value that indicates whether it is Normal or Print ViewDependency Propertyenum
    ShowPdfExportButtonGets or sets a value that indicates whether the PDF button is visibleDependency PropertyBoolean
    ShowXPSExportButtonGets or sets a value that indicates whether the XPS Export Button is VisibleDependency PropertyBoolean
    ShowExportControlsGet or set a value that indicates whether the Export control is VisibleDependency PropertyBoolean
    ShowPageNavigationControlsGet or set a value that indicates whether the page navigation controls is visibleDependency PropertyBoolean
    ReportServerCredentialCredential access to Report ServerDependency PropertyICredentials
    ShowPageLayoutControlGets or sets a value that indicates whether the page layout control is visibleDependency PropertyBoolean
    ShowParametersBlockGets or sets a value that indicates whether the parameter block control is visibleDependency PropertyBoolean
    - -## Methods - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    MethodDescriptionParametersReturn Type
    RefreshReportCauses the local report to be rendered with new data.-Void
    GetParametersGet the necessary parameters for the report-ReportParameterInfoCollection
    GetTotalPageGets the total pages of the report-Void
    GetDataSetNamesGet the dataset names from the local report-IList<string>
    LoadReportLoads the Local report for processingStreamvoid
    PrintDisplays the Print dialog box.-Void
    ShowNormalViewDisplays the Normal view of the Report-Void
    SetParametersSet the necessary parameters for the reportReportParameter[]void
    - -## Events - - - - - - - - - - - - - - - - - - -
    EventDescription
    ViewModeChangedThe event is triggered when the view is changed to normal and print view
    ViewButtonClickThe event is triggered when the view button is clicked
    SubreportProcessingThe event is triggered when the report is RDLC and contains with sub report.
    \ No newline at end of file diff --git a/wpf/ReportViewer/Report-Viewer-Theme-support.md b/wpf/ReportViewer/Report-Viewer-Theme-support.md deleted file mode 100644 index 5751c88f70..0000000000 --- a/wpf/ReportViewer/Report-Viewer-Theme-support.md +++ /dev/null @@ -1,478 +0,0 @@ ---- -layout: post -title: ReportViewer Theme support | ReportViewer | WPF | Syncfusion -description: ReportViewer theme support in Syncfusion Essential Studio WPF ReportViewer Control, its elements, and more. -platform: wpf -control: ReportViewer -documentation: ug ---- - -# ReportViewer Theme support - -Theme support for ReportViewer is provided by modifying the UserControl as a ControlTemplate. You can now modify the ReportViewer in your own style, by writing a customized control template for ReportViewer. - -To customize a ReportViewer, you have to modify the following control parts. - -* PART_exportControl -* PART_comboBoxPageZoom -* PART_Zoom -* PART_ShowError -* PART_PageViewBody -* PART_PageFooterBorder -* PART_PageBodyBorder -* PART_PageHeaderBorder -* PART_scrollViewer -* PART_scrollDSCredentialBlock -* PART_groupBoxExpandedExceptionScroll -* PART_scrollViewerParamBlock -* PART_canvasContentPage -* PART_CanvasFooter -* PART_CanvasHeader -* PART_treeItemArea -* PART_renderArea -* PART_grid_ReportParameterBlock -* PART_gridRenderingRegion -* PART_ExceptionGrid -* PART_gridException -* PART_gridLoadingIndicator -* PART_MainGrid -* PART_viewerSplitter -* PART_PageView -* PART_sPanel_Head -* PART_PageViewContainer -* PART_toolBar -* PART_DocumentMap -* PART_btnViewReport1 -* PART_buttonNext -* PART_buttonParameters -* PART_buttonPrint -* PART_buttonFirst -* PART_buttonLast -* PART_buttonPrevious -* PART_buttonShowOrHideDocumentMap -* PART_buttonPrintLayout -* PART_buttonPageSetup -* PART_buttonRefresh -* PART_buttonViewReport -* PART_buttonFind -* PART_button back -* PART_toggleShowDetails -* PART_textBoxTotalPages -* PART_labelOf -* PART_textBlockException -* PART_textBoxFind -* PART_textBoxCurrentPage -* PART_textBlockStackTrace -* PART_gridExceptionRow -* PART_loadingIndicatorRow -* PART_toolBarGridRow -* PART_CredentialRow -* PART_parameterGridRow -* PART_viewerContentRow - -The following code example illustrates a ReportViewer control template. - -{% highlight xaml %} - - - - - - - - - - - - - - - - - - - - - - - of - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -