CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2003
    Location
    Lahore
    Posts
    31

    Unhappy CrystalReportViewer and ASP.Net

    Hi Sir
    I am Asad, software developer. I am working in ASP.Net2005 with VB.Net 2005 and using CR.Net 2005. I having some problems.
    Whenever i click some button on crystalreportviewer's toolbar, the page bocomes empty. Report becomes invisible.
    I got ur address from Code Project while searching abt reports problem.

    Plz help Me.

    Regards
    Asad Naeem
    May Allah keep this world Peaceful. (Aameen)

  2. #2
    Join Date
    Jan 2007
    Posts
    4

    Re: CrystalReportViewer and ASP.Net

    Did you find an answer to your problem? I believe I have the same problem - I put together a CRViewer project using VB.net (2003). When reports are displayed with crosstabs, there is nothing there. I also get an error when the report has drill down group level code (for header display)i.e, "DrillDownGroupLevel=0" the remaining text does not appear to be part of the formula. All of these reports work fine using Crystal (10) on our server, which is where they are created. The reports are saved with data, so it's not a databse issue at all. Drill down is OKed in the properties of the viewer, so that's not an issue..

    Is this some sort of versioning problem? Any tips on finding the source of the problem would be appreciated.

  3. #3
    Join Date
    Jun 2003
    Location
    Lahore
    Posts
    31

    Re: CrystalReportViewer and ASP.Net

    Hi...
    Yes i found the solution. Infact the buttons of the toolbar are server side controls. I have applied the condition in the Page_Load i.e,
    if Not PostBack() then ..... End If.
    The scenerio was:::
    I have used the typed report (report bidded with typed dataset)
    When i click the button the page starts rendering and and dataset and everything becoes empty and due to the condition the dataset did not fill again that is why reports becmes invisible. I found the solution which
    i have used cache for this purpose. At the time of loading the page, i saved the dataset in the cache with the time duration of 10 mins. Whenever i click any toolbar button the data is retrieved from the cached every time before 10 mins paases. After 10 mins page again retrieves the data from the database otherwise it retrieves the data from the cache. In this way dataset is never empty.

    Contacts
    00923334471758
    [email protected]
    [email protected]
    [email protected]

    Regards
    Asad Naeem
    May Allah keep this world Peaceful. (Aameen)

  4. #4
    Join Date
    Jan 2007
    Posts
    4

    Re: CrystalReportViewer and ASP.Net

    Sounds like yours was a bit different than mine - one thing I have found - If I recreate the report using the Crystal designer in VB.Net (2003), than the crosstab(s) shows. If I open the original report in the (VB) designer, it looks OK (you see the crosstabs, headings etc. in the designer), but even if I do a save as, there is no data when the report is viewed, so it looks like it's at least somewhat related to the fact that the original crosstab reports were created in CR10. I don't know enough about this yet, but I wouldn't think that should be the case. Am I wrong on that?

    I've seen other people have had similar problems, but most of the questions have gone unanswered. Others have indicated that things go blank when they do something that requires the screen to be redrawn - could the problem have anything to do with Windows.Drawing routines that might be treated differently from one version to another?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured