473,385 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

vb.net printing w/o Crystal Reports

I have a simple database (one table) created with Access. I have a
simple query and report in Access and it works great. I have recreated
the program in Visual Studio (vb) but can not figure out how to print
the columns of info to a printer. In all of the posts I have read with
similar questions, everyone answers "why dont you use Crystal?" I dont
want to. I want to give my little program away and dont want to deal
with CR. Here is the basics, table with five columns
(fname,lname,email,state,region). Used at tradeshows to keep track of
booth visitors and at end of event, print list of people by state or
region and give to booth workers to email thank you notes. I know how
to query and fill datagrid by state or region. I just want to send info
to printer and hand out to booth workers. Someone please show me how to
print out 200+ people in my table. Seems simple but can not find any
info (ANYWHERE) on this. Every post talks about printdocument and .txt
file. This is a database not a .txt file. Someone has this simple
answer. (actually it is more than one table but want someone to give a
simple example and I can do the other stuff)

Steve
st***********@hotmail.com

Nov 6 '06 #1
2 4207
Can't you just create a report in Access, run it from VB
using automation, and display the report for
printing/printpreviewing?

Or read the data into a recordset and export it into a tab-delimited
file and open it and print it?

Robin S.

<st***********@hotmail.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
>I have a simple database (one table) created with Access. I have a
simple query and report in Access and it works great. I have recreated
the program in Visual Studio (vb) but can not figure out how to print
the columns of info to a printer. In all of the posts I have read with
similar questions, everyone answers "why dont you use Crystal?" I dont
want to. I want to give my little program away and dont want to deal
with CR. Here is the basics, table with five columns
(fname,lname,email,state,region). Used at tradeshows to keep track of
booth visitors and at end of event, print list of people by state or
region and give to booth workers to email thank you notes. I know how
to query and fill datagrid by state or region. I just want to send info
to printer and hand out to booth workers. Someone please show me how to
print out 200+ people in my table. Seems simple but can not find any
info (ANYWHERE) on this. Every post talks about printdocument and .txt
file. This is a database not a .txt file. Someone has this simple
answer. (actually it is more than one table but want someone to give a
simple example and I can do the other stuff)

Steve
st***********@hotmail.com

Nov 7 '06 #2
Well, if you're good with HTML, you could dump the data into a web page
and send the page to the printer. Quick googling reveals a nice
codeproject doodad that will take an HTML file and send it to the
printer:

http://www.codeproject.com/csharp/printhml.asp

Alternately, you could poke around for opensource reporting packages.
I'm pretty sure there isn't any functional reporting systems built into
DotNet otherwise.

st***********@hotmail.com wrote:
I have a simple database (one table) created with Access. I have a
simple query and report in Access and it works great. I have recreated
the program in Visual Studio (vb) but can not figure out how to print
the columns of info to a printer. In all of the posts I have read with
similar questions, everyone answers "why dont you use Crystal?" I dont
want to. I want to give my little program away and dont want to deal
with CR. Here is the basics, table with five columns
(fname,lname,email,state,region). Used at tradeshows to keep track of
booth visitors and at end of event, print list of people by state or
region and give to booth workers to email thank you notes. I know how
to query and fill datagrid by state or region. I just want to send info
to printer and hand out to booth workers. Someone please show me how to
print out 200+ people in my table. Seems simple but can not find any
info (ANYWHERE) on this. Every post talks about printdocument and .txt
file. This is a database not a .txt file. Someone has this simple
answer. (actually it is more than one table but want someone to give a
simple example and I can do the other stuff)

Steve
st***********@hotmail.com
Nov 7 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Simonne De Ryck | last post by:
Hi, I'm looking for a program fo printing reports from VB. Now someone has told me about crystal reports and when I went looking on there site I noticed that there are 4 possibilities: -...
13
by: kristoff plasun | last post by:
I have a problem with a C++ DCOM application that prints Crystal Reports with data from Oracle. The SQL query is relatively complex but when the report is printed from the Crystal Reports...
2
by: OzSoft | last post by:
I am receiving the following exception randomly when printing crystal reports via a print server application. The server will successfully print a random number of an identical reports...
7
by: Robert Schuldenfrei | last post by:
Dear NG, I am just learning object orientated programing in general and C# in particular. My first real project is an inventory application using a SQL database. I have an item master editor...
2
by: Paul Daly (MCP) | last post by:
Hello, I have an application that uses the version of CR.NET that came with VS.NET 2003. The CrystalReportViewer control prints the report fine when initiated by the user on the form, but I...
2
by: Rod | last post by:
We've got an old VB6 application which has 9 Crystal Reports it can print. These 9 reports are considered by our users to be in essence one "report", in the sense that they are all related and they...
2
by: chyogesh76 | last post by:
i created a report in crystal report i am using it in vb6.0. while printing through vb it was printing in a4 size but i want make it custom size(small size 5'' X10"). how can i do. any one please...
0
by: John Smith | last post by:
Hello, I have 7 different crystal reports that need to be collated. Since I want to end up with a page of each (which all together make a single report), I created a blank main report and then...
0
by: a.mustaq | last post by:
Hi All, I am working on intranet. I have develoopeda web application, which consists of Crystal Reports. When I give printing from my system. When I give printing on another system, it is...
1
by: Peter Afonin | last post by:
Hello, I'm using Crystal Reports for Visual Studio 2005. I'm trying to print my reports to the postscript file: PrinterSettings ps = new PrinterSettings(); ps.PrinterName = "HP Deskjet 3840...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.