|
-
Mar 16th, 2009, 10:41 AM
#1
Thread Starter
Member
Last edited by kirara22; Mar 17th, 2009 at 02:32 AM.
-
Mar 17th, 2009, 06:01 AM
#2
Re: how to print data from datagrid using datareport?
-
Mar 17th, 2009, 06:10 AM
#3
Thread Starter
Member
-
Mar 17th, 2009, 09:23 AM
#4
Re: how to print data from datagrid using datareport?
Add the appropriate controls to the Data Report at design time. Then simply use the code below to view the report.
Code:
Private Sub cmdPrint_Click()
Set DataReport1.DataSource = DataGrid1.DataSource
DataReport1.Show
End Sub
-
Mar 17th, 2009, 09:56 AM
#5
Thread Starter
Member
Re: how to print data from datagrid using datareport?
Failed getting Rowset(s) from current data source
-
Mar 17th, 2009, 11:23 AM
#6
Re: how to print data from datagrid using datareport?
Is the DataGrid attached to an ADO Data Control? If yes try this code
Code:
Private Sub cmdPrint_Click()
Set DataReport1.DataSource = ADODC1.RecordSet
DataReport1.Show
End Sub
-
Mar 17th, 2009, 12:17 PM
#7
Thread Starter
Member
Re: how to print data from datagrid using datareport?
using that code it returns this error:
runtime error 3001 :
The application is using arguments that are of wrong type, are out of acceptable range, or are in conflict with one another 
printing data on datagrid gives me headache
-
Mar 17th, 2009, 12:39 PM
#8
Re: how to print data from datagrid using datareport?
What can I say! Everything I posted works fine for me.
I could keep on guesing and posting solutions but without more help from you it would be futile.
-
Mar 17th, 2009, 07:18 PM
#9
New Member
help
i want to show row number for each record that had fetched in report via data report
but i don't know how i can do this
each record in final report begin from number 1 ....
for example
1 jack robert 110 usa
2 nick stone 230 usa
.
.
.
-
Mar 17th, 2009, 08:27 PM
#10
Thread Starter
Member
Re: how to print data from datagrid using datareport?
Code:
Private Sub cmdPrint_Click()
Do While DataGrid1.Columns(0) <> ""
DataReport6.Sections("Section2").Controls("label1").Caption = DataGrid1.Columns(1)
DataGrid1.Row = DataGrid1.Row + 1
Loop
End Sub
i try this code
but it gives me an error message:
run time error '6148'
invalid row number
in this line of code:
Code:
DataGrid1.Row = DataGrid1.Row + 1
plz help tnx.
-
Mar 30th, 2009, 02:19 AM
#11
Thread Starter
Member
Re: how to print data from datagrid using datareport?
i've solved it already..hehehe
-
Jun 21st, 2010, 09:25 AM
#12
New Member
Re: [RESOLVED] how to print data from datagrid using datareport?
can you show the code you used? thanks!
-
Mar 9th, 2014, 02:50 PM
#13
New Member
Re: how to print data from datagrid using datareport?
 Originally Posted by kirara22
i've solved it already..hehehe 
mate! what code did you use! i have the same porblem as you! really need it (
thnx in advance!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|