rdlc

Use comma for decimals and period for thousands rdlc report

让人想犯罪 __ 提交于 2019-12-05 18:57:40
I'm using Report Viewer Control (rdlc) to generate reports. One of my columns represent a decimal value from a SQL database, for example: 5199.9800 and at the end of this column, all the amounts are summed. So, the amounts rows are represented this way: =Fields!DEBIT.Value And the total row is represented this way: =Sum(CDbl(Fields!DEBIT.Value), "dtsItems") Currently all the values are formatted in the standard way, using comma for thousands and period for decimals like this: 5,199.98 but i need to format it the opposite way: using period for thousands and comma for decimals, like this: 5.199

Using xpath and rdlc report

拟墨画扇 提交于 2019-12-05 16:19:38
i will try to explain the problem very clear. I user MicroSoftReportViewer where i load my report. But before loading it i want to change somethings.Till here everything is ok. I want to use xpath but when i load the rdlc( xml ) file using XMLDocument the xpath expression does not work. The only xpath that work is "\" witch gets root. I opened the file with notepad and saw that the first xml node uses these schemas xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner" I tried to read the file

hide columns dynamically in rdlc report

Deadly 提交于 2019-12-05 15:15:47
问题 How we can hide columns dynamically in rdlc reports in MVC 2? Is it is possible using external parameters? How we can programmatically control the visibility of columns in rdlc reports? 回答1: You don't want to use the Hidden property, you actually want to select the column, Right Click and select Column Visibility . Once in here you can use an expression to set the visibility based on a parameter, something like this: = iif(Parameters!column_visible.Value = 1, false, true) Hidden doesn't work

How to select all fields plus some new fields in LINQ?

房东的猫 提交于 2019-12-05 09:19:29
I got an RDLC report Date Format stored in SQL DB is Georgian. I want to Display date in report as Persian. Using Linq i want to select all fields of DB in addition some new field to be used as Persian Date Fields. I used below syntax: var invoices = from invoice in dbContext.eve_Invoices select new { invoice.CreatorID, invoice.DateChange, invoice.DateCreation, invoice.DatePrint, invoice.Discount, invoice.DiscountPercentage, invoice.DiscountType, invoice.Fare, invoice.ID, invoice.InvoiceStatus, invoice.NumberOfItems, invoice.Packaging, invoice.PrintID, invoice.RawPrice, invoice.RoundOff,

How to embed a Font in a PDF with RDLC

无人久伴 提交于 2019-12-05 05:33:22
i am using Microsoft.Reporting.WebForms.LocalReport to generate some PDF, everything works like a charm, but now evil marketing wants to use a custom font (they are using such crazy arguments as "corporate identity" and stuff). i already goggled around and now i know that i need ReportViewer 2008 SP1 or greater the font has to be marked as embedding allowed the font has to be TrueType but it still doesn't work. i belief that RDLC does not support this feature, does anybody know if this is the case? unfortunately i cant use Server-side reports cause i am lacking a Reporting Server. tia

Cannot add a Data Source in web project using the Data Source Configuration Wizard

 ̄綄美尐妖づ 提交于 2019-12-05 01:45:16
Problem I want to add a Report (.rdlc) to my web projet. I need the report to use an object data source, not directly connect to a database. My issue is that when I run the "Report Wizard" or when I add a new Dataset to the report, the Data Source Configuration Wizard only allows me to use the database. However, in a library project the Data Source Configuration Wizard is completely different and gives me several choices. I checked with Visual Studio 2013 and 2015 (Community Editions) Questions Why is it that I'm experiencing a different behavior when I'm adding a Report (.rdlc) to a library

MSBuild Using Wrong Version of Assembly to Compile RDLC File

对着背影说爱祢 提交于 2019-12-05 01:22:25
I am using the reportviewer control from VS 2010 to create client side reports (rdlc). Everything is working fine on my development machine, and when I manually compile (via VS2010) and manually deploy to a test machine that doesn't have development tools installed. In order to get the test machine to work (without installing VS2010 or ReportViewer.exe), I had to add references in my project to Microsoft.ReportViewer.Winforms, Microsoft.ReportViewer.Common and Microsoft.ReportViewer.ProcessingModel and have them all "Copy Local". I have the rdlc files configured for Build Action => embedded

Using Microsoft Reports (.rdlc) in a 3-Tier app

为君一笑 提交于 2019-12-04 19:52:27
I'm new to reporting so need some good information/resources to help me get some reports set up in our 3-tier app. We currently have: UI (ASP.Net MVC 2 at present but also winforms in future), Business Logic and DAL (Entity Framework - Code-Only ie no edmx) The BL has "manager" objects for selecting and manipulating entities. Now I've started by creating a .rdlc report and have chosen as a data source an object which wraps the BL managers to retrieve the appropriate records. Now I'm trying to add a front-end to see if my report works... I believe there's no good way to do a ReportViewer in a

RDLC report stop working after change Visual Studio 2015 to Visual Studio 2017

扶醉桌前 提交于 2019-12-04 19:48:18
问题 I have an AspNet MVC project in Visual Studio 2017 that was previously developed in Visual Studio 2015. This project contains many rdlc files that were working fine until I edited one of them. Now, when I try to download the pdf from the rdlc edited I get this error: The definition of this report is not valid or supported by this version of Reporting Services. The report definition may have been created with a later version of Reporting Services, or contain content that is not well-formed or

Data not Loaded in reportviewer VB.NET

你离开我真会死。 提交于 2019-12-04 19:27:41
I have created the stored procedure in ms-sql server 2014 and creating the rdlc report. Now binding the report in reportviewer programatically, but in report only columns are displayed and not the data... The below code is my stored procedure : USE [Bonny] GO /****** Object: StoredProcedure [dbo].[AccMast_AllDetail] Script Date: 17/10/2016 12:10:42 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER Proc [dbo].[AccMast_AllDetail] as Select Account_Code,Party_Name,Address_1,Address_2,City from FAMPAR order by Account_Code GO My VB.NET code in reportviewer form load event...