Quantcast
Channel: Visual Studio Report Controls Forum
Viewing all 519 articles
Browse latest View live

coding reportviewer

$
0
0

Hello

I am developing an application and need some help how can i print a report with coding meaning like i want to write the SQL Query and all the info e.g. @Param and there on further load the report.

Please help me as i am really stranded i tried using the dataset but i am unable to select the database as i have changed the .sdf extension to .db and my entire application is hard coded and works properly now just the reporting section of the application is giving an issue, it is getting little hard so please help me, if you need any part of my code let me know i will be glad.

Thank you in advance.


Unable to programatically reference subreport property (EnableExternalImages) from main report

$
0
0

I have what i think is a unique requirement not addressed in other questions. I've developed a local report in Microsoft report designer as an rdlc and am viewing it via the report viewer control. The report contains a subreport. The subreport renders images from external files. The problem is that i need to programmatically set the EnableExternalImages property of the subreport at run time. Without this, the subreport refuses to render ("Error: Subreport could not be shown" is the error message i get). I've set this property on the main/outer report programatically without issue using this statement:

Me.ReportViewer1.LocalReport.EnableExternalImages = True

However i need to do the same on the sub-report...so optimally, i would like to code something like this:

Me.ReportViewer1.LocalReport.Subreport1.EnableExternalImages = True.

Problem is, i don't see a property available that provides me direct access to the subreport's properties in this fashion. I've looked into using the SubreportProcessingEvent, however this event only exposes a limited number of properties of the sub-report (Reportparamaters, Datasources, ReportPath, etc..), but does not provide me with access to all of it's properties (e.g. EnableExternalImages property).

Thanks for any information...


erl

Local report printing without preview in MVC Razor error after publish

