none
Problema na code behind para report viewer RRS feed

  • Pergunta

  • Boa noite,

     

    Eu estou com problemas com o export e com dropdowlist do report viewer, ele fica desabilitado... Eu não achei nada sobre isso no google.

    Pelo que eu percebo o problema fica na behind, pois eu criei uma página vazia ele funciona...

    Segue a behind:

    <%@ Page Language="C#" MasterPageFile="~/MasterPage/main.Master" AutoEventWireup="true" CodeBehind="Report.aspx.cs" Inherits="BRDCPMT_Proj.Report" Title="Untitled Page" %>
    <%@ Register Src="~/Mods/Administration/ProjectManagement/ProjectManagement.ascx"TagName="ProjectManagement"
        TagPrefix="uc1" %>

    <%@ Register Src="~/Mods/Project/Project/TaskPending/Task_Pending.ascx" TagName="Task_Pending"
        TagPrefix="uc16" %>

    <%@ Register Src="~/Mods/Project/Project/Time/ProjectTaskDashboard.ascx" TagName="ProjectTaskDashboard"
        TagPrefix="uc14" %>
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
    <%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
        Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
         
                <cc1:TabContainer ID="main" runat="server" ActiveTabIndex="1" AutoPostBack="True" OnActiveTabChanged="main_ActiveTabChanged">  
            <cc1:TabPanel ID="tabCadastro" runat="server"  HeaderText="TabPanel1">
                <HeaderTemplate>
                    <asp:Label ID="Label3" runat="server" Text="Setup"></asp:Label>
                </HeaderTemplate>
                <ContentTemplate>
                <div>
                    ....loading
                </div>
                </ContentTemplate>
            </cc1:TabPanel>  
            <cc1:TabPanel ID="TabPanel3" runat="server" HeaderText="TabPanel3">
                <ContentTemplate>
                    <cc1:TabContainer ID="controlDashboard" runat="server" ActiveTabIndex="3" CssClass="" AutoPostBack="True" OnActiveTabChanged="controlDashboard_ActiveTabChanged">
                        <cc1:TabPanel ID="TabPanel2" runat="server" HeaderText="TabPanel1">
                            <HeaderTemplate>
                               <a href="../../Default.aspx" class="nounderline">Project Setup</a>
                            </HeaderTemplate>                   
                            <ContentTemplate>
                                ....loading
                            </ContentTemplate>
                        </cc1:TabPanel>
                        <cc1:TabPanel ID="TabPnlResourceDashboard" runat="server" HeaderText="TabPanel1">
                            <HeaderTemplate>
                                <a href="../../ManagementDashboard.aspx" class="nounderline">Requirement Management</a>
                            </HeaderTemplate>                   
                            <ContentTemplate>
                                ....loading
                            </ContentTemplate>
                        </cc1:TabPanel>
                        <cc1:TabPanel ID="TabPanel1" runat="server" HeaderText="TabPanel1">
                            <HeaderTemplate>
                                <a href= "../../TimeDashboard.aspx"class="nounderline">Task Time Dashboard</a>
                            </HeaderTemplate>
                            <ContentTemplate>
                                ....loading
                            </ContentTemplate>
                        </cc1:TabPanel>
                        <cc1:TabPanel ID="TabPanel4" runat="server" HeaderText="TabPanel1">
                            <HeaderTemplate>
                                <a href = "Report.aspx" class="nounderline">Reports</a>                            
                            </HeaderTemplate>                   
                            <ContentTemplate>
                                <cc1:TabContainer ID="TabReports" runat="server" ActiveTabIndex="0" CssClass="" OnActiveTabChanged="TabReports_ActiveTabChanged" AutoPostBack="True">
                                 <cc1:TabPanel ID="TabPanel6" runat="server" HeaderText="TabPanel1">
                            <HeaderTemplate>
                                <a href="Report.aspx" class="nounderline">Deliquency Report</a>
                            </HeaderTemplate>   
                                 <ContentTemplate>
                            <div class="BlocoBordasRedondas">
                                <h3>
                                   <asp:Label ID="lbl_p_Table" runat="server"/>
                                </h3>
                            <div class="BlocoBordasRedondasCorpo">            
                                  <asp:HiddenField ID="txt_ID_Resource" runat="server" Value="104">
                                   
                                    </asp:HiddenField>
                                         <table class="meio filtroCustom">
                                            <tr id="Tr1" class="meio" runat="server">
                                                <td id="Td1" runat="server">
                                    <asp:Label ID="lbl_p_Client" runat="server"></asp:Label>&nbsp;&nbsp;<asp:DropDownList ID="ddl_p_Client" runat="server" DataSourceID="obj_p_client" DataTextField="_name" DataValueField="_id_customer" TabIndex="1" AutoPostBack="True" OnDataBound="ddl_p_Client_DataBound" Width="286px"></asp:DropDownList>
                               
                                                            <asp:ObjectDataSource ID="obj_p_client" runat="server" SelectMethod="getClientAllActive" TypeName="Controlador.Wrapper">
                                                                <SelectParameters>
                                                                    <asp:Parameter Name="_ID_Client" Type="Int32" />
                                                                    <asp:ControlParameter ControlID="txt_ID_Resource" DefaultValue="" Name="_ID_resource" PropertyName="Value" Type="String" />
                                                                    <asp:ControlParameter ControlID="txt_ID_Resource" Name="p_OidUsuarioLogado" PropertyName="Value" Type="String" />
                                                                </SelectParameters>
                                                            </asp:ObjectDataSource> 
                                                            </td>
                                                        
                            <td>
                                    <asp:Label ID="lbl_p_Resource" runat="server"></asp:Label>
                                &nbsp; &nbsp;<asp:DropDownList AppendDataBoundItems="True" CausesValidation="True" DataTextField="_EnterpriseID" DataValueField="_ID_Resource" ID="ddl_p_Resource" OnDataBinding="ddl_p_Resource_DataBinding" OnDataBound="ddl_p_Resource_DataBound" runat="server" Width="150px">
                                   </asp:DropDownList>
                                   </td>
                                   </tr>
                                  
                                   </table>
                                   <table class="meio filtroCustom">
                                     <tr>
                                <td align="center" style="height: 3px">
                                <asp:Button ID="btnReport" CssClass="button" runat="server" OnClick="btnReport_Click"
                                         Text="Report" /></center>
                                </td>
                  </tr>
                                 </table>
                                <%-- <table>
                                 <tr>
                                 <td style="width: 458px">--%>
                          
                                                 
                                <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt"
                                    Height="470px" HyperlinkTarget="_self" ProcessingMode="Remote" SizeToReportContent="True" AsyncRendering="False"
                                    Width="969px">
                                </rsweb:ReportViewer>
                                 
                              <%--  </table>
                                --%>
                               
                               
                             </div>
                            
                        
                            <div class="BlocoBordasRedondasRodape">
                                <div class="bordasdireita"></div>
                                <div class="bordasesquerda"></div>
                                <div class="bordasmeio">
                                   
                                 
                                </div>                                   
                             </div>  
                            </div> 
                            </div>             
                            </ContentTemplate>
                               
                        </cc1:TabPanel>
                           <cc1:TabPanel ID="TabPanel7" runat="server" HeaderText="TabPanel1">
                            <HeaderTemplate>
                                <a href="RepReqMan.aspx" class="nounderline" tabindex="1">Requirements Status</a>
                            </HeaderTemplate>   
                               <ContentTemplate>
                                   ....loading
                               </ContentTemplate>
                        </cc1:TabPanel>
                           <cc1:TabPanel ID="TabPanel8" runat="server" HeaderText="TabPanel1">
                            <HeaderTemplate>
                                <a href="RepTime.aspx" class="nounderline">Appointments Report</a>
                            </HeaderTemplate>   
                               <ContentTemplate>
                                   &nbsp;....loading
                               </ContentTemplate>
                            </cc1:TabPanel>
                                </cc1:TabContainer>
                            </ContentTemplate>
                        </cc1:TabPanel>
                    </cc1:TabContainer>
                </ContentTemplate>
                <HeaderTemplate>
                    <a href="" class="nounderline">Dashboard</a>
                </HeaderTemplate>
            </cc1:TabPanel>
            <cc1:TabPanel ID="TabPanel5" runat="server" HeaderText="TabPanel5">
                <ContentTemplate>
                    ....loading
                </ContentTemplate>
                <HeaderTemplate>
                    <a href="../../DefaultAdm.aspx" class="nounderline">Admin</a>
                </HeaderTemplate>
            </cc1:TabPanel>
        </cc1:TabContainer>
    </asp:Content>

    Alguém pode me ajudar? 

    Obrigada                        

     

     


    Rita de Cássia
    domingo, 5 de dezembro de 2010 02:41

Todas as Respostas

  • Rita,

    Não consegui entender o que você deseja fazer ou qual é o seu problema?


    Pedro Antonio Galvão Junior [MVP | Microsoft Evangelist | Microsoft Partner | Engenheiro de Softwares | Especialista em Banco de Dados | SorBR.Net | Professor Universitário | MSIT.com]
    terça-feira, 7 de dezembro de 2010 18:39