Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Printing a Database Query

 
Jorge Oliveira
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic