Custom report.

Re: Custom report.

Postby TimStone » Tue Nov 24, 2009 2:53 pm

All of my reports are custom ... nothing comes from a generator. I use the tPrinter class. You can define fonts, rows, columns, and completely custom layouts. Some are straight lists while others might use a section header with multiple lines of defined data. I do invoices, statements, forms ... everything. I can use one, or multiple, databases, and of course I can do calculations on data within the process ( for example, express percentages not stored in the dbf ). I can also add symbols ( ie checkboxes ), text, graphics, lines / boxes, and shading. Its all quite simple.

I simply select the preview to view it on screen, or I can send it to any printer.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2909
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Custom report.

Postby James Bott » Tue Nov 24, 2009 3:57 pm

Tim,

express percentages not stored in the dbf


Note that when using a database object you can subclass and add a method to do calculations.

Code: Select all  Expand view
Method Percentage() CLASS TInvoice
  nPercent:= ...
return nPercent


Then you can using the method just like a field.

Code: Select all  Expand view
add column to oBrw data oInvoice:percentage() header "Percentage"


James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 128 guests