Trying to show a Crystal Report at WebForm1.aspx

Discussion in 'ASP .Net' started by Big George, Aug 10, 2006.

  1. Big George

    Big George Guest

    Trying to show a Crystal Report at WebForm1.aspx:

    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
    If Not Page.IsPostBack Then
    showReport()

    End If
    End Sub

    Private Sub showReport()
    ' Filling DataTable
    '...
    crReportDocument.SetDataSource(MyDataTable)
    CrystalReportViewer1.ReportSource = crReportDocument

    End Sub

    Crystal Report shows on the web page very well. But if you click on
    link page number 2, trying to get the next page, WebForm1.aspx will be
    reloaded again, as page.ispostback. Then I can't see any more pages but
    page1 of my Crystal Report. How could I show a Crystal Report, please?
    Big George, Aug 10, 2006
    #1
    1. Advertising

  2. Big George

    Big Charles Guest

    Using Session is the only way ?
    Like:

    'oRpt is a ReportClass
    If Not Page.IsPostBack Then

    Me.oRpt = context.Items("oRpt")
    Session("oRpt") = Me.oRpt

    showReport()

    Else
    CrystalReportViewer1.ReportSource = Session("oRpt")
    End If

    End Sub

    And performance?
    Big Charles, Aug 10, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. mg
    Replies:
    6
    Views:
    542
  2. Aitham alama
    Replies:
    3
    Views:
    447
    Saravana [MVP]
    Jul 14, 2004
  3. Ted Apollo

    WebForm1.aspx / default.aspx

    Ted Apollo, Aug 26, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    2,361
    Joerg Jooss
    Aug 26, 2004
  4. Aitham alama
    Replies:
    1
    Views:
    101
    Harold S
    Jul 12, 2004
  5. Comfort
    Replies:
    0
    Views:
    537
    Comfort
    Oct 18, 2004
Loading...

Share This Page