FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour DOES ANYONE KNOWS THE ANSWER ?
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
DOES ANYONE KNOWS THE ANSWER ?
Posted: Fri Oct 28, 2011 12:35 AM

Antonio, Rao, Uwe & guys:

Three topics I need help.

A. How can I do this with DEFINE REPORT...

I need to code the following report but I don't know how:
I'm using 3 files:
a. Inventory
b. Sales
c. Purchases
The report should display the following:

Item 1: Inventory description + other inventory data
Group (with totals) all transactions from the sales file
Group (with totals) all transactions from the purchase file

Item 2: The same layout.

B. Where I can get the syntax of the SetGetColorFocus() function ?

C. Why on a report header the accented characters ó é, etc. display weird characters instead of the correct ones ?

Thank you for your help.

HunterEC

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: DOES ANYONE KNOWS THE ANSWER ?
Posted: Fri Oct 28, 2011 03:54 AM
Gustavo,

b) http://wiki.fivetechsoft.com/doku.php?id=fivewin_function_setgetcolorfocus

c) Please try to use OemToAnsi( cText ) for accented characters
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: DOES ANYONE KNOWS THE ANSWER ?
Posted: Fri Oct 28, 2011 07:07 AM

Hunter,

First all the files must have fields that will allow you to link them, e.g. partNo. Then open all three files and either use relations or use the oRpt:bSkip codeblock to keep all the files in sync. I use the codeblock and database objects myself.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: DOES ANYONE KNOWS THE ANSWER ?
Posted: Fri Oct 28, 2011 05:15 PM

Maybe you don't need the report class. You can design amazing reports using the printer class and normal FWH code. You can blend data from multiple databases, have structured layouts, do calculations, and everything, and probably much easier then trying to adapt a report.

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

Continue the discussion