Results 1 to 3 of 3

Thread: More Crystal joys

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Location
    A caravan park in the Midlands (UK)
    Posts
    101

    Thumbs down

    Prompted by an earlier thread I've been chucking Crystal around a bit but have a wee problemette.

    I've 5 old reports used by two different apps. In App a I've added the Crystal RDC and a blank report. At runtime user can select his/her report and I can pick up the report by using ReportFileName. The booger is I can't use the crystal viewer to show the report I have to view it by setting Action = 2. If I set the viewer's report source to the, now, not blank one I get an automation error.

    Any help...I think I'm gonna grow to love Crystal you know! I think it may finish my love affair TrueDB grid (now that's a gorgeous component to work with!)
    Anakim

    It's a small world but I wouldn't like to paint it.

  2. #2
    Guest
    using crystal 8, i put the crviewer control on
    a blank form and use this code to view the report:


    Option Explicit
    Dim crxApplication As New Application
    Public Report As Report

    Private Sub Form_Load()
    Set Report = crxApplication.OpenReport(ReportPath & "MyReport.rpt")

    With CRViewer1
    .ReportSource = Report
    .ViewReport
    .Zoom 100
    End With
    End Sub


  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Location
    A caravan park in the Midlands (UK)
    Posts
    101

    Wink

    Cheers, saved a lot of ballache!
    Anakim

    It's a small world but I wouldn't like to paint it.

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