|
-
Aug 23rd, 2000, 11:04 AM
#1
Thread Starter
Lively Member
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.
-
Aug 23rd, 2000, 01:16 PM
#2
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
-
Aug 24th, 2000, 03:43 AM
#3
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|