-
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
-
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
-
Thanks Jeffro. I'll give that a try.