|
-
Nov 13th, 2000, 11:30 AM
#1
Thread Starter
Hyperactive Member
I am using Crystal Reports in one of my projects that uses a midi interface. I am using the Crystal ocx. I have a number of reports that the user can selectin Crystals preview mode before printing and all works well except Crystal opens the preview window outside my application. How can I get the preview window to open as a midi child within my application?
Thanks,
Rev. Michael L. Burns
-
Nov 13th, 2000, 12:13 PM
#2
Addicted Member
In my program I have a MDI form and child forms. I just went into Project, selected Components, then clicked on the Crystal Report Control, so that I could select it from the toolbox.
You will then put the crystal report control on the MDI Form. You can right click on the control and go to properties and set up all the settings you want for that report.
Then in your code for the MDI Form, I put in this to import the report into my vb program.
Private Sub mnuReportsfrmPreviewShift_Click()
With CrystalReport9
.Destination = crptToWindow
.DataFiles(0) = "H:\Software Development Projects\Maintenance database\Maintenance Data.mdb"
.ReportFileName = "H:\Software Development Projects\Maintenance database\Summary By Shift.rpt"
.Action = 1
End With
End Sub
If you have any questions about the above info, just email me back at [email protected].
Good Luck
-
Nov 14th, 2000, 12:21 AM
#3
Thread Starter
Hyperactive Member
Thanks Jeffro. I'll give that a try.
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
|