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

Thread: crystal report

  1. #1
    Join Date
    Mar 2001
    Posts
    31

    crystal report

    Hi

    i am facing problems printing the report in visual basic.
    i am using the crystalreport ocx to print report to the window.

    just as it is printing to window the window closes. i am not able to get any errors also.

    i tried setting the properties through codes yet the result is same

    CrystalReport2.ReportFileName = App.Path & "\Report.rpt"

    CrystalReport2.Destination = crptToWindow

    CrystalReport2.Action = 1

    can you tell me is there any settings .i have used the similar way for other reports but is fine.

    thanks
    roopa

  2. #2
    Join Date
    May 2002
    Location
    Colombo,Sri Lanka
    Posts
    1,110
    Load the crystal report and refresh it again.
    I also had this probelm after changing the database format.

    Normally I use CR like this.
    CrystalReport1.ReportFileName = App.Path & "\VerReImpsli.rpt"
    CrystalReport1.DataFiles(0) = mPath & "\database.mdb"
    CrystalReport1.ReportTitle = "Report Title"
    CrystalReport1.Destination = crptToWindow
    CrystalReport1.Formulas(0) = "User =' User Id " & gV_LogOnUserId & "'"
    CrystalReport1.WindowState = crptMaximized
    CrystalReport1.WindowLeft = 0
    CrystalReport1.WindowTop = 0
    CrystalReport1.Action = 1

  3. #3
    Join Date
    Mar 2001
    Posts
    31

    report

    hi
    though i see the window again closes sameas before

    Still no difference

    thanks
    roopa

  4. #4
    Join Date
    May 2002
    Location
    Colombo,Sri Lanka
    Posts
    1,110
    Did u load the CR in the crystal report viewer and refresh it.
    what is the database u r using.
    MS ACCESS or SQL Server

  5. #5
    Join Date
    Mar 2001
    Posts
    31
    i am not using the CRviewer instead using the Crystal report control. even CRViewer i was having problems since even though i refresh the data is not refreshing. At times getting errors like
    "Control is busy downloading data". so i changed to Crystal report control

    i am using access 97.
    thanks

  6. #6
    Join Date
    May 2002
    Location
    Colombo,Sri Lanka
    Posts
    1,110
    So how did u design your report.
    Are u sure the database format u used for design crystal report as same as the database u have now.

    Can u attached the crystal report and the database here I can check that for u

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