Writing Code
 Crystal Reports Forum : Crystal Reports .NET 2003 : Writing Code
Message Icon Topic: next page is not shown + crystal report + asp.net Post Reply Post New Topic
Author Message
yasinirshad
Newbie
Newbie
Avatar

Joined: 24 Sep 2007
Location: Saudi Arabia
Online Status: Offline
Posts: 39
Quote yasinirshad Replybullet Topic: next page is not shown + crystal report + asp.net
    Posted: 01 Jun 2008 at 7:57am

Hi,
Question on crystal report 8.5 (asp.net 2003)
when i click on next button(from page1), next page (page2) never appears..
instead page1 disappears...
Below is my code..
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'Put user code to initialize the page here
        Try           
            If Not IsPostBack Then
                txtSTdate.Text = System.DateTime.Today.ToString
                txtCLdate.Text = System.DateTime.Now.ToString
                btn_division.Attributes.Add("onclick", "return openPopUp();")
                btn_department.Attributes.Add("onclick", "return openDeptPopUp();")               
            End If
        Catch ex As Exception
            lblError.Text = ex.Message.ToString
        End Try
    End Sub

Here I have a report with sub report.
page1 displays main report and page 2 shd have sub report.

Thanks to help.

 

Thanks,
Yasin.
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 02 Jun 2008 at 5:41pm
You need to store the report object in the Session collection. On postback, pull the report from the Session collection and assign it to the viewer.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.