borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Exporting from Datareport)Next Topic (Data Report???) New Topic New Poll Post Reply
AndreaVB Forum : Printing : VB data Report
Poster Message
shakuntala50
Level: Protégé

Registered: 30-01-2006
Posts: 4

icon VB data Report

Hi

I have the data stored in the table sorted on a field. But while printing on the data report it skips this sort order. Say for example if there is some 1000 rows that has to be printed then it prints perfectly for few rows say from 1-35 then it starts printing say from 106 to 350, then it again prints from 36-105 and then it prints 351-1000. and every time i generate this report these figures keep changing , some how it breaks in between . Please suggest me a solution for this immediatly.

Shakuntala  

30-01-2006 at 10:40 AM
View Profile Send Email to User Show All Posts | Quote Reply
GeoffS
Level: VB Lord


Registered: 29-09-2004
Posts: 536
icon Re: VB data Report

Hi,
How you view data in the table is just that - a "View". It is applied to the table when you want to view it, but the table still stores the data in its original order.
It is possible with most reporting tools to set an OrderBy Property, but without knowing which reporting tool you are using I think the best solution would be to set the data source for your report to a Query, then you can include an OrderBy statement to get it in the order you desire:
SELECT TableName.* FROM TableName ORDER BY Fieldname


____________________________
multi-tasking - the ability to hang more than one app. at the same time.

30-01-2006 at 04:16 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Printing : VB data Report
Previous Topic (Exporting from Datareport)Next Topic (Data Report???) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder