FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour FastReport - FR3 in the RES
Posts: 49
Joined: Thu Dec 22, 2005 12:50 PM
FastReport - FR3 in the RES
Posted: Tue Dec 01, 2009 04:47 PM

How to include the file .FR3 in the .RES design PellesC?

Kleyton

Fwh906

Brazil
Posts: 49
Joined: Thu Dec 22, 2005 12:50 PM
Re: FastReport - FR3 in the RES
Posted: Tue Dec 01, 2009 04:51 PM

I matter how RCDATA but at the time is coming to read my blank report.

fastRep := "LOTREL_132.FR3"
oFrPrn:LoadFromResource(fastRep)

Kleyton

Fwh906

Brazil
Posts: 49
Joined: Thu Dec 22, 2005 12:50 PM
Re: FastReport - FR3 in the RES
Posted: Tue Dec 01, 2009 04:59 PM

Doubt resolved, variable incorrect.

Thanks.

Kleyton

Fwh906

Brazil
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: FastReport - FR3 in the RES
Posted: Tue Dec 01, 2009 05:24 PM
Hello Kleyton,

I found this in another thread.

Hello,

New method is added to frReportManager:

LoadFromResource(xResource)

With this method you can add reports as resources (RCDATA) to your exe at "compile-time" and use this reports at run-time.

xResource - name or number of resource.


But I never tried. How do you insert the fr3 code into your RC-file.
Could you please show how to do.
Thanks in advance
Otto
Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: FastReport - FR3 in the RES
Posted: Tue Dec 01, 2009 07:12 PM

Dear Mr.Otto
In your .RC file

SalesReport RCDATA FastRep1.FR3

I have not tried this. I understand that u can include any binary file using this technique.

Regards
Anser

Posts: 49
Joined: Thu Dec 22, 2005 12:50 PM
Re: FastReport - FR3 in the RES
Posted: Wed Dec 02, 2009 04:00 PM
Hello Otto,

Below the picture of how I include the FR3 in the RES. You are in sequence.

_fastRep_ := "LOTREL_132.FR3"
oFrPrn:LoadFromResource(_fastRep_)

Kleyton

Fwh906

Brazil
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: FastReport - FR3 in the RES
Posted: Wed Dec 02, 2009 07:47 PM

Hello Kleyton,

thank you for your help. It is working.

If you want a report which can be changed by the user you can’t use from resource.
Is this right?

Best regards,
Otto

Posts: 49
Joined: Thu Dec 22, 2005 12:50 PM
Re: FastReport - FR3 in the RES
Posted: Thu Dec 03, 2009 01:34 AM

Otto, I just tested here in order to design. FR3 inserted into. RES, the changes do not have to be saved.

By sending save the FastReport will request the file name and location to be saved the arquivo.FR3.

Kleyton

Fwh906

Brazil
Posts: 49
Joined: Thu Dec 22, 2005 12:50 PM
Re: FastReport - FR3 in the RES
Posted: Thu Dec 03, 2009 01:46 AM

I'm having trouble with the label of one, two, three and four columns using fastreport, someone could pass me an example or send me a file fr3?

Kleyton

Fwh906

Brazil
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: FastReport - FR3 in the RES
Posted: Thu Dec 03, 2009 11:49 AM

Hello Kleyton,

I don’t understand exactly what you mean.
Could you please post a screen shot?
Do you use Master detail band?

Best regards,
Otto

Posts: 49
Joined: Thu Dec 22, 2005 12:50 PM
Re: FastReport - FR3 in the RES
Posted: Thu Dec 03, 2009 06:34 PM

Otto, Print label, I need to configure label fastreport.

And I'm not getting.

Kleyton

Fwh906

Brazil

Continue the discussion