locked
how to get InnerHtml for Reportviwer (RDL) control. RRS feed

  • Question

  • Hello All, 

    I am working in SSRS reporting. i integrated the SSRS reports(RDL) through Report Viewer Control. When i saw it in ASPX page in mozila, the Firebug gives complete inner html of SSRS report like   

    <td colspan="5" rowspan="2"><table cols="10" cellspacing="0" cellpadding="0" border="0" class="a178" style="border-collapse: collapse;" id="5iT0"><tbody><tr height="0" id="5iT0r"><td style="width: 42.33mm;"></td><td style="width: 22.75mm;"></td><td style="width: 24.34mm;"></td><td style="width: 27.52mm;"></td><td style="width: 18.79mm;"></td><td style="width: 12.17mm;"></td><td style="width: 11.91mm;"></td><td style="width: 11.91mm;"></td><td style="width: 15.61mm;"></td><td style="width: 3.97mm;"></td></tr><tr valign="top" id="5iT0tr0"><td class="a47c r14" style="height: 6.35mm;">&nbsp;</td><td class="a51c r14">&nbsp;</td><td class="a55c r14">&nbsp;</td><td class="a59c r14">&nbsp;</td><td class="a63c r14">&nbsp;</td><td class="a67c" colspan="4"><div class="a67">Grade</div></td><td class="a74c r14">&nbsp;</td></tr><tr valign="top" id="5iT0tr1"><td class="a83c" style="height: 14.13mm;"><div class="a83">District Name*</div></td><td class="a87c"><div id="63iT0"><table lang="en-US" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td class="a87">School Year</td><td style="vertical-align: bottom;">&nbsp;<a onkeypress="if(event.keyCode == 13 || event.which == 13){ClientReportctl00.ActionHandler('Sort','63iT0_A');}return false;" onclick="ClientReportctl00.ActionHandler('Sort','63iT0_A');return false;" style="cursor: pointer;" tabindex="1"><img border="0" src="/MEDW/Reserved.ReportViewerWebControl.axd?ReportSession=nkkkmu45jhdwwa451fftm0e4&amp;ControlID=3f898709b803450d894492ecb53b51b1&amp;Culture=1033&amp;UICulture=1033&amp;ReportStack=3&amp;OpType=ReportImage&amp;ResourceStreamID=10.0.2531.0 ((Katmai_PCU_Main).090329-1045 )unsorted.gif"></a></td></tr></tbody></table></div></td><td class="a91c"><div id="67iT0"><table lang="en-US" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td class="a91">Dropouts</td><td style="vertical-align: bottom;">&nbsp;<a onkeypress="if(event.keyCode == 13 || event.which == 13){ClientReportctl00.ActionHandler('Sort','67iT0_A');}return false;" onclick="ClientReportctl00.ActionHandler('Sort','67iT0_A');return false;" style="cursor: pointer;" tabindex="2"><img border="0" src="/MEDW/Reserved.ReportViewerWebControl.axd?ReportSession=nkkkmu45jhdwwa451fftm0e4&amp;ControlID=3f898709b803450d894492ecb53b51b1&amp;Culture=1033&amp;UICulture=1033&amp;ReportStack=3&amp;OpType=ReportImage&amp;ResourceStreamID=10.0.2531.0 ((Katmai_PCU_Main).090329-1045 )unsorted.gif"></a></td></tr></tbody></table></div></td><td class="a95c"><div id="71iT0"><table lang="en-US" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td class="a95">Enrollment</td><td style="vertical-align: bottom;">&nbsp;<a onkeypress="if(event.keyCode == 13 || event.which == 13){ClientReportctl00.ActionHandler('Sort','71iT0_A');}return false;" onclick="ClientReportctl00.ActionHandler('Sort','71iT0_A');return false;" style="cursor: pointer;" tabindex="3"><img border="0" src="/MEDW/Reserved.ReportViewerWebControl.axd?ReportSession=nkkkmu45jhdwwa451fftm0e4&amp;ControlID=3f898709b803450d894492ecb53b51b1&amp;Culture=1033&amp;UICulture=1033&amp;ReportStack=3&amp;OpType=ReportImage&amp;ResourceStreamID=10.0.2531.0 ((Katmai_PCU_Main).090329-1045 )unsorted.gif"></a></td></tr></tbody></table></div></td><td class="a99c"><div id="75iT0"><table lang="en-US" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td class="a99">Annual Dropout Rate</td><td style="vertical-align: bottom;">&nbsp;<a onkeypress="if(event.keyCode == 13 || event.which == 13){ClientReportctl00.ActionHandler('Sort','75iT0_A');}return false;" onclick="ClientReportctl00.ActionHandler('Sort','75iT0_A');return false;" style="cursor: pointer;" tabindex="4"><img border="0" src="/MEDW/Reserved.ReportViewerWebControl.axd?ReportSession=nkkkmu45jhdwwa451fftm0e4&amp;ControlID=3f898709b803450d894492ecb53b51b1&amp;Culture=1033&amp;UICulture=1033&amp;ReportStack=3&amp;OpType=ReportImage&amp;ResourceStreamID=10.0.2531.0 ((Katmai_PCU_Main).090329-1045 )unsorted.gif"></a></td></tr></tbody></table></div></td><td class="a103c"><div id="79iT0"><table lang="en-US" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td class="a103">9</td><td style="vertical-align: bottom;">&nbsp;<a onkeypress="if(event.keyCode == 13 || event.which == 13){ClientReportctl00.ActionHandler('Sort','79iT0_A');}return false;" onclick="ClientReportctl00.ActionHandler('Sort','79iT0_A');return false;" style="cursor: pointer;" tabindex="5"><img border="0" src="/MEDW/Reserved.ReportViewerWebControl.axd?ReportSession=nkkkmu45jhdwwa451fftm0e4&amp;ControlID=3f898709b803450d894492ecb53b51b1&amp;Culture=1033&amp;UICulture=1033&amp;ReportStack=3&amp;OpType=ReportImage&amp;ResourceStreamID=10.0.2531.0 ((Katmai_PCU_Main).090329-1045 )unsorted.gif"></a></td></tr></tbody></table></div></td><td class="a107c"><div id="83iT0"><table lang="en-US" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td class="a107">10</td><td style="vertical-align: bottom;">&nbsp;<a onkeypress="if(event.keyCode == 13 || event.which == 13){ClientReportctl00.ActionHandler('Sort','83iT0_A');}return false;" onclick="ClientReportctl00.ActionHandler('Sort','83iT0_A');return false;" style="cursor: pointer;" tabindex="6"><img border="0" src="/MEDW/Reserved.ReportViewerWebControl.axd?ReportSession=nkkkmu45jhdwwa451fftm0e4&amp;ControlID=3f898709b803450d894492ecb53b51b1&amp;Culture=1033&amp;UICulture=1033&amp;ReportStack=3&amp;OpType=ReportImage&amp;ResourceStreamID=10.0.2531.0 ((Katmai_PCU_Main).090329-1045 )unsorted.gif"></a></td></tr></tbody></table></div></td><td class="a111c"><div id="87iT0"><table lang="en-US" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td class="a111">11</td><td style="vertical-align: bottom;">&nbsp;<a onkeypress="if(event.keyCode == 13 || event.which == 13){ClientReportctl00.ActionHandler('Sort','87iT0_A');}return false;" onclick="ClientReportctl00.ActionHandler('Sort','87iT0_A');return false;" style="cursor: pointer;" tabindex="7"><img border="0" src="/MEDW/Reserved.ReportViewerWebControl.axd?ReportSession=nkkkmu45jhdwwa451fftm0e4&amp;ControlID=3f898709b803450d894492ecb53b51b1&amp;Culture=1033&amp;UICulture=1033&amp;ReportStack=3&amp;OpType=ReportImage&amp;ResourceStreamID=10.0.2531.0 ((Katmai_PCU_Main).090329-1045 )unsorted.gif"></a></td></tr></tbody></table></div></td><td class="a115c"><div id="91iT0"><table lang="en-US" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td class="a115">12</td><td style="vertical-align: bottom;">&nbsp;<a onkeypress="if(event.keyCode == 13 || event.which == 13){ClientReportctl00.ActionHandler('Sort','91iT0_A');}return false;" onclick="ClientReportctl00.ActionHandler('Sort','91iT0_A');return false;" style="cursor: pointer;" tabindex="8"><img border="0" src="/MEDW/Reserved.ReportViewerWebControl.axd?ReportSession=nkkkmu45jhdwwa451fftm0e4&amp;ControlID=3f898709b803450d894492ecb53b51b1&amp;Culture=1033&amp;UICulture=1033&amp;ReportStack=3&amp;OpType=ReportImage&amp;ResourceStreamID=10.0.2531.0 ((Katmai_PCU_Main).090329-1045 )unsorted.gif"></a></td></tr></tbody></table></div></td><td class="a119c r14">&nbsp;</td></tr><tr valign="top" id="5iT0tr2"><td class="a128c" style="height: 6.35mm; background-color: rgb(223, 230, 245);"><div class="a128" style="word-wrap: break-word; color: Blue;"><a target="_top" style="cursor: pointer; text-decoration: none; color: Blue;" href="" onkeypress="if(event.keyCode == 13 || event.which == 13){ClientReportctl00.ActionHandler('Drillthrough','104iT0R0x0:0');}return false;" onclick="ClientReportctl00.ActionHandler('Drillthrough','104iT0R0x0:0');return false;" tabindex="9">Auburn School Department</a></div></td><td class="a132c" style="background-color: rgb(223, 230, 245);"><div class="a132" style="word-wrap: break-word;">2009</div></td><td class="a136c" style="background-color: rgb(223, 230, 245);"><div class="a136" style="word-wrap: break-word;">70</div></td><td class="a140c" style="background-color: rgb(223, 230, 245);"><div class="a140" style="word-wrap: break-word;">1,126</div></td><td class="a144c" style="background-color: rgb(223, 230, 245);"><div class="a144" style="word-wrap: break-word;">6.2</div></td><td class="a148c" style="background-color: rgb(223, 230, 245);"><div class="a148" style="word-wrap: break-word;">**</div></td><td class="a152c" style="background-color: rgb(223, 230, 245);"><div class="a152" style="word-wrap: break-word;">**</div></td><td class="a156c" style="background-color: rgb(223, 230, 245);"><div class="a156" style="word-wrap: break-word;">4.4</div></td><td class="a160c" style="background-color: rgb(223, 230, 245);"><div class="a160" style="word-wrap: break-word;">16.9</div></td><td class="a164c r14">&nbsp;</td></tr><tr valign="top"><td class="a128c" style="height: 6.35mm; background-color: White;"><div class="a128" style="word-wrap: break-word; color: Blue;"><a target="_top" style="cursor: pointer; text-decoration: none; color: Blue;" href="" onkeypress="if(event.keyCode == 13 || event.which == 13){ClientReportctl00.ActionHandler('Drillthrough','104iT0R0x1:0');}return false;" onclick="ClientReportctl00.ActionHandler('Drillthrough','104iT0R0x1:0');return false;" tabindex="10">Auburn School Department</a></div></td><td class="a132c" style="background-color: White;"><div class="a132" style="word-wrap: break-word;">2008</div></td><td class="a136c" style="background-color: White;"><div class="a136" style="word-wrap: break-word;">69</div></td><td class="a140c" style="background-color: White;"><div class="a140" style="word-wrap: break-word;">1,132</div></td><td class="a144c" style="background-color: White;"><div class="a144" style="word-wrap: break-word;">6.1</div></td><td class="a148c" style="background-color: White;"><div class="a148" style="word-wrap: break-word;">**</div></td><td class="a152c" style="background-color: White;"><div class="a152" style="word-wrap: break-word;">**</div></td><td class="a156c" style="background-color: White;"><div class="a156" style="word-wrap: break-word;">4.7</div></td><td class="a160c" style="background-color: White;"><div class="a160" style="word-wrap: break-word;">14.9</div></td><td class="a164c r14">&nbsp;</td></tr><tr valign="top"><td class="a128c" style="height: 6.35mm; background-color: rgb(223, 230, 245);"><div class="a128" style="word-wrap: break-word; color: Blue;"><a target="_top" style="cursor: pointer; text-decoration: none; color: Blue;" href="" onkeypress="if(event.keyCode == 13 || event.which == 13){ClientReportctl00.ActionHandler('Drillthrough','104iT0R0x2:0');}return false;" onclick="ClientReportctl00.ActionHandler('Drillthrough','104iT0R0x2:0');return false;" tabindex="11">Auburn School Department</a></div></td><td class="a132c" style="background-color: rgb(223, 230, 245);"><div class="a132" style="word-wrap: break-word;">2007</div></td><td class="a136c" style="background-color: rgb(223, 230, 245);"><div class="a136" style="word-wrap: break-word;">83</div></td><td class="a140c" style="background-color: rgb(223, 230, 245);"><div class="a140" style="word-wrap: break-word;">1,162</div></td><td class="a144c" style="background-color: rgb(223, 230, 245);"><div class="a144" style="word-wrap: break-word;">7.1</div></td><td class="a148c" style="background-color: rgb(223, 230, 245);"><div class="a148" style="word-wrap: break-word;">**</div></td><td class="a152c" style="background-color: rgb(223, 230, 245);"><div class="a152" style="word-wrap: break-word;">4.3</div></td><td class="a156c" style="background-color: rgb(223, 230, 245);"><div class="a156" style="word-wrap: break-word;">9.0</div></td><td class="a160c" style="background-color: rgb(223, 230, 245);"><div class="a160" style="word-wrap: break-word;">13.0</div></td><td class="a164c r14">&nbsp;</td></tr></tbody></table></td>

    But when i am trying it through JAVASCRIPT  INNERHTML then it only give 

     

     

                                  <div id="ReportViewer1" style="display: inline-block; border-color: Silver; height: 300px; width: 740px;">

    <input name="ReportViewer1$ctl04" id="ReportViewer1_ctl04" type="hidden"><input name="ReportViewer1$ctl05" id="ReportViewer1_ctl05" type="hidden"><input name="ReportViewer1$ctl06" id="ReportViewer1_ctl06" value="1" type="hidden"><noscript>

    &nbsp;Your browser does not support scripts or has been configured not to allow scripts.

    </noscript><iframe src="/DirectoryManager/Reserved.ReportViewerWebControl.axd?OpType=DocMapReport&amp;ClientController=ClientControllerReportViewer1&amp;ReportUrl=%2fDirectoryManager%2fReserved.ReportViewerWebControl.axd%3fReportSession%3dl1byu345zxp05iylweoa2w55%26ControlID%3d24f66f36f9ec425c889af48cc630af7a%26Culture%3d1033%26UICulture%3d1033%26ReportStack%3d1%26OpType%3dReportArea%26Controller%3dClientControllerReportViewer1%26PageNumber%3d1%26ZoomMode%3dPercent%26ZoomPct%3d100%26ReloadDocMap%3dtrue%26SearchStartPage%3d0%26LinkTarget%3d_top" id="ReportFrameReportViewer1" name="ReportFrameReportViewer1" style="width: 100%; height: 100%; display: inline;" frameborder="0">

     

    </iframe>

    </div><iframe name="ReportViewer1TouchSession0" id="ReportViewer1TouchSession0" onload="if (frames['ReportViewer1TouchSession0'].location != 'javascript:\'\'') frames['ReportViewer1TouchSession0'].location.replace('javascript:\'\'');" src="javascript:''" style="position: absolute; width: 0pt; height: 0pt; visibility: hidden;">

     

    </iframe><script type="text/javascript">

    setTimeout("frames['ReportViewer1TouchSession0'].location.replace('/DirectoryManager/Reserved.ReportViewerWebControl.axd?ReportSession=l1byu345zxp05iylweoa2w55&ControlID=24f66f36f9ec425c889af48cc630af7a&Culture=1033&UICulture=1033&ReportStack=1&OpType=SessionKeepAlive&TimerMethod=KeepAliveMethodReportViewer1TouchSession0&CacheSeed=' + encodeURIComponent(Date()));", 0);function KeepAliveMethodReportViewer1TouchSession0() {setTimeout("frames['ReportViewer1TouchSession0'].location.replace('/DirectoryManager/Reserved.ReportViewerWebControl.axd?ReportSession=l1byu345zxp05iylweoa2w55&ControlID=24f66f36f9ec425c889af48cc630af7a&Culture=1033&UICulture=1033&ReportStack=1&OpType=SessionKeepAlive&TimerMethod=KeepAliveMethodReportViewer1TouchSession0&CacheSeed=' + encodeURIComponent(Date()));", 526000);}

    </script><script type="text/javascript">

    ClientControllerReportViewer1.ShowInitialWaitFrame();

     

    </script>

    ..................................................................

    I want the innerHTML which produced by Mozila FireBug.

    Your help is highly appreciated.
    thanx in advance.


     

    Wednesday, February 9, 2011 9:20 AM