 |
|
 |
Get the toolbar from ReportViewer control: ToolStrip toolStrip = (ToolStrip)reportViewer.Controls.Find("toolStrip1", true)[0]
Add new items: toolStrip.Items.Add(...)
Chris
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
 |
|
 |
Hi
Can any body let me know how to invoke the pagesetup dialogbox in report viewer programatically.
Regards Rajesh
|
| Sign In·View Thread·PermaLink | 2.00/5 |
|
|
|
 |
|
|
 |
|
 |
Dear yincekara, I wonder what licence your code is. Can I use codefragments in my own application?
yours sincerely, marsu36
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
Hello there, nice article i must say.
Unfortunately i have another issue for you. After changing the margin-values via PageSetup i can not see any change until i have restarted my Application or at least show the same report in a newly created control.
I guess thats because the control doesnt reload the report definitions probably.
I have already tried setting the LocalReport.ReportPath again and also reportViewer.RefreshReport but without any success.
May i have an advice from you please.
Thank you.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
I found a Solution for that.
You have to call the Reset-Method of the ReportViewer-Control and then reload its data and link all the Events again.
This is kinda clumsy but it works.
Anyways you did a great job, this article was what i needed.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
I am writing a report using report viewer in asp.net 2.0 but a can't seem to fiqure out the code to show the report in report viewer without using smart tags
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
I found your article very helpfull, but when I tried to point the app at my own data after I created a new datasource and I got this message in the reportviewer "A data source instance has not been supplied for ...". Would you have any ideas as to why it might be happening. Thanks
Alex
|
| Sign In·View Thread·PermaLink | 1.00/5 |
|
|
|
 |
|
 |
When you change datasource you also change something else. For report creation basics visit this site please. http://www.gotreportviewer.com/
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
This is a little off topic from your article, but I'm hoping that since you seem to have some experience with the ReportViewer you may still be able to help me. I've got windows forms project that uses the ReportViewer in local mode. When I run my report using Visual Studio 2005 everything looks fine. The form pops up and the report loads and it's just the way I want it. However, if I run the .exe outside of Visual Studio this is not the case. The form pops up and the report displays this message "Report processing was cancelled." and a few seconds later the report displays just fine. I do not understand why the error message is displaying and have not been able to find a way to shut it off. Have you heard of or experienced this problem and do you know of a solution or workaround for it? I would appreciate any advice. Thank you.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
1- Try to hangle message : after InitializeComponent(); type :
this.reportViewer.ReportError += new ReportErrorEventHandler(reportViewer_ReportError); private void reportViewer_ReportError(object sender, ReportErrorEventArgs e) { if (e.Exception.Message == "A generic error occurred in GDI+.") { e.Handled = true; } }
2- Place breakpoints and see if theese cause the problem if you are using : Application.DoEvents(); lines.
3- Place breakpoints where you refresh report and see if theese are causing the problem.
I hope theese helps. Otherwise write a sample project using standart MSSQL Northwind database and send me for me to inspect.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
The problem is that no exception is ever thrown. I've pretty much determined that this is some kind of bug. When I run a program that is virtually the same except it is written in C#, I do not have the problem. It is only with VB code. And I think I've proven that, for whatever reason, the issue comes down to the fact that the ReportViewer's RenderingComplete Event fires twice when you run the .exe by itself, but runs only once when you run the program through Visual Studio. At least that appears to be what is going on. I ended up using a work around that counts how many times the RenderingComplete event fires and hides the report until it's the second time...and then I threw in a timer control to always show the report after five seconds no matter what. It's not the nicest solution, but it seem to be working.
Thanks for trying to help me out.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I witnessed the same problem when I noticed that RefreshReport() was being called twice. For whatever reason Visual Basic throws this code in Form_Load when the ReportViewer is placed in the form (from the toolbox). Try looking in there... and make sure you're not calling it twice.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi, how can i translate .net 2005 reportviewer toolbar text languages to turkish language. microsoft's site has not any turkish language pack. thanks in advance..
cuma196@yahoo.com
|
| Sign In·View Thread·PermaLink | 1.00/5 |
|
|
|
 |
|
 |
We already have a nice solution about this issue. Not a workarouns. Exact solution. If you 've noticed one of a comment about this article, someone already sent me the solution. I 'll update the article soon or will write a new one. I hope this week
|
| Sign In·View Thread·PermaLink | 2.00/5 |
|
|
|
 |
|
|
 |
|
|
 |
|
 |
What if i am using Infragistic Toolbar ? and that 's why i don 't want to display Microsoft 's toolbar ?
|
| Sign In·View Thread·PermaLink | 3.00/5 |
|
|
|
 |
|
 |
Dear yincekara,
As you have already stated, it is difficult to find proper documentation and samples about the ReportViewer. I was very glad to find your resource links.
You didn't mention it, but there is a built-in alternative for localizing the viewer. Besides that I'm using a different approach customizing the toolbar, although I must confess it is a bit a 'dirty' ( ) trick to do it that way. The code that goes with it is rather long and so I think this is not the proper place to put it. I can post another article on CodeProject, but an alternative is to join forces and together rework your article a bit. Are you willing to do that?
Jan.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |