Results 1 to 2 of 2

Thread: Crystal Report drives me mad

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2003
    Location
    India
    Posts
    318

    Crystal Report drives me mad

    Hi,

    My company purchased Crystal Report Software two days back only b'coz I requested for it. And now that I started working on it, I am not getting the result what I want. I am really worried as to how am I going to answere to my boss's questions. I even searched the internet SO MUCH, but I couldn't get any help.

    Let me tell you what I have done.

    I have used unbound fields in the report bcoz I prefer dynamic reports as the system that I am developing is a multiuser system.
    I want to display records in Crystal report according to certain criteria that the user picks from a form.

    This is my code:

    Dim Report As New CrystalReport1
    Dim Rs As New ADODB.Recordset

    Private Sub Form_Load()

    Screen.MousePointer = vbHourglass

    Rs.Open "select StaffMaster.[EmpName], StaffHrs.[ATH] from staffmaster,staffhrs where staffmaster.empcode=" & _
    "staffhrs.empcode and staffhrs.discipline='architecture' order by empname", Cn, adOpenStatic, adLockReadOnly, adCmdText

    Report.DiscardSavedData

    Report.Database.SetDataSource Rs

    Report.EmpName.SetUnboundFieldSource "{Rs.EmpName}"
    Report.ATH.SetUnboundFieldSource "{Rs.ATH}"

    CRViewer1.ReportSource = Report
    CRViewer1.ViewReport
    Screen.MousePointer = vbDefault

    End Sub

    The error that I get is as follows:

    'The field name is not known.'

    Any help would be appreciated.

    Thanks

  2. #2
    Hyperactive Member ARPRINCE's Avatar
    Join Date
    Mar 2003
    Location
    Pinoy in NJ
    Posts
    381
    Since you purchased the CR, I would assume you have registered it. The registration entitles you to 2 technical support via phone or email. The response, based on my experience, is really good. That does not mean that they resolved all my problems but they may (or may not) lead you to the correct resolution of it.

    Overall, they have helped me a lot. Our purchase of the upgrade version of CR9 entitled me to 2 technical support calls. The CR that comes with VS.NET gets 2 email support.

    Hope this helps.

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