Results 1 to 2 of 2

Thread: Dynamic Titles, Texts, Fields -- Crystal 8, VB6

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2000
    Location
    Canada
    Posts
    70
    I need to create a report using Crystal 8 with VB6.
    Based on values set by a user an SQL stmt is created.
    The DataSource is set dynamically.

    Different values may need to be shown in different
    columns but the number of columns will always be the
    same.
    For instance,
    the user may choose to order by Date therefore the
    report would look like:
    DateHired Name Phone City Age

    The next time they may want it by name
    Name DateHired Phone City Age

    Or by City
    City Name Date Hired Phone Age
    etc.

    With an average Age and a total # of records printed after
    each new value in Column 1 (ie. new date, new last name,
    new City) and a Grand total at the bottom of the
    report.

    I need to be able to change the report title, the field
    title and, if possible, the field type (ie. string, Long,
    double)

    How do I do this in Crystal 8?

    Also, the Crystal 8 examples all show an ICRDesigner.
    How do I add an ICRDesigner? (without copying and altering
    the examples)

    Thanks!

  2. #2
    New Member
    Join Date
    Mar 2000
    Posts
    8

    May be that's a trick, but works!

    The only way I found to display variables in title section in to repeat those variable in the Sql results:
    "Select name, addrs, "John", "Give me the name and adrs of" from costumers where name like '%John%'

    In you Sql result you have the 3rd and 4th column always set at 'John' and 'give ...'

    Now you can use this variables in title section.

    That an ignoble trick indeed, and if you find something better, tell us

    Bye



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