•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 456,534 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,041 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums
Views: 2451 | Replies: 7
![]() |
•
•
Join Date: Oct 2007
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
Hi, I am a pastor of a small church. I am 67 years old. I am trying to learn to program an address book for our church lay people. I am using the a book titled, “Beginning Visual Basic 6 Database Programming” by John Connell. I managed to get along with it somehow until I tried to print the address book. I used Crystal Report Pro 4.6. I can only get it to print one record in the database. Has anyone any knowledge how to force it to print all additional records?
My code to call the report is below.
There are no instructions in the book for printing reports.
My code to call the report is below.
[/inlinecode]Private Sub cmdPrint_Click() CrystalReport1.Action = 1 'force Crystal Reports Pro to run report End Sub
There are no instructions in the book for printing reports.
•
•
Join Date: Aug 2007
Location: Cavite,Philippines
Posts: 508
Reputation:
Rep Power: 3
Solved Threads: 68
sir, just add this before the crystalreport1.action=1:
CrystalReport1.SqlQuery="Select * from table";
*table is the name of the table of your database you want to print.
Good luck to your programming and to your church!!
CrystalReport1.SqlQuery="Select * from table";
*table is the name of the table of your database you want to print.
Good luck to your programming and to your church!!
"death is the cure of all diseases..."
http://ryantetek.wordpress.com
http://ryantetek.wordpress.com
•
•
Join Date: Oct 2007
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
•
•
•
•
sir, just add this before the crystalreport1.action=1:
CrystalReport1.SqlQuery="Select * from table";
*table is the name of the table of your database you want to print.
Good luck to your programming and to your church!!
Still didn't work. I don't think the additional info is being recorded in the database.
[code] Use
language Syntax (Toggle Plain Text)
Private Sub cmdPrint_Click() CrystalReport1.SQLQuery = "Select*from Contacts" CrystalReport1.Action = 1 'force Crystal Reports Pro to run report" End Sub
•
•
Join Date: Oct 2007
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
•
•
•
•
sir, just add this before the crystalreport1.action=1:
CrystalReport1.SqlQuery="Select * from table";
*table is the name of the table of your database you want to print.
Good luck to your programming and to your church!!
This doesn't work. Does ; need to be there?
•
•
Join Date: Aug 2007
Location: Cavite,Philippines
Posts: 508
Reputation:
Rep Power: 3
Solved Threads: 68
oh i'm sorry,it isn't supposed to be there,just delete it.
"death is the cure of all diseases..."
http://ryantetek.wordpress.com
http://ryantetek.wordpress.com
•
•
Join Date: Oct 2007
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
[code) Private Sub cmdPrint_Click()
CrystalReport1.SQLQuery = "Select * from Contacts"
CrystalReport1.Action = 1 'force Crystal Reports Pro to run report"
End Sub [/code]
This works before the application is compiled, packaged, distributed, and installed. However, after that, it won't refresh new records in the print option. The records do appear
to be in the database on the form, but not in the print preview box. I'm at the point where I would be willing to pay to get this information.
DrDel
CrystalReport1.SQLQuery = "Select * from Contacts"
CrystalReport1.Action = 1 'force Crystal Reports Pro to run report"
End Sub [/code]
This works before the application is compiled, packaged, distributed, and installed. However, after that, it won't refresh new records in the print option. The records do appear
to be in the database on the form, but not in the print preview box. I'm at the point where I would be willing to pay to get this information.
DrDel
![]() |
•
•
•
•
•
•
•
•
DaniWeb Visual Basic 4 / 5 / 6 Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Access as a platform (Software Developers' Lounge)
- reports in Access and Vb (Visual Basic 4 / 5 / 6)
- Serial Number in Data Reports (Visual Basic 4 / 5 / 6)
- how can i print a list of records (Pascal and Delphi)
- Exporting Reports to MS Excel (ASP.NET)
- Printing using Web Control Print button VB.NET (JavaScript / DHTML / AJAX)
- Oracle reports: Continous horizontal fields (Oracle)
- trojans wont let me connect to internet (Viruses, Spyware and other Nasties)
- Radio/TV/Print & Web Advertsing to 2 million weekly just $24.99/Month! (Ad Space for Sale)
- HijackThis log file (Viruses, Spyware and other Nasties)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: data report using vb and mysql
- Next Thread: Problem with Crystal report control


Linear Mode