Results 1 to 3 of 3

Thread: Sorting in Crystal Reports

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Location
    Saarbrücken, Germany
    Posts
    10

    Lightbulb

    To sort at runtime you must code the following:

    CrystalReport1.Sortfields(0) = "+{Tablename.Fieldname1}"
    CrystalReport1.Sortfields(1) = "+{Tablename.Fieldname2}"

    and so on.

    This order is ASC for the fields. If you want to sort by DESC change '+' to '-'.

    Good luck

  2. #2
    Lively Member
    Join Date
    Jan 2000
    Location
    treehouse
    Posts
    106

    Thumbs up

    Thanks Markus H!!

    It works. I was playing with this last night for about 2 hrs trying to figure out how to sort at runtime.

    Do you know of any sites that has tips on using crystal with VB ?



  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Location
    Saarbrücken, Germany
    Posts
    10
    There are some VB examples in your Crystal Reports installation directory. You can read the helpfiles too; developr.hlp shows the use of the Crystal OCX.
    Or go to Seagate directly.
    http://community.seagatesoftware.com/homepage
    Then follow the link 'Download Files and Updates'. You can find many examples.

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