I have created a web app that uses reportviewer 10.0.0.0 in VS2010 to render SSRS 2008 reports. The reports and toolbar do render, but they are displayed with weird layout. I see many unnecessary lines wrapped around the report as well as the toolbar (as shown in screenshot). I ran out of ideas on how to fix this problem. Are there some settings I missed for the reportviewer that caused this? How can I fix this issue? Thank you.
aspx:
<rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-
Size="8pt" InteractiveDeviceInfos="(Collection)" ProcessingMode="Remote"
WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" Width="100%"
ShowParameterPrompts="false" ShowPrintButton="true"></rsweb:ReportViewer>
code behind:
ReportViewer1.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote;
ReportViewer1.ServerReport.ReportServerUrl = new Uri(GlobalProperties.SSRSBasePath); // Report Server URL
ReportViewer1.ServerReport.ReportPath = "/" + folder_name + "/" + report_name; // Report Name
ReportViewer1.ServerReport.SetParameters(reportParameterCollection);
ReportViewer1.ServerReport.Refresh();
It sounds like you're having the problem I had when I got started with ReportViewer.
Try looking at your css. Check to see if you have any borders and other formatting for all tables on the site set that may cause the issue.
Related
I'm trying to set up an Birt report viewer (4.3.1) on a glassfish server(4).
The index page works, but when i try to run the test report , the browser gives me some text but not render the player. That doesn´t seems like an exception.
That's the screenshot:
https://dl.dropboxusercontent.com/u/3294352/www/BIRTPROBLEM.PNG
Seems like the path is incorrect (images, styles and js includes)... I did try to solve moving the files on applications folder (on glasshfish domain), but that's not working.
Please, help :)
I had the same issue.
http://developer.actuate.com/community/forum/index.php?/topic/34461-birt-glassfish/#entry127724
I responded to a similar questions about this on the Eclipse BIRT Newsgroup a little while back. I saw the same issue with the frameset and run servlets. If you change the URL to preview, it works as expected. You could file a bug for this in the eclipse.org/birt bugzilla to see what they say.
I am confused why Visual Studio 2010 gives me the following Validation error on my source tag.
Validation (HTML5): Element 'source' cannot be nested within element
'audio'
Below is my code in the cshtml View:
#{
ViewBag.Title = "Audio";
string audioURL = Url.Content("~/Content/Audio/untitled.mp3");
}
<div>
<audio id ="myAudio" controls preload="auto">
<source src="#audioURL" type="audio/mpeg" />
</audio>
</div>
I have been looking around, and I have seen many references to multiple src attributes in the tag. But that doesn't answer my question, why the validation error? Is it actually correct, but VS2010 thinks it wrong, or is it really incorrect, and if so, why is it incorrect?
I have found the issue, it is a bug within Visual Studio 2010, Looking though their docs I found this link
Web Standards Update for Visual Studio 2010 SP1
This is what they said about the problem, and the update should fix it.
The HTML 5 support included in SP1 added intellisense and validation for a lot of new elements such as the video and source elements. However, there were bugs and one of them were the error you would see when adding source elements inside video elements. This is being fixed by this update so you now also get intellisense for the source element.
Its the ~ character in the audioURL string ..
Quoting from similar question on forums.asp.net
~ character in the src attribute won't be reconginsed in HTML tags!
you cannot use tilder mark to go to the root level unless it's a
server control. Use .. to go to the upper directory and so on. That's
how you should define the relative path for HTML controls. For
example: src="../Mp3/RonaldReaganChallengerAddress.mp3"
Remove the quotes from the source src attribute. It's already a string
<audio id ="myAudio" controls preload="auto">
<source src = #audioURL type="audio/mpeg" />
</audio>
I have a very weird situation. I'm using a ReportViewer control in ASP.NET to show a report in my aspx page. This works fine when i build my web site with VS2008. But it goes wrong when i add a Report Viewer control to a page in VS2010...
The problem i have with the ReportViewer in VS2010 is that it constantly keeps refreshing my report. When i view the network traffic that i send from that page i can clearly see the ReportViewer is constantly sending a new request to get the report. I have no clue why it is behaving like this, and only in VS2010...
But this ONLY happends when i try to add a parameter to my report.
This is what my code looks like:
VS2008
<rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana"
Font-Size="8pt" Height="642px" ProcessingMode="Remote" Width="896px">
<ServerReport ReportPath="http://server.com/Product/Dashboards/test.rdl"
ReportServerUrl="http://server.com/ReportServer" />
</rsweb:ReportViewer>
VS2010
<rsweb:ReportViewer ID="ReportViewer1" runat="server"
ProcessingMode="Remote" Width="948px" Font-Names="Verdana" Font-Size="8pt"
WaitMessageFont-Names="Verdana"
WaitMessageFont-Size="14pt">
<ServerReport ReportPath="http://server.com/Product/Dashboards/test.rdl"
ReportServerUrl="http://server.com/ReportServer" />
</rsweb:ReportViewer>
Code behind
For both VS2008 and VS2010 i have the following code in my Page_Load:
ReportParameter[] reportParameters = new ReportParameter[1];
reportParameters[0] = new ReportParameter("year", "2012", true);
ReportViewer1.ServerReport.SetParameters(reportParameters);
ReportViewer1.ServerReport.Refresh();
Why do i have problems with VS2010 when i add parameters, ie: Why does it keeps refreshing my report? And why is this working perfectly fine in VS2008?
This may be the problem you're encountering: Reports Never Stop Loading With VS 2010
Apparently you need a check for IsPostBack before calling SetParameters.
I know this is in an old one, but for those still looking I had this problem in ReportViewer2012 and solved it by checking for a post back in the code behind.
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
// Your code behind code here
}
}
This may also help: https://social.msdn.microsoft.com/Forums/en-US/deae558c-977f-484e-86ba-50cfd376c181/reportviewer-constantly-refreshing?forum=vsreportcontrols
I have been getting all of these "Validation (): Element 'x' is not supported" warnings and I can't seem to find a way to get rid of them. Here are two examples:
Validation (XHTML 1.0 Transitional): Attribute 'name' is not a valid attribute of element 'ul'.
Validation (CSS 2.1): 'border-radius' is not a known CSS property name.
I have searched on the web and all solutions point to removing the following folder:
C:\Users\{username}\AppData\Roaming \Microsoft\VisualStudio\10.0\ReflectedSchemas
Which seems to fix 90% of people's issues, however I don't have that folder anywhere on my computer!
I am using Visual Studio 10 SP1 and this project is an MVC 3 project using Razor and HTML5.
So can anyone else suggest what else might be causing the issue?
Thanks very much.
I was encountering the same problem and ALL classic html elements (div, a, p, table..) in every page had green underlines. Intellisense did not give any help with these elements, as if they didn't exist. But all asp controls were fine and valid.
The error was the xmlns="https://www.w3.org/1999/xhtml" in the html tag in my master page. Html 5 does not seem to work well together with the xmlns declaration so I removed it, and voila - everything magically works again!
Those are valid warnings, not a bug or other sort of "issue." The list of valid attributes for <ul> is given in the W3C standards, and it doesn't include name. Meanwhile, border-radius was introduced in CSS 3, which means if you validate against CSS 2.1 it's not going to work.
You can either ignore them or figure out how to suppress those particular warnings in VS2010 (I know how to do that for VC++, but I haven't used VS for HTML before; there should be some section in the Properties window for it).
First of all you need to know it's not an error!
Steps to resolve the warning message for an element.
Right click the warning area, you will see a context menu.
Click "Formatting and Validation..." basically it's at the bottom of the menu.
Go to "Validation" in "HTML or HTML (Web Forms)" section. You'll see a checkbox with "Show errors" is checked to true with header "Options". Just unchecke it.
enter image description here
enter image description here
That's it, you are done...
You have to remove
xmlns="https://www.w3.org/1999/xhtml"
let it remain
<!DocType Html>
only above
I am using crystal reports in VS 2010. I have a report with a watermark added. When I use 'main report preview' the watermark shows up just fine. When I use code to show the report it is gone.
InitializeComponent()
ReportViewer.Owner = Me
Dim durocReport As New Duroc
durocReport.SetParameterValue("registration", reg)
durocReport.SetDatabaseLogon("", "")
ReportViewer.ViewerCore.ReportSource = durocReport
The report shows perfectly except the watermark/background is missing, all of the data is correct.
I fixed this by cutting the resolution of the image from 300 to 85. It seems to be a file size issue. The image was also missing anytime I reloaded visual studio. It currently works, I will just have to mess around with the image quality until it looks good enough to use.