Ask a Question related to ASP Database, Design and Development.
-
Bob Barrows #1
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
-
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... -
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... -
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... -
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... -
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... -
qnal #2
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
-
Bob Barrows #3
Re: Tricky Recordset Question: HELP!
qnal wrote:
So what goes wrong with the thing you've tried ... ? This sounds like a real> 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....
>
good occasion to use recordset paging. You say you've tried that. What
happened when you did?
Bob
Bob Barrows Guest
-
Tim Williams #4
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...Chart> 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 Bardon't> 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, Ithese> get -1 , I get the correct number of records)
> 2) If the recordcount is greater than 30, take the first thirty, pass> 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



Reply With Quote