$
0
0
I have built an brand new (not converted) .NET web application using MVC Razor (C#) in VS2010. I've added a new report using the Report Wizard. In my controller code, I have section that prints the report WITHOUT a preview and WITHOUT using the ReportViewer control.  It works great on my local machine but when I publish to the TEST server environment (a Windows Server 2003 box), I get an error: 

"An error occurred during local report processing.The report definition for report 'xxx' is invalid."

I verified that the Microsoft.Reporting.* DLLs in my project were v10.0 (and the references in the web.config file as well).  I also verified that the *.rdlc file does publish and is present on the server. HELP! :(

Reportviewer groupby first letter of first field

$
0
0

Hi there, i hope you can help me on this.



I have a table that look like the image above, i am grouping by the first field that is employeecode, but the reportviewer is separating each unique code, so i have the next condition in the group expression, by the first letter of the field, in this group will be C .

=IIf(Left((Fields!codigo.Value),1)="C",1,0)

It does what i want, but, i when i do the sum of the totals it returns duplicataed rows,the first row of the subtotal is correct, but the other sums are duplicated,like this:

Im making the sums of the "total" field in the respective group footer, with this sentence 
=Sum(Cdbl(Fields!total.Value),"Group_Z"), chaging the parameter for each group.

I hope you can help me. Thanks in advance

Why is "PageName" not supported in RDLC (but is supported in RDL)

$
0
0

When working in RDL, the PageBreak-Between and "PageName" property (of a Tablix?) can be used to drive unique sheet names when exporting to Excel.

Several places on the net refer to the fact that SSRS/RDLC does not support this property.

Is there a knowledgeable person at Microsoft willing and able to answer why?

And is there a workaround.


Ralph

MPI

$
0
0

In MPI,is there any way to display what work takes place in each and every process?

Thanks in advance

How to Add a custom button on Report viewer top bar and Email an exported report by report viewer while using report in local mode.

$
0
0

Hello,
I have an issue related with Report viewer control Version=10.0.0.0
i am showing SSRS Report(.rdl) file on report viewer inLocal Mode (i.e not using Reporting Server)
I need two things to be done,
1. Add an email button in Report viewer Toolbar after print button.

or is there any stander way to email an exported report.

Please tell me is it Possible or Not?
Please help me on this...i need it urgent...
Thanks in advance.......


Determining if Report Viewer 2012 Runtime is installed.

$
0
0
The previous registry paths are all invalid for Report Viewer 2012 Runtime. I presume the most reliable way is to check the Windows Installer Product Id somehow. Any ideas?

How to find if Microsoft Report Viewer Control Is Installed?

Crystal reports - flickering of the screen

$
0
0

Hello

I have a problem which is that a report I created using Crystal Reports seems to load itself all the time. I don't know exactly if this is what it does, but it produces a blinking, as though it was updating what it's showing permanently... (I hope I've used the right word, "flickering" or "blinking", since I'm not a native English speaker)

Any clues?


Mariela 77

dynamically adding a calculated column in rdlc report viewer in web application

$
0
0

hi

i need to display the values in rdlc cloumn, from the values of the other  columns

eg

in column c1 i need to display the calculated values from (column c2/ column c3 ) * 100

thank you in advance.


- Ram

Wrong data returning from expression

$
0
0

This report is supposed to have every owners calculated starting balance as of 12/12012. I have decided to make another report based on the old expression I use which is : 

=FormatCurrency(First(Fields!PreviousBal.Value) - Sum(Fields!PaymentAmt.Value))

This expression is on the old report and returns the Period Starting Balance as of 12/1/2012 for each owner.

My second report which is the one in which I am having this wrong data is returning around $500.

This textbox displays all the summed up all the Period Starting Balance from all owners which I added and supposed to be around        -$11,000. Why am I getting this error?

Note: I used the FromAccount grouping  which separates the expressions into individual pages for each account. But I am grouping by Solution, which is supposed to bring into all the owners starting balance. I did however did add an outside group and grouped it by FromAccount and had it use the same expression above. But it showed all of the owners starting balance. Example of it is like:

Period Starting Balance as of 12/1/2012: $(9954.00)

Period Starting Balance as of 12/1/2012: $454.76

Period Starting Balance as of 12/1/2012: $0.00

Period Starting Balance as of 12/1/2012: $(300.76)

...and so on till it finishes.

It supposed to bring the total starting balance for all owners. 

What am I doing wrong?>Can someone provide any help please? Much thanks for even trying.


Report Items are missing in ReportViewer but show in VS viewer.

$
0
0

Hello,

I will post screenshots after my account is verified.

The report's items (used textboxes) show up properly via visual studio preview and also excel export, but not in any of web based controls(via ReportManager or ReportViewer ).

What could cause it ?? Please help!!!!

Thanks!

the report definition has an invalid target namespace 'http://schemas.microsoft.sqlserver.reporting/2008/01/reportdefinition' which cannot be upgraded".

$
0
0

Hi All,

            I have Visual Studio 2010, and .net framework 4.0 installed on my development machine.    I also have SQL Server 2008 installed (which you indicate above does not affect the issue).

           When I create a new Report project in Visual Studio 2010, the RDLC file has a reference inside it to .../2008/01/.... that looks like this:

<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">

I have tried this several times.  I have only built "loca" reports.  When I build on my local machine, the reports build and run just dandy.   But when I try to build them on our build server, running MSBUILD, the  build fails with:

the report definition has an invalid target namespace 'http://schemas.microsoft.sqlserver.reporting/2008/01/reportdefinition' which cannot be upgraded".

Im not sure why the new report didn't get created as /2010/, since everything I believe is using .net framework 4.0.       Any help greatly appreciated.

Regards,

Mike

 

 

Adding a few rows after the group footer totals row

$
0
0

I have an ASP.Net application (C#) with an rdlc report, which is populated by a datatable, calledTimesheetEntries. The table is structured as shown below:

EntryDate,Username,ClientName,ProjectName,Hours,Cost

In displaying the report, I am grouping for ClienName, and then by ProjectName, and in the group footer I have a subtotals row like so:

ClientA    Project1   User1   3.0    90.00

                Project1   User2   1.0    30.00

Project Totals                     4.0  120.00

Client A   Project2   User1    3.0    90.00

Project Totals                     3.0    90.00

Client Totals                       7.0  210.00

ClientB    Project3   User1   3.0    90.00
Project Totals                     3.0    90.00

Client Totals                       3.0    90.00


This has been working OK so far, but now the customer wants me to add a few more rows under the totals row, to show the Annual Fees charged to the Client. This information is coming from another table in the DB. The customer wants the report to look like below:

ClientA    Project1   User1   3.0    90.00

                Project1   User2   1.0    30.00

Project Totals                     4.0  120.00

Client A   Project2   User1    3.0    90.00

Project Totals                     3.0    90.00

Client Totals                       7.0  210.00

Annual Fees 2012                     100.00

Annual Fees 2013                     100.00

Client Total Fees                       410.00

I am a little confused as to how to do this; I thought of adding an additional field in the datatable, called fees and the for the first row of each client populate it with the value, and finally display that under the totals. This can work but it will not give me the year breakdown they want. Some clients have fees issued for 2012 and 2013, some for 2013 only and some no fees at all, so I don't know upfront how many such fields to include in the datatable.

Any ideas? I would really appreciate a swift reply.

Chris.


Chris


Report Viewer 2012 and Vista Service Pack 2

$
0
0

Hello, I have a clickonce application that has a dependency on Report Viewer 2012. I have had a ton of trouble with this package.

I also had to take a dependency on the SQLSysCLRTypes package. I just took a dependency on the x86 package as that is what the application is compiled to. However, the link in the package in the bootstrapper points to the wrong url! I had to open: C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\Bootstrapper\Packages\SqlClrTypes_x86\en\package.xml and change the url to point to: http://go.microsoft.com/fwlink/?LinkID=239643

I'm pretty sure that solved the SQLSysCLRTypes problem I was having.

Now, when I try to install the application on a Windows Vista SP2 machine, after the prerequisites download, I get the message "Setup has detected that the publisher of file 'C:\Users\Admin\AppData\Local\Temp\VSD4746.tmp\ReportViewer\ReportViewer.msi' cannot be verified. Click OK to retry the download, or Cancel to exit setup."

This only seems to happen on Vista. Windows 7 is a little more reliable, but has a failure every now and again.

I should also mention that when I download the ReportViewer.msi directly from Internet Explorer, (fromhttp://www.microsoft.com/en-us/download/details.aspx?id=35747), IE states that "ReportViewer.msi was reported as unsafe."

Anyway, does anyone know the solution to this? I've spent days (off and on) on this problem and I'm not making any progress.

Thanks in advance.

-Jason



Reportviewr Doubt

$
0
0
Is anybody can help me to dynamically set font style to report viewer in VS 2008, MS Reporter in C#..?

Installing Microsoft Visual Studio .NET™ 2003 Service Pack 1

$
0
0

Hi 

I've got problem in installing Microsoft Visual Studio on windows XP pack 1. It gives an error message (the upgrade patch cannot be installed by the windows installer service because the program to be updated). I tried windows installer 2.0, 3.0 and 3.1 but still same message appears. 

Crystal Reports Viewer Visual Studio 2008 is showing a different parameter window

$
0
0

Hello,

I upgrade my application because i started using Crystal Reports 2011 and moved to a new server (Windows Server 2008 R2). Now when i  start my report from within my custom application i get e different window for entering the parameter values. When i render my report in CR 2011 it also displays the parameter input the right way. The application is written in Visual studio 2008 and the language c#.

Old window(Good):

New window(Bad):

Now my question is... Why doesn't it show the parameter window like it used to? 

Thanks in advance,

Export to CSV in LocalReport of ReportViewer 2010?

$
0
0

Hello,

it is very important for me to enable export data from ReportViewer to CSV format in LocalReport (which is possible by default in server mode). In ReportViewer 2008 there is an interface called IRenderingExtension, which allows to write a custom export code. The following method allows to add an own class to enable export to custom format:

public static void AddRenderingExtension(ReportViewer viewer, string formatName, Type renderingExtension)
        {
            const BindingFlags Flags = BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance;

            FieldInfo m_previewService = viewer.LocalReport.GetType().GetField
            (
                "m_previewService",
                Flags
            );

            MethodInfo ListRenderingExtensions = m_previewService.FieldType.GetMethod
           (
               "ListRenderingExtensions",
               Flags
            );

            object previewServiceInstance = m_previewService.GetValue(viewer.LocalReport);

            Type type = Type.GetType("Microsoft.Reporting.LocalRenderingExtensionInfo, Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a");

            ConstructorInfo ctor = type.GetConstructor
            (
               BindingFlags.NonPublic | BindingFlags.Instance,
               null,
               new Type[] { typeof(string), typeof(string), typeof(bool), typeof(Type), typeof(bool) },
               null
            );

            IList extensions = ListRenderingExtensions.Invoke(previewServiceInstance, null) as IList;
            object instance = ctor.Invoke(new object[]
            {
               formatName,
               formatName,
               true,
               renderingExtension,
               true
            });
            extensions.Add(instance);
        }

The call of this method looks like  AddRenderingExtension(reportViewer, "CSV", typeof(IRenderingExtensionDerivedClass));

Everything works very well in ReportViewer 2008 (CSV export option appears in ReportViewer's export comboBox), but there is a problem in ReportViewer 2010 - IRenderingExtension was moved to namespace Microsoft.ReportingServices.OnDemandReportRendering and it is not public any more! (Visual Studio says, that IRenderingExtension is inaccessible due to its protecion level).

Is there any way to add a custom (CSV) export extension to ReportViewer 2010 in LocalReport?

 

Regards, Jacek

Viewing all 519 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>