Tricky Recordset Question: HELP!

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Re: Tricky Recordset Question: HELP!

    I'm not sure where your problem is. You describe some things you've tried,
    but you don't explain what goes wrong when you try them ...

    I think we are going to need to see a little bit of the code used to build
    the graphs.

    Bob Barrows

    qnal wrote:
    > I have a bit of a situation.
    >
    > I have a recordset that can return anywhere from 1 to 250 rows.
    >
    > I take this recordset and pass it to a CreateChart Function on an ASP
    > Page like so:
    >
    > CreateChart (objRs)
    >
    > The CreateChart function takes the recordset and creates an Excel Bar
    > Chart using Office Web Components.
    > This works fine for low numbers. The chart looks clean.
    >
    > However, when I get 250 rows, the Chart looks terrible because of
    > jumbling and extremely thin lines.
    >
    > What I am attempting to do is: if I detect a record count of greater
    > than say 30, I want to create multiple graphs in batches of 30 until
    > the end of the recordset is reached.
    >
    > I have tried a bunch of ways, but have come up empty, tried paging
    > techniques, cloning the recordset, clearing it, and adding values
    > from the original etc etc, with no success.
    >
    > I hope someone can help me.
    >
    > Again to review:
    > 1) Detect Recordcount ( I checked this and it is working correctly, I
    > don't get -1 , I get the correct number of records)
    > 2) If the recordcount is greater than 30, take the first thirty, pass
    > these records to CreateChart(recordset),
    > 3) Come back where we left off, i.e. 31st record...process 30 more,
    > CreateChart (recordset), like this until End of Recordset is reached.
    >
    > HELP me Obi Wan Kenobi, you're my only hope...


    Bob Barrows Guest

  2. Similar Questions and Discussions

    1. Question re Recordset Navigation
      Does anyone know whether there is a Recordset Navigation extention that allows you to display all of the pages or records at once with a "view all...
    2. Recordset question ASP
      Hi I have a recordset which lists all the sites Users with the access levels of (Admin, Employee, Guest) What I want is to filter recordset to...
    3. Lengthy recordset question
      Dwayne: Be aware that my opinions may well be addlepated, as they usually are. At any rate, you're welcome! -- Murray --- ICQ 71997575 Team...
    4. Tricky Question: Page_Load
      I have a usercontrol that sets a public/shared variable called "database_name". (User selects a dropdownlist of available databases.) A webform...
    5. Tricky Dynamic SQL question
      Im new to this project and its in rapid development so there is little or no documentation so please bare with me. We have supertype tables that...
  3. #2

    Default Re: Tricky Recordset Question: HELP!

    The function that generates the graph doesn't do anything special, it just
    takes a recordset and creates a Graph.

    The problem is the recordset. I would post the code, but its at work and I
    have no way to access it currently.

    The problem is extracting 30 records, passing them as a recordset to the
    Chart Function, coming back where I left off, getting the next 30 and
    repeating the process until EOF....

    "Bob Barrows" <reb_01501@yahoo.com> wrote in message
    news:%23ILFUw$RDHA.1324@TK2MSFTNGP11.phx.gbl...
    > I'm not sure where your problem is. You describe some things you've tried,
    > but you don't explain what goes wrong when you try them ...
    >
    > I think we are going to need to see a little bit of the code used to build
    > the graphs.
    >
    > Bob Barrows
    >
    > qnal wrote:
    > > I have a bit of a situation.
    > >
    > > I have a recordset that can return anywhere from 1 to 250 rows.
    > >
    > > I take this recordset and pass it to a CreateChart Function on an ASP
    > > Page like so:
    > >
    > > CreateChart (objRs)
    > >
    > > The CreateChart function takes the recordset and creates an Excel Bar
    > > Chart using Office Web Components.
    > > This works fine for low numbers. The chart looks clean.
    > >
    > > However, when I get 250 rows, the Chart looks terrible because of
    > > jumbling and extremely thin lines.
    > >
    > > What I am attempting to do is: if I detect a record count of greater
    > > than say 30, I want to create multiple graphs in batches of 30 until
    > > the end of the recordset is reached.
    > >
    > > I have tried a bunch of ways, but have come up empty, tried paging
    > > techniques, cloning the recordset, clearing it, and adding values
    > > from the original etc etc, with no success.
    > >
    > > I hope someone can help me.
    > >
    > > Again to review:
    > > 1) Detect Recordcount ( I checked this and it is working correctly, I
    > > don't get -1 , I get the correct number of records)
    > > 2) If the recordcount is greater than 30, take the first thirty, pass
    > > these records to CreateChart(recordset),
    > > 3) Come back where we left off, i.e. 31st record...process 30 more,
    > > CreateChart (recordset), like this until End of Recordset is reached.
    > >
    > > HELP me Obi Wan Kenobi, you're my only hope...
    >
    >
    >

    qnal Guest

  4. #3

    Default Re: Tricky Recordset Question: HELP!

    qnal wrote:
    > The function that generates the graph doesn't do anything special, it
    > just takes a recordset and creates a Graph.
    >
    > The problem is the recordset. I would post the code, but its at work
    > and I have no way to access it currently.
    >
    > The problem is extracting 30 records, passing them as a recordset to
    > the Chart Function, coming back where I left off, getting the next 30
    > and repeating the process until EOF....
    >
    So what goes wrong with the thing you've tried ... ? This sounds like a real
    good occasion to use recordset paging. You say you've tried that. What
    happened when you did?

    Bob


    Bob Barrows Guest

  5. #4

    Default Re: Tricky Recordset Question: HELP!

    "GetRows" can retrieve a set number of rows for each call - pass the
    resulting array(s) to your graphing function (instead of the recordset), or
    modify your graphing function to accept an additional parameter for the
    number of records to add to each plot.

    tim


    "qnal" <qnal@dontspam.qnal.net> wrote in message
    news:OXtF1b$RDHA.212@TK2MSFTNGP10.phx.gbl...
    > I have a bit of a situation.
    >
    > I have a recordset that can return anywhere from 1 to 250 rows.
    >
    > I take this recordset and pass it to a CreateChart Function on an ASP Page
    > like so:
    >
    > CreateChart (objRs)
    >
    > The CreateChart function takes the recordset and creates an Excel Bar
    Chart
    > using Office Web Components.
    > This works fine for low numbers. The chart looks clean.
    >
    > However, when I get 250 rows, the Chart looks terrible because of jumbling
    > and extremely thin lines.
    >
    > What I am attempting to do is: if I detect a record count of greater than
    > say 30, I want to create multiple graphs in batches of 30 until the end of
    > the recordset is reached.
    >
    > I have tried a bunch of ways, but have come up empty, tried paging
    > techniques, cloning the recordset, clearing it, and adding values from the
    > original etc etc, with no success.
    >
    > I hope someone can help me.
    >
    > Again to review:
    > 1) Detect Recordcount ( I checked this and it is working correctly, I
    don't
    > get -1 , I get the correct number of records)
    > 2) If the recordcount is greater than 30, take the first thirty, pass
    these
    > records to CreateChart(recordset),
    > 3) Come back where we left off, i.e. 31st record...process 30 more,
    > CreateChart (recordset), like this until End of Recordset is reached.
    >
    > HELP me Obi Wan Kenobi, you're my only hope...
    >
    >

    Tim Williams Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139