CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: Crystal Reports

  1. #1
    Join Date
    Oct 2000
    Posts
    2

    Crystal Reports

    I have deployed a report generated in Crystal Reports v8. It is configured to
    display as a window (preview). But, when it is requested by the user, the preview window flashes up and then disappears. The report path is set to the application path, and that is where the report resides....any suggestions?


  2. #2
    Join Date
    Oct 2000
    Location
    NM
    Posts
    122

    Re: Crystal Reports

    Hmmm how are you opening the report? are you using the active X view control on the VB form? I am currently using Crystal Reports 8.0 in C++ at work now and may be able to help you but i need more information.

    Regards,
    Shane


  3. #3
    Join Date
    Oct 2000
    Posts
    2

    Re: Crystal Reports

    The following is the code that I have applied in VB. There is an ocx on the form called CrystalReport1.
    The machine that it is deployed on is sitting on the same domain as mine...mmmm

    With CrystalReport1
    .Connect = "DSN=;UID=;PWD=;"
    .ReportFileName = strReportPath
    .WindowState = crptNormal
    .Destination = crptToWindow
    .WindowTitle = "BDM Inbound Summary"
    .PrintReport
    End With





  4. #4
    Join Date
    Aug 2000
    Posts
    27

    Re: Crystal Reports

    Try .Action = 1 instead of .PrintReport


  5. #5
    Join Date
    Oct 2000
    Posts
    1

    Re: Crystal Reports

    Normaly that happens (report flash) to me when i change the Database (any minor change causes that efect) after designing the report (i work over Access - DAO). I go to the Report Designer and do Verify Database on the Database Menu. After i do the previewing and save. If it works (preview) it has to work in the code (I use API)


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

Featured