You are not logged in.

DragonWar13

Beginner

  • "DragonWar13" started this thread

Posts: 5

Date of registration: Jan 13th 2011

  • Send private message

1

Friday, January 21st 2011, 6:47pm

Creating reports in jabaco?

I need to create a report that accesses a database and the Customers table, which appears on the screen a preview of the report before printing, how do this with jabaco?

A1880

Intermediate

  • "A1880" is male

Posts: 500

Date of registration: Jan 1st 2009

Location: Hanover, Germany

Occupation: Software Engineer

Hobbies: Hilbert Curves

  • Send private message

2

Friday, January 21st 2011, 8:52pm

To connect to a database and execute SQL statements, you can use the JDBC facilities.
Search the forum for samples.

Once you have the data, you could display it using a RichTextBox.
RichTextBox is one of Jabaco's control types which can be placed in a form.
RichTextBox.Parent is an object derived from JComponent.
There is a Print() method available, but it certainly takes some reading and experimentingto get this to work.
Google is your friend!

My preferred way is to create a HTML text file as report and display it using a web browser.
The browser is started using the "Shell()" method.
From there the user can then print.

For your inspiration, you can find attached a class to create HTML (including VML for graphics and using CSS styles)

A last alternative would be to use a framework like iText and create a PDF file as report.
Such a file can then be viewed or printed.

Long answer short: Creating printable reports takes some reading and experience.

Post your findings here!

Greetings

A1880

mdlHtml.jsrc.txt

DragonWar13

Beginner

  • "DragonWar13" started this thread

Posts: 5

Date of registration: Jan 13th 2011

  • Send private message

3

Saturday, January 22nd 2011, 3:47pm

They are trying to use along jabaco JasperReport and ireport, where I connect to the bank with them, generate the report and try to open the jabaco, sending the link below shows where the routine that opens the report in jabaco. If you can help, thanks

JasperReport and Jabaco?

thanks

Rate this thread
WoltLab Burning Board