Wrox Programmer Forums
|
Pro Visual Basic 2005 For advanced Visual Basic coders working in version 2005. Beginning-level questions will be redirected to other forums, including Beginning VB 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro Visual Basic 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 11th, 2008, 04:30 AM
Registered User
 
Join Date: Sep 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Reports

Hi, I have a problem on how I would print a report in my VB 2005 project. I have tried reading some notes in the Microsoft Developer Network for Visual Studio 2005 but I don't seem to get help.
My project is using Microsoft SQL 2000 for Storing and retrieving data, and I would wish to enable the person using it to be able to print reports on the daily occurrings according to the data contained in the database.

The database table am using has the following structure...

Table1:
AdmNo StudentNames Marks
 60 Julius Brown 55
 61 Chis Hart 85
 54 Brian Adams 65

The problem is that I would like to print the report for only one student by selecting that option and also print for all students if I choose to. I would also like to print only the names of all the students by choosing a certain option.

Thanks for reading this.

asdfre
 
Old September 11th, 2008, 03:10 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Well, Crystal Reports is the robust reporting mechanism. But, as with anything robust, it is complicated to use.

You can access the data through a dataset or a datareader, and print it to a simple text file. In doing this, your [u]code</u> would establish which data are retrieved.

You can make a better looking report by doing almost the same thing, but by opening an instance of Word, and literally "typing" the contents of the document with the code you write.

With both a text file, and a more versatile word document, you can then open Notepad or Word, and load the document you just created into either of those apps.

A lot of work...





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to get reports in crystal reports using ASP3.0 candy133 Classic ASP Basics 2 January 26th, 2006 08:26 AM
Comparitive Reports in Crystal Reports tarunm Crystal Reports 1 January 21st, 2006 01:08 AM
comparision among crystal reports and Data reports avats Crystal Reports 0 April 13th, 2005 01:01 PM
How to create/design reports with crystal reports BassmaniaQ Crystal Reports 0 December 14th, 2004 04:58 AM
Reports Manager does not list reports hinesweb BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 1 July 25th, 2004 04:39 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.