Results 1 to 3 of 3

Thread: Crystal Report Preview Window From VB

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    Taipei
    Posts
    318

    Cool

    More or less, I have the following code:

    Sub Command1_Click

    CR.ReportLayout = .....
    CR.Action = 1
    Unload Me

    End Sub

    in my visual basic, whenever I run it, it has the Crystal Report preview window flash and then the program (include the preview window) terminated.

    How I can display the preview window, and until the user close the preview, and then my vb unload the form(end the program)

    Thanks


  2. #2
    Guest

    Question Hmmm....interesting problem

    For sure the "Unload Me" is causing your problem. Strange but it would appear the crystal report window is a subset of the calling vb routine...not independant.

    Why do you want to cancel out after showing the Crystal Window. Perhaps you could allow the user the option of reporting with different criteria....just a suggestion

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    Taipei
    Posts
    318
    The purpose of the program is to enter parameter, and then display the preview window. After user view the report, they can print or close it. Upon close preview, the program should also be terminated.

    One more peculiar, it used to work, but I don't know why. I don't know which option or attributes I have set wrongly, so that this happen.


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