FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Custom report.
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Custom report.
Posted: Tue Nov 24, 2009 02: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
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Custom report.
Posted: Tue Nov 24, 2009 03: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 (fw): Select all Collapse
Method Percentage() CLASS TInvoice
  nPercent:= ...
return nPercent


Then you can using the method just like a field.

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


James
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion