Results 1 to 4 of 4

Thread: Crystal reports Viewer Problem

  1. #1

    Thread Starter
    Lively Member Iain Wicks's Avatar
    Join Date
    Jun 2005
    Location
    Tring, Hertfordshire
    Posts
    88

    Crystal reports Viewer Problem

    Hi all
    I have just VB.Net installed not the whole Visual Studio suite as I couldn't afford to buy it.
    However I do have MSDE installed and I do have Crystal reports installed becaused I use them anyway.
    Is there any way i can get hold of the CrystalReportViewer without having to buy the whole Visual Studio suite so that I can write an app for my Crystal reports.

    Thanks

    Iain
    Last edited by Iain Wicks; Jun 30th, 2005 at 08:50 AM.

  2. #2

    Thread Starter
    Lively Member Iain Wicks's Avatar
    Join Date
    Jun 2005
    Location
    Tring, Hertfordshire
    Posts
    88

    Re: Crystal reports Viewer

    found it.
    Right-clcked on toolbar and selected .com components and there it was.

    Iain

  3. #3

    Thread Starter
    Lively Member Iain Wicks's Avatar
    Join Date
    Jun 2005
    Location
    Tring, Hertfordshire
    Posts
    88

    Re: Crystal reports Viewer Problem (beginner)

    Even though I found it I am having problems using it.
    I am trying to follow a basic example in a .NET tutorials book. Unfortunately the book uses the whole visual studio etc.
    WHereas I am creating my report in Crystal and then trying to link to it from my form.

    I have a basic form which shows 2 controls, a button and the CrystalReportViewer.

    below is the code I put behind the button click
    ------------------------------------------------------------
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    CrystalReportViewer1.ReportSource=("C:\Documents and Settings\iain\My Documents\Visual Studio Projects\Crystal Sample database\Xtreme Customer List.rpt")
    End Sub
    -------------------------------------------------------------------

    The app loads OK then I click on my button to load the report and get the following error message;

    "An unhandled exception of type 'System.InvalidCastException' occurred in axinterop.crviewerlib.dll

    Additional information: No such interface supported"

  4. #4
    New Member
    Join Date
    Mar 2005
    Posts
    14

    Re: Crystal reports Viewer Problem

    rpt.load("C:\path")
    CrystalReportViewer.reportsource = rpt

    iT goes sometin like that. Hope it works.

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