FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Please sample with Fast Report
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Please sample with Fast Report
Posted: Sat Nov 03, 2012 07:41 AM
I tried Fast Report and I tyhink is not usefull for Us because the user final cannot build report himself and he need allways our job

Could Make a small lesson how we can use Fast Report

Because I tried all the day and I not Understood how make a simply report ( List od Articles)

thanks





when I press on Preview of Print the page was white and with no report!!!


I made this prg to open fastreport designer and set the work area

Code (fw): Select all Collapse
#include "FastRepH.ch"

PROCEDURE main


   DataDir := CurDrive() +":\"+ CurDir() + '\DATA\'
   ResDir := CurDrive() +":\"+ CurDir() + '\LANGRES\'
       USE ARTICOLI
   FrPrn := frReportManager():new()
   FrPrn:LoadLangRes(ResDir +"Italian.xml")
   FrPrn:SetIcon(2)
   FrPrn:SetTitle("test silvio")

   FrPrn:SetWorkArea("ARTICOLI", 1 )
  

   FrPrn:DesignReport()
   FrPrn:DestroyFR()
   QUIT
  
RETURN
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: Please sample with Fast Report
Posted: Sat Nov 03, 2012 01:46 PM

Silvio,
please post your fr3 file, too.
Otto

Posts: 332
Joined: Thu Nov 17, 2005 09:11 PM
Re: Please sample with Fast Report
Posted: Sat Nov 03, 2012 01:52 PM

Hi Silvio,

FrPrn := frReportManager():new()
FrPrn:SetTitle("TEST")
FrPrn:SetWorkArea("CTEINUT", Select("CTEINUT")) // here you put your database
FrPrn:SetResyncPair("CTEINUT")
FrPrn:LoadFromFile("PROG220G.FR3")
FrPrn:DesignReport() // or FrPrn:ShowReport() to not show a design mode
FrPrn:DestroyFR()

In design mode just add bands like title, masterdata, and put your fields in masterdata.

Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Please sample with Fast Report
Posted: Sat Nov 03, 2012 04:17 PM

Otto I wish create a new file fr3 step by step

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 518
Joined: Fri Jun 29, 2012 12:49 PM
Re: Please sample with Fast Report
Posted: Sat Nov 03, 2012 05:48 PM

Silvio,

Fast report is not longer available for Harbour as Sergey died.

Continue the discussion