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:
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
posted
0
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
posted
0
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 ?