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

change color field money in reportviewer 2010

$
0
0

I have on expression in field

IIf(Fields!money.Value > 0,"Blue","Red")

when execute report print a word Blue or Red and not value field in color Blue or red.


Junior



Row Height Rendering Issue in WinForms Report Viewer 2010

$
0
0

We recently upgraded a WinForms application project from Visual Studio 2008 to Visual Studio 2010.  As such, we also upgraded from the ReportViewer 9 control to the ReportViewer 10 control.  However, we found that the version 10 control has some display issues that the version 9 control does not.

Specifically, the version 10 control does not appear to handle automatic row sizing properly, causing CanGrow cells to appear as blank cells in the display, even though the row height appears tall enough to show the report text.  (Effectively, the entire report can appear blank with some text visible in few places.)  Print Layout view does show all of the data properly, however.  Reverting back to the version 9 control (still within VS 2010) resolves the problem, but then we lose the resizable multi-select drop downs offered by version 10, and, of course, the version 9 control cannot be opened in the form designer in VS 2010.

Is there a patch available to correct this issue?  Is there a configuration setting available to work around the issue?  We don't want to have to go into our many, many reports and manually resize each row to a minimum height that does not produce the problem.

Here's a weird inconsistency with this problem to add some confusion to the matter: The problem does not appear to occur when I test this against a report server running locally on my Windows 7 laptop (SQL Server 2008 R2 Developer Edition, SP1), but does occur when I test this against various remote report servers (Windows Server 2008 R2, some with SQL Server 2008 R2 Developer Edition, SP1, and some with SQL Server 2008 Standard [not R2]).

 


Odd display behavior in report

$
0
0

Okay, I am seriously stumped! I am building a C# 4.0 WinForms app that uses the Reporting component. It’s working 99% but there’s one really odd quirk I cannot trace down.

The final report contains several subreports. Each subreport shows details about the main category and type of product. If a subreport contains no details for the category and type of product, it displays nothing and the report shrinks to consume that empty space.

Each subreport has its report datasource populated by an ADO.Net DataTable from a typed DataSet.

This all works EXCEPT in one specific instance. With just one category of product, one particular subreport displays as an empty shell. IOW, the subreport structure shows, with its header, but it contains no data. I am banging my head on the desk trying to figure this out.

The logical conclusion is that with this one category the ADO.Net DataTable that feeds the specific subreport’s report datasource must be populating with some data that is informing the subreport to display. But debugging on ALL categories shows that this DataTable has no records in all instances, regardless of the category. So I cannot see how the subreport is reacting to the product category if its datasource is always empty of records.

There is too much code to post, so I’ll offer this walkthrough of what’s going on:

1) User selects a product from a DataGridView that she would like to examine further.

2) An instance of the report form is instantiated.

3) The ADO.Net dataset is passed to the report form.

4) The CategoryId and TypeId the user selected are passed to the report form.

5) LoadData() is called on the report form.

6) LoadData() runs through several TableAdapters and first clears them, then passes either the CategoryId or typeId to them for populating. Debugging at this points shows the particular DataTable I am concerned with has 0 rows.

7) The local report engine is set to the report.

8) The main/parent report has its SubreportProcessing event registered with custom handler processSubreport().

9) processSubreport() adds DataTables to the DataSources collection for each subreport. Debugging at this point shows that the particular DataTable still has no rows.

10) The main/parent report has its datasource set to a DataTable in the DataSet.

11) RefreshReport is called and the report displays.

This is a pretty straightforward chain of events, and it works as long as I don’t select the one particular category. But if the DataTable for the specific subreport is EMPTY regardless of category, HOW can that subreport show, even as an empty shell?

The main report is structured like so, from top to bottom:

1) Page Header.

2) Rectangle object with labels and textboxes.

3) Rectangle object with labels and textboxes.

4) Subreport 1.

5) Subreport 2.

6) Subreport 3.

7) Subreport 4.

8) Subreport 5.

9) Subreport 6.

10) Subreport 7. ß The one with the issue!

11) Rectangle object with labels and textboxes.

12) Textbox.

Each subreport has its KeepTogether property set to True. Most of the subreports use a Tablix for layout, though two use rectangle objects instead (3, 7). Though 7 is the issue, 3 works fine.

I am at a complete loss. Any help would be appreciated.

Kurt

The program '[6788] PictureViewer.

$
0
0

The program '[6788] PictureViewer.vshost.exe: Managed (v4.0.30319)' has exited with code 0 (0x0).

How do I debug the program Picture Viewer without receiving an error message?

Cannot see standard expressions in textboxes in Visual Studio 2008 or 2010 Business Intelligence Projects

$
0
0

