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

Thread: Help me !

  1. #1
    Join Date
    Jun 2002
    Location
    Kuwait
    Posts
    44

    Help me !

    Mr. Babu,

    Following is the code used to call crystal report from VB


    Option Explicit
    Dim Report As New CrystalReport01

    Private Sub Form_Load()
    Screen.MousePointer = vbHourglass
    CRViewer1.ReportSource = Report
    CRViewer1.ViewReport
    Screen.MousePointer = vbDefault
    Report.RecordSelectionFormula = "{tblCaixa.turno} in " &
    intDataInicio01
    & " to " & intDataFim01
    End Sub

    Question:

    1) what does CrystalReport01 indicate? is it crystal viewer
    2) I cannot find the method "RecordSelectionFormula " when I use Crystal Viewer. When I type Report. , a pop up menu appears with the methods. It does not contain RecordSelectionFormula.

    Regards,
    Satish

  2. #2
    Join Date
    Jul 2003
    Location
    Florida
    Posts
    651
    1. CrystalReport01 would be the dsr file that you created for the report. It's listed under Designers in your Project window (where Forms and Modules are listed). You can double-click it to bring it up and add your fields and such for the report.

    2. I don't know the answer to this one, maybe someone else can help?
    I'd rather be wakeboarding...

  3. #3
    Join Date
    Jun 2002
    Location
    Kuwait
    Posts
    44
    how can I create the dsr file for the report in VB

  4. #4
    Join Date
    Jul 2003
    Location
    Florida
    Posts
    651
    The dsr file is created by clicking 'Project', 'Add Crystal Report 8.5' (may be different depending on your version of CR) in the VB IDE. Refer to my reply in your other post. RDC wasn't introduced until either version 8 or 8.5 (can't remember which) and higher.
    I'd rather be wakeboarding...

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