wood burning stoves 2.0*
The moose likes JDBC and the fly likes Printing a Database Query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Printing a Database Query" Watch "Printing a Database Query" New topic
Author

Printing a Database Query

Jorge Oliveira
Greenhorn

Joined: Jan 28, 2003
Posts: 3
hello, i'm a student and i'm have problems with a work i must do to school...I'm doing a database query to a SQL database (Northwind) and making a query of select *from (table)....and i'm trying to do a print and print preview of the result...but have many problems...
The code the query is:

can somebody can help me ??
artur_jorge@hotmail.com
Jorge Oliveira
Greenhorn

Joined: Jan 28, 2003
Posts: 3
I forgot myself to say that I have the code that allows print and print me preview. the problem that I have is that I do not know how to insert the result of query in the code that I have....

and
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
Originally posted by Jorge Oliveira:
[...] i'm trying to do a print and print preview of the result...but have many problems...
That's a fair chunk of code, Jorge. What problems do you have exactly? The choice of forum suggests that it's the database side you have problems with, rather than the previewing/printing, but you don't say what.
- Peter
Jorge Oliveira
Greenhorn

Joined: Jan 28, 2003
Posts: 3
the problem is that i need an aplications or apllet that make a query(database select) select *from <table> and show an Jtable with the result of the query...(see code of REPORTING)...
but i needed that jtable (Reporting) can printed and print preview...
something like seemed in:
http://developer.java.sun.com/developer/onlineTraining/Programming/JDCBook/advprint.html#sales
can you help me ?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Printing a Database Query
 
Similar Threads
mysql problems in netbeans
searching database
2 errors i cannot find!
Connection Troubles
JTable type yes/no