Click here to Skip to main content
15,899,935 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
Am Planning to load/show the Crystal reports on a ModalPopup which I did, My problem is when I go to page 2 of the report nothing happens.

what should I need to do to get this objective? :(

EDIT

Here is My Crystal Report on My ModalPopUp

XML
<asp:UpdatePanel ID="UpdateReport" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <ajaxToolkit:ModalPopupExtender ID="ReportMPE" runat="server" TargetControlID="rptViewer"
                PopupDragHandleControlID="Panel1" PopupControlID="Panel1" RepositionMode="RepositionOnWindowResize"
                DropShadow="true"/>
            <asp:Panel ID="Panel1" runat="server" >
                <div id="Div1" style= "height: 800%; width:500%; background-color:Green; ">
                    <h1 id="H1">Branch Asset Profile</h1>
                       <div id="CrystalRPTView" style=" width:780px;  background-color:Gray;">
                           <CR:CrystalReportViewer ID="rptViewer" runat="server" AutoDataBind="false"
                            DisplayToolbar="True" DisplayGroupTree="False" EnableDrillDown="False" EnableParameterPrompt="False"
                            HasCrystalLogo="False" HasDrillUpButton="False"
                            HasSearchButton="False" HasToggleGroupTreeButton="False"
                            HasViewList="False" toolbarstyle-width="760px"
                            HasZoomFactorList="False" ReportSourceID="rptSource" BorderColor="Black"
                            BorderStyle="Solid" BorderWidth="1px" SkinID="0"
                            GroupTreeStyle-BackColor="White" BackColor="White"/>
                        </div>
                        <asp:Button ID="btnClose" Text="Close" runat ="server" />
                </div>
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>


My VB.NET code

VB
Me.UpdateReport.Update()
rptViewer.ReportSource = Me.Session(Reports)
Me.ReportMPE.Show()


Were Me.Session(Reports) is

VB
dt.Load(DataRead)
Dim myReport As New ReportDocument
    With myReport
        .Load(AppDomain.CurrentDomain.BaseDirectory + "CrystalRPT\BranchAssetProfile.rpt")
        .SetDataSource(dt)
        .SetParameterValue("DateFrom", DateFrom)
        .SetParameterValue("DateTo", DateTo)
        .SetParameterValue("Station", Station)
    End With
Me.Session.Add("Reports", myReport)
Posted
Updated 25-Sep-13 14:31pm
v5
Comments
Please post some code and indicate where exactly is the issue.
iMaker.ph 1-Oct-13 14:37pm    
Well My current problem is when ever I go to page 2 nothing happens

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900