Page 1 of 1
FastReport - FR3 in the RES
Posted: Tue Dec 01, 2009 4:47 pm
by Kleyton
How to include the file .FR3 in the .RES design PellesC?
Re: FastReport - FR3 in the RES
Posted: Tue Dec 01, 2009 4:51 pm
by Kleyton
I matter how RCDATA but at the time is coming to read my blank report.
_fastRep_ := "LOTREL_132.FR3"
oFrPrn:LoadFromResource(_fastRep_)
Re: FastReport - FR3 in the RES
Posted: Tue Dec 01, 2009 4:59 pm
by Kleyton
Doubt resolved, variable incorrect.
Thanks.
Re: FastReport - FR3 in the RES
Posted: Tue Dec 01, 2009 5:24 pm
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
Re: FastReport - FR3 in the RES
Posted: Tue Dec 01, 2009 7:12 pm
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
Re: FastReport - FR3 in the RES
Posted: Wed Dec 02, 2009 4:00 pm
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_)
Re: FastReport - FR3 in the RES
Posted: Wed Dec 02, 2009 7:47 pm
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
Re: FastReport - FR3 in the RES
Posted: Thu Dec 03, 2009 1:34 am
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.
Re: FastReport - FR3 in the RES
Posted: Thu Dec 03, 2009 1:46 am
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?
Re: FastReport - FR3 in the RES
Posted: Thu Dec 03, 2009 11:49 am
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
Re: FastReport - FR3 in the RES
Posted: Thu Dec 03, 2009 6:34 pm
by Kleyton
Otto, Print label, I need to configure label fastreport.
And I'm not getting.