Results 1 to 3 of 3

Thread: Crystal Reports Question

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2000
    Location
    Edgerton, WI
    Posts
    381
    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

  2. #2
    Addicted Member
    Join Date
    Aug 2000
    Location
    Fremont Ohio 43420
    Posts
    253
    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

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2000
    Location
    Edgerton, WI
    Posts
    381
    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
  •  



Click Here to Expand Forum to Full Width