Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

print

Status
Not open for further replies.

fuadhamidov

Programmer
Sep 22, 2003
98
TR
hi
i have developed a project in which i need to print bill from IE.

i try to fix the bill format on IE.
but it is too diffucult. a pixel of mistake can result a long strap while the user print hundreds number of bill.

i dont know how many pixel pages (A4, A5) is and IE technology is not good for printing bill.

what is the method about this. applet? there should be an easy method.

thanks for any help
 
Look at JasperReports. It is perfect for what you want to do.
 
It does. JasperReports is a server based tool that allows you to generate HTML, PDF or text based reports in a template.

Go look at it before you say 'wont work'.

Since you are in the JSP forum I assumed to wanted a JSP tool that could generate this browser level output for you.
 
Your preprinted form should be very accurate in dimension.
You write a text with printer specific control code and use Java to call dos to print this text.
Do you use dot matrix printer or laser printer?
 
i use dot matrix printer.

i display my report on IE with contentType of 'text/plain'; like notepad ( none of html tags and fonts ). i think it is same with DOS for printer.

as you say to run specific control code i need to study about this.
 
Jasper gives you pixel by pixel control with oreally great overflow capabilities.
Its perfect for pre-printed form content generation.
 
thanks siberian

i again have not studied (and not wanted) on JasperReport. because it is offered in this form i think it is good tool, but it needs long seek and study time to get experience on it.

i have found an idea about printing from IE while looking JasperReports example picture on web. i have not tried yet. but i think it is useful.

scan any bill using scanner with its original width and height (which is the my main problem) and parse it to table using image program (for examle photoshop).

maybe JasperReport does similar thing, i don't know

 
hi siberian
I've got a similar question...

We are developing a package which will be runned on different systems. We need to print in pre-printed forms, what should we do? how we can do this on different printers? should we make a different jrxml file for every printer type!?
 
Does anybody know a good guide on how to set up Jasper Reports? I downloaded all the requirements it has on the page, but not sure if I am putting them in the right Tomcat directores.
 
Steve: Yes, if your printers are widely different I would have a form per printer to accomodate the different information flow.

Wingman: All you need to do is include the libs in your standard tomcat libs directory, create your jrxml and then run it thorugh the compiler. I actually just used the bundled examples servlet to compile my reports. All you need to do is change the paths.

There is a high learning curve with Jasper but its well worth it I think.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top