I Cannot see standard expressions in the textboxes. Instead there are expression placeholders, <<Expr>>.   If I click on the textbox it shows the expression in hover help, but it was VERY useful to see the expression as it is in the textbox instead of the <<Expr>> place holder which was the case in VS 2005. 

Is there a way that I can see the expressions again?  If not, is there a plan to bring this functionality back?

Thanks,

Aaron


How can I use the type of Indian Numeral Language ?

$
0
0

hi
How can I use the type of Indian NumeralLanguage ?

Properties Textbox

NumeralLanguage=hi

But to no avail

rdlc report+not able to diplay full content into textbox

$
0
0
hi i hav created a rdlc report where i have used table in order to display records from dataset,in details section of table i have used textbox,but tis textbox is not able to display all the contents,

if i copy n paste this same textbox outside the table i display full contents.

does any1 hav idea as to how to get tis done?

Problem Cystral Report for redustribute

$
0
0

 I'm using crystal report to display data to the end users. I project was in VS2008 with vb.net. I just update my full project to VS2010 with .net framework 4.0. In my computer where i developing my software there nothing to wrong, in my computer crystal report working well. But i try open my software to my customer computer first below message come :

"Could not load file or assembly 'Crystal Decisions.Crystal.Reposts.Engine version 13.0.2000.0....."

Then i download CRforVS_redist_install_32bit_13_0_3 file and instal to my customer computer. After the instal that software now every so often I get an error message(see below) while the document is printing.

just close my software. I check myself what's problem. In my computer where report working well i goto file system "C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\" there CrystalDecisions.CrystalReports.Design.dll is there.

But in my customer computer i goto file system "C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\" there is no file CrystalDecisions.CrystalReports.Design.dll only one file there "CrystalDecisions.Data.AdoDotNetInterop.dll".

Please someone help me out.

 


Reportviewer.refreshreport throwing stackoverflow error.

$
0
0

Hello,

I'm creating an Visual C# DLL application that uses a report. The DLL has to be com visible because it is being called from a vb application. When I run the application in debug mode, the report runs fine, but when I copy the DLL to the production folder and run the program it throws an unhandled stackoverflow error on the Reportviewer.RefreshReport method.

I tried the ReportEmbeddedResource in the code but no luck, I even tried to move the report to another DLL that is being referenced by this DLL and use the LoadReportDefinition from that DLL, but I get the same error.

Here is the latest code:

Assembly

