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 (2 Commands under 1 Connection)Next Topic (how to print directly to printer) New Topic New Poll Post Reply
AndreaVB Forum : Reporting tools : Printing at the last row in VB Datareport?
Poster Message
Gary
Level: Sage

Registered: 27-11-2005
Posts: 50

icon Printing at the last row in VB Datareport?

Hi guys,

I have a table which use to store exam result data. The format is as below:

StudID AssessName AssessMark AssessGrade AssessType
1000    Ind. Assess   80                     A          Coursework
1000    CPM             76                     B          Coursework
1000    Assess Final  78                     B          Final Exam

I wish to print the Final Exam's AssessMark at the last row of the VB Datareport. How can I specify that it will be printed at the last row of the report section? For e.g.

------------------------------------------------------
StudID: 1000

AssessName           AssessMark AssessGrade
Ind. Assess             80              A
CPM                       76              B

Final Exam    78              B
------------------------------------------------------

Your help is highly appreciated.

Thank you


Gary

24-01-2007 at 05:00 AM
View Profile Send Email to User Show All Posts | Quote Reply
VYX
Level: Professor


Registered: 16-12-2005
Posts: 70
icon Re: Printing at the last row in VB Datareport?

Hi..

First you need to filter the data stored in your database. It seems like this:
rs=select * from tbl where fieldname='" & str &"'"

set datareport.datasource=rs
datareport.show



hopefully it helps

24-01-2007 at 08:48 AM
View Profile Send Email to User Show All Posts | Quote Reply
VYX
Level: Professor


Registered: 16-12-2005
Posts: 70
icon Re: Printing at the last row in VB Datareport?

Hi..

First you need to filter the data stored in your database. It seems like this:
rs=select * from tbl where fieldname='" & str &"'"

set datareport.datasource=rs
datareport.show



hopefully it helps
vyx

24-01-2007 at 08:48 AM
View Profile Send Email to User Show All Posts | Quote Reply
Gary
Level: Sage

Registered: 27-11-2005
Posts: 50
icon Re: Printing at the last row in VB Datareport?

Hi Sage,

Thanks for the reply,

Yes, I've filtered up but I'm using dataenvironment to do my datareport. Is is possible to use two commands under one connection?

I've tried but it seems like it cnt work. An error msg pop up and show that "DataField 'cmdFinalRes_Grouping.Assessment Mark' not found".

Thank you

Gary

15-03-2007 at 04:04 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Reporting tools : Printing at the last row in VB Datareport?
Previous Topic (2 Commands under 1 Connection)Next Topic (how to print directly to printer) 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