SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Analysis Server and Reporting Services (2005)
 Report Viewer Control Browser compatability
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Dev@nlkss
Posting Yak Master

India
134 Posts

Posted - 06/05/2009 :  01:06:01  Show Profile  Reply with Quote
Hi,
I am displaying my report in .net using repor viewer control.
When i view using IE the report viewer properties(find,print,Zoom etc) are displaying horizantally in single line which is fine;
but when i view the same in using "Google Chrome" browser the properties are splitted into multiple rows and report viewer properties window is elaborating which looks odd.

please tell me how to fix this.
any sugetions or links.
Thanks in advance.



$atya.

Love All Serve All.

Dev@nlkss
Posting Yak Master

India
134 Posts

Posted - 06/05/2009 :  02:41:56  Show Profile  Reply with Quote
Am i clear with the topic.
and one more issue with Google chrome browser is DateTime picker is not displaying for datetime datatype parameter.
its really urgent.
please provide some books or links for design issues and compatibility.
Thanks for any help.

$atya.

Love All Serve All.
Go to Top of Page

iga
Starting Member

1 Posts

Posted - 08/12/2009 :  04:52:31  Show Profile  Reply with Quote
Something like this may help:

/*Chrome hack*/
body:nth-of-type(1) #ctl00_MCPH_WAReportViewer_ctl01 > div > div > div
{
display: inline-block !important;
}
/*Chrome hack*/
body:nth-of-type(1) #ctl00_MCPH_WAReportViewer_ctl01 > div > div > table
{
display: inline-block !important;
}

Hope it works for you too ;)

quote:
Originally posted by Dev@nlkss

Hi,
I am displaying my report in .net using repor viewer control.
When i view using IE the report viewer properties(find,print,Zoom etc) are displaying horizantally in single line which is fine;
but when i view the same in using "Google Chrome" browser the properties are splitted into multiple rows and report viewer properties window is elaborating which looks odd.

please tell me how to fix this.
any sugetions or links.
Thanks in advance.



$atya.

Love All Serve All.


Edited by - iga on 08/12/2009 07:19:00
Go to Top of Page

mazar
Starting Member

1 Posts

Posted - 10/13/2009 :  11:41:18  Show Profile  Reply with Quote
I cannot answer your question about the Date Picker, but I have blogged about the "report Parameters appearing in multiple lines in Chrome".

http://www.mazsoft.com/blog/post/2009/08/13/ReportViewer-control-toolbar-in-Google-Chrome-browser.aspx
Go to Top of Page

Shruthi N
Starting Member

India
1 Posts

Posted - 06/01/2010 :  06:14:02  Show Profile  Reply with Quote
Hi,

I am not able to find the solution bu using the code mentioned in
http://www.mazsoft.com/blog/post/2009/08/13/ReportViewer-control-toolbar-in-Google-Chrome-browser.aspx

Here is my code:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title></title>
<script type="text/jscript">
if ($.browser.safari) {
$("#ReportViewer1 table").each(function(i, item) {
$(item).css('display', 'inline-block');
});
}
</script>
</head>
<body>
<table width="100%" border="1">
<tr>
<td align="left" width="80%" valign="top">
<rsweb:ReportViewer ID="ReportViewer1" ShowRefreshButton="false" runat="server" Font-Names="Verdana"
Font-Size="8pt" Width="100%" Height="450px">
</rsweb:ReportViewer>
</td>
</tr>
</table>
</form>
</body>
</html>

Can you please, if i am missing simething here.

Shruthi N
Go to Top of Page

paulpeeters
Starting Member

Belgium
1 Posts

Posted - 09/15/2010 :  05:14:08  Show Profile  Reply with Quote
@Shruthi N:

1. You should include a reference to jQuery:

<script src="jquery-1.4.2.min.js" type="text/javascript"></script>

2. You need to move the patch to the bottom (after closing </form> tag)

3. If this is for Chrome you need to change the condition to:

if ($.browser.webkit) {
...
}

That worked for me.

Regards
Paul


Edited by - paulpeeters on 09/15/2010 05:23:49
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000