assembly = Assembly.LoadFrom(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\CashPushDAL.dll");

Stream stream = assembly.GetManifestResourceStream("CashPushDAL.LumpedListing.rdlc");

DBOps dbops = new DBOps();

DataTable dt = dbops.get_reportData(GFNO);

ReportDataSource rpds = new ReportDataSource("DataSet1", dt);

this.reportViewer1.Reset();

this.reportViewer1.LocalReport.DataSources.Add(rpds);

this.reportViewer1.LocalReport.LoadReportDefinition(stream);

this.reportViewer1.LocalReport.Refresh();

this.reportViewer1.RefreshReport();

Any suggestions?

Thank you


Subreport is not displayed after deployment

$
0
0

ReportViewer version: 10.0.0.0

Local Machine/Development Environment

  • Windows XP SP3
  • Visual Studio version: 2010 Premium with SP1

Development Server Environment

  • Windows Server 2008 with IIS 7
  • Report Viewer 2010 Redistributable installed

I am working on a web application (.NET MVC) where the parent report contains a subreport.  Both reports are client report definition files (.rdlc).  I am also using the Local processing mode along with the SubreportProcessingEventHandler to set the datasources on the sub-report.  

Both parent and sub-reports are generated/displayed successfully from my local development machine.  When the application is deployed to our development server, the parent report is generated/displayed as expected, however, the sub-report is not displayed.  I do not see any error messages on the parent report indicating why the sub-report is not displayed.  

I was assuming the parent/sub-reports would display from the server as it did on my local machine.  I have verified that both parent/sub-report .rdlc files exist on the server.  Are there any steps or instructions I overlooked during the deployment process that is preventing the sub-report from displaying?

Any help or guidance would be greatly appreciated. 

Thank you in advance.

crystalreport error "Exception has been thrown by the target of an invocation"

$
0
0

hi

i have a report form and a datatable in it. when i fill the datatable the error bellow occur:

"Exception has been thrown by the target of an invocation."

my_report report = new my_report();
report.Database.Tables[0].SetDataSource(search_table.DefaultView.ToTable());

i use vs.net 2010 but in vs.net 2008 this code worked well !!!!!

thanks for your attention.

Access SSRS Report DataSet after binding ...

$
0
0

Is there is any way I can access ReportViewer DataSet after it being filled?

There is no DataBound Event (after binding data) in ReportViewer so I can access the data.

What I'm Trying to achieve is :

1- access data before it's submitted to the report ... 
2- Get for example:dataset.Tables(0).Rows(0).Item("Price")
3- Do Some Operation on it : Dim newPrice = DoSomething(Price)
4- assign newPrice data to a Report Parameter.
5- assign Parameter Value to a specific Textbox inside the Report.

Thanks.

Asp.net reportviewer printpreview displaymode

$
0
0

Hi!

I use webforms reportviewer control.

I have already read many blog and article report pagination and interactive page size.

For example : SSRS Interactive Size

My purpose is a similar to winforms.reportviewer's printlayout display mode.

But I did not find any solution about it. I checked telerik's reportviewer control, and they can solve this issue. But I couldn't figure out how...

Thanks.


JScript error when displaying local report.

$
0
0

Hi folks,

When I display an embedded (local) report in visual studio 2010 (using report viewer control 2010), I am getting the following error:

Microsoft JScript runtime error: Unable to get value of the property '_getCollapsable': object is null or undefined

The script function is _UpdateDocMapAreaUIVisibility.

The report is just a simple tablix with about 5 fields in it and one row group.  I have not set any properties (that I am aware of) relating to collapsable items.

Am I supposed to set some value so that it does not occur?

Regards

Andy

Pass null value in report viewer

$
0
0

Hi Everyone,
I used RDLC report for student details. I In RDLC report the left side values is constant like student Name,Fathername, DOB etc. When i passed empty datatable the report shown only left side values. If i give any input for particular student then show only that student details also. I got the student details report when i give the input but when i passed empty datatable the report not shown. I used 2010.... How to do Just tell the Solution.
This is my coding
cmd = new SqlCommand("select * from student where 1=2", cn);
SqlDataAdapter da = new SqlDataAdapter(cmd);
//DataTable dt = new DataTable();
DataSet ds = new DataSet();
da.Fill(ds);
//da.Fill(dt);
ReportViewer1.LocalReport.DataSources.Clear();
ReportViewer1.Reset();
ReportDataSource RDS = new ReportDataSource("LawceDataSet_student", ds.Tables[0]);
ReportViewer1.LocalReport.DataSources.Add(RDS); ReportViewer1.LocalReport.ReportPath = Server.MapPath(RPath + "TCReport.rdlc").Replace("\\", "/");
ReportViewer1.ProcessingMode = ProcessingMode.Remote;
//Bodge due Bug in reportViewer

ReportViewer1.ProcessingMode = ProcessingMode.Local;

ReportViewer1.LocalReport.Refresh();
ReportViewer1.Visible = true;
That command not suitable so the datatable is empty, even i need to show the report only left values like 
Student Name : 
Father Name :
DOB :
like that i need to show... How to do...

Thanks in Advanced


Is MS Access is applicable to Crystal Report in VB.net 2008?

$
0
0

Hi to all,

I am now starting to study the crystal report but first of all i want to know if this is applicable to MS access databases? Thank you


jocker > i'm learning

Convert chart to table

$
0
0

Hi,

I have a Windows Form application, which has several user selection buttons on it, and one big chart.  The chart will display many different graphs, mainly x,y spline charts.

However, on one particular user selection, I don't want a graph, I would like the data to be displayed in a Table type.

For example, if I have two variables Rp and Rq of say 20 values, which can be plotted on a graph.  How can I then shows these in a Table.

Note, the plot of Rp vs Rq may not be displayed on the chart at the time of selection, e.g. the chart may be showing something else (Tp vs Tq for example)

Rp and Rq are calculated prior to plotting them.  It is not part of a datasource, and it is not necessarily displayed on the chart.

I understand the function DataGridView might be useful, but as I am a novice at VB, I am unclear on how best to implement it.

Can anyone help?

Thanks,

Which image format is best for Background property

$
0
0

In VS2010 windows project there are common control property BackgroundImage. I just want to know which image format is best for BackgroundImage.

VS 2012 Express Report

$
0
0

I just wanted to know does VS 2012 Express for Desktop and for Web include Report Designer and Report Viewer?

Your information is great appreciated,

Sourises,

Print current page only

$
0
0

I have a C# windows form application.

One of the forms displays an sql server report in a reportViewer control, when the user clicks the print icon at the top of the screen, I want the default option selected to be to only print the current page. (I would prefer the user still to be able to choose other selections, but the current page option should be the default)

The same problem described here, but I didnt  really understand the response.

http://social.msdn.microsoft.com/Forums/en-US/vsreportcontrols/thread/ff84f4ce-31c2-454a-8d39-cfed295a557a

Further to that, I cant even manually select the option to print the current page, the option is greyed out.

Viewing all 519 articles
Browse latest View live


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