FastReport - FR3 in the RES

Post Reply
Kleyton
Posts: 49
Joined: Thu Dec 22, 2005 12:50 pm

FastReport - FR3 in the RES

Post by Kleyton »

How to include the file .FR3 in the .RES design PellesC?
Kleyton
Fwh906
Brazil
Kleyton
Posts: 49
Joined: Thu Dec 22, 2005 12:50 pm

Re: FastReport - FR3 in the RES

Post by Kleyton »

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
Kleyton
Posts: 49
Joined: Thu Dec 22, 2005 12:50 pm

Re: FastReport - FR3 in the RES

Post by Kleyton »

Doubt resolved, variable incorrect.

Thanks.
Kleyton
Fwh906
Brazil
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Re: FastReport - FR3 in the RES

Post by Otto »

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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
User avatar
anserkk
Posts: 1280
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: FastReport - FR3 in the RES

Post by anserkk »

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
Kleyton
Posts: 49
Joined: Thu Dec 22, 2005 12:50 pm

Re: FastReport - FR3 in the RES

Post by Kleyton »

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_)

Image
Kleyton
Fwh906
Brazil
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Re: FastReport - FR3 in the RES

Post by Otto »

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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
Kleyton
Posts: 49
Joined: Thu Dec 22, 2005 12:50 pm

Re: FastReport - FR3 in the RES

Post by Kleyton »

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
Kleyton
Posts: 49
Joined: Thu Dec 22, 2005 12:50 pm

Re: FastReport - FR3 in the RES

Post by Kleyton »

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
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Re: FastReport - FR3 in the RES

Post by Otto »

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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
Kleyton
Posts: 49
Joined: Thu Dec 22, 2005 12:50 pm

Re: FastReport - FR3 in the RES

Post by Kleyton »

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

And I'm not getting.
Kleyton
Fwh906
Brazil
Post Reply