One or more data sources is missing credentials - reportviewer

I am implementing a series of rdlc reports on a webpage using a ReportViewer. When the report is initially generated is works fine but when I try to change the page of the report the following error is displayed:
"One or more data sources is missing credentials"
I have checked that the Data Source of the Local report is set correctly and the fact that the first page of the report is correctly displayed is proof of this.
When I export the report to a PDF or any other format it correctly includes all the report pages.
I have also tried implementing the PageNavigation event but this error is thrown before the event is called.
Does any one have any incite into this issue and what solution there may be?

Ok I found the the problem. I had a setting AsyncRendering set to false in order enable the reportviewer to stretch to the full width of the page.
Unfortunately this causes a postback and the enitre page is reloaded and obviously the datasource is lost.
Unfortunate as I will now have to manage the width of the reportviewer manually and it does not look great.
Anyway solution is to ensure AsyncRendering = true.

Related

SSRS cannot figure out Specify a valid URL error

I was creating a report but I seem to have made a mistake somewhere.
Whenever I try to run my report, I get "An error occurred... Specify a valid URL. Report URLs may use only http://..."
I narrowed it down to the 3 text boxes that are causing me this problem (as in if I delete these text boxes, the report runs normally.) These were text boxes that I have a click action taking it to another report. I've inspected these textboxes in every possible way and I do not see what is causing it to say invalid URL. Nowhere am I specifying a URL. I do have it go to a different report on click action, but not to a URL...
Does anyone have any ideas?
EDIT: When I change the action from Go to report to None, it works which strange since there is nothing about a URL. The most confusing part is that I have other text boxes that do this exact same thing where if you click on them, it will go to that same exact report. I cannot figure out why those work and these don't.

Changing form name causes error message "Error accessing the system registry"

I am programming the On_Click method for the button labeled "View" in the first printscreen below. The method will load a form with data corresponding with the specific address id in the row containing the "View" button. This code worked perfectly when pointing to a target form called "Addresses". However, when I decided to rename the form "Address", I started receiving the following error message when clicking on the view button:
I did some research on the web about this error message, which lead me to try to delete any outdated references in the VBA editor. But when I clicked on Tools-->References in the VBA editor, I got the following error message:
It seems that MS Access' entries in the system registry might have been corrupted. But I am not certain of this because the documentation of this on the web is sparse and inconsistent.
Here is a link to the database on a file sharing site: http://jmp.sh/b/9Uyx6J2YzWbs8zPq2h6g
If the problem is in the database, you can recreate the problem by opening the form "Main" and clicking on the button "View" for the record shown in the printscreen above, or for other records.
Can anyone show me how to get past this error message?
my advices?
You could rename your Forms!....SourceObject to "Address" instead of "Addresses"
You could copy/paste the form, delete the original, and retry
You could install a decent debugging tool like MZ-Tools for VBA, that will help you manage your errors. Check the details here
EDIT: I used to get similar bugs years ago, when I was writing specific form event procedures. As we decided to switch to a model where forms did not need to be debbuged anymore (check this here), we stopped getting this kind of message. And I think I forgot the trick we used to solve this kind of error. If I were you:
I'd try to open another access database and import all objects ...
I'd put aside/cancel the faulty onClick procedure
And I'd install MZ Tools because otherwise VBA debugging is a nightmare ...
Since access was not liking the command button in each record of the continuous form, I choose to put the view button's logic in the on click event of a text box in each row, which I configured as enabled but locked. This produces a separate link from each record of the continuous form to a unique detail page with more of the chosen record's data.
This solution works perfectly, and is enabling me to move on with my other coding.
However, it would be nice if someone else were able to show how to get the command button solution to work.

Access Report - TextBox disappears in Print Preview

SOLVED BY RECREATING THE REPORT FROM THE SAME QUERY AGAIN AND PASTING THE ELEMENTS OVER AGAIN. - anyone have any insight as to why this would happen?
Details: Access 2007, tried bringing it to the front, resetting control source
I have a generated report in Access that generally works as you would expect. However one of the textboxes created by the wizard isn't working. In the record view, everything looks great. When I go to print preview or print the report, the textbox just disapears. The record source seems to be set in the same fashion as the others and everything looks alright.
The Report View
The Print Preview
I have no idea what would make this happen. Every other report generated from the database works normally, so I'm at a loss.
Thanks for any help you can provide!
There is a property called DisplayWhen with the options Always, Print Only and Screen Only
http://msdn.microsoft.com/en-us/library/office/aa195851%28v=office.11%29.aspx

RDLC Report showing data on other page if data is more

I have a bill application in winforms using reportviewer and showing rdlc report in it, I have a main report and a subreport in it
now the problem is that when i have less than 40 items it shows the report fine, but if its more than that the data comes from next page, please see the reports and ourput
Main Report
SubReport
Normal display when 25 records
When it is 40 records pg1
Second page
any help will be appriciated
try Unchecking Keep together on one page if possible option in Page break options.
I'm using vs2010, and it looks like you're in 08? so it might be a little different but I'll give it a try (mostly because I am looking for some help as well and I know how frustrating it is using this when there's not a lot of "quality" answers out there for specific problems).
In the subreport rdlc file, make sure that the "PageBreak" property (on the table containing your columns) isn't set to "start." I would just set it to "none."
What I believe that is happening is that it's moving it to the next page because it won't fit on the first page. what you can do to try to get around that is include everything on the main report in a rectangle (in the rectangle, set pagebreak = none, and keeptogether=true [I'm not sure if you actually want keeptogether=true... if it squeezes everything onto one page by resizing it set it to false]).
Hope I helped

Security Error with Report Viewer Control and RDLC Reports in ASP.NET 4.0

Using ASP.NET 4.0, I'm creating an RDLC stream by instantiating a Microsoft.ReportingServices.RdlObjectModel.Report, setting the Code property, and returning the stream using the RdlSerializer.
Then I'm passing that stream to the ReportViewer like so:
ReportViewer1.LocalReport.LoadReportDefinition(rdlcStream);
If I don't set the Code property, I don't get any errors and the report displays properly, but when I set the Code property for a report that needs custom code, I get the below mentioned 'RequestMinimum' is obsolete error.
An unexpected error occurred while compiling expressions. Native compiler return value: ‘[BC40000] 'RequestMinimum' is obsolete: 'Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.'.’.
This error doesn't occur using the Report Viewer control in a winforms app.
Has anyone seen/resolved this issue?
I do not know exactly the cause of this error, but in my experience, it was related with a simple copy and past from a expression from one cell to other cell inside the results table, all this after making changes in the layout and groups.
I recommend you delete any expression or formula, verify that your report is executed without any error message, and rewrite down all the expressions and formulas one to one, checking in every formula that your report open correctly.
That worked for me.
For me it was the page number in this line
<Value>=Globals!PageNumber + ' of ' + Globals!TotalPages</Value>
When removed everything goes right and i don't know why
Another option for those got this error and generate report markup.
Likely one of you <Value> tags starts with "=" sign and if this is not an expression you need to use EvaluationMode="Constant".