FastReport - FR3 in the RES

FastReport - FR3 in the RES

Postby Kleyton » Tue Dec 01, 2009 4:47 pm

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

Postby Kleyton » Tue Dec 01, 2009 4: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
Kleyton
 
Posts: 49
Joined: Thu Dec 22, 2005 12:50 pm

Re: FastReport - FR3 in the RES

Postby Kleyton » Tue Dec 01, 2009 4:59 pm

Doubt resolved, variable incorrect.

Thanks.
Kleyton
Fwh906
Brazil
Kleyton
 
Posts: 49
Joined: Thu Dec 22, 2005 12:50 pm

Re: FastReport - FR3 in the RES

Postby Otto » Tue Dec 01, 2009 5: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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6335
Joined: Fri Oct 07, 2005 7:07 pm

Re: FastReport - FR3 in the RES

Postby anserkk » Tue Dec 01, 2009 7: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
User avatar
anserkk
 
Posts: 1333
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: FastReport - FR3 in the RES

Postby Kleyton » Wed Dec 02, 2009 4: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_)

Image
Kleyton
Fwh906
Brazil
Kleyton
 
Posts: 49
Joined: Thu Dec 22, 2005 12:50 pm

Re: FastReport - FR3 in the RES

Postby Otto » Wed Dec 02, 2009 7: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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6335
Joined: Fri Oct 07, 2005 7:07 pm

Re: FastReport - FR3 in the RES

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

Re: FastReport - FR3 in the RES

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

Re: FastReport - FR3 in the RES

Postby Otto » 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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6335
Joined: Fri Oct 07, 2005 7:07 pm

Re: FastReport - FR3 in the RES

Postby Kleyton » Thu Dec 03, 2009 6:34 pm

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

And I'm not getting.
Kleyton
Fwh906
Brazil
Kleyton
 
Posts: 49
Joined: Thu Dec 22, 2005 12:50 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 75 guests