FastReport

FastReport

Postby Kleyton » Sat Nov 28, 2009 8:33 pm

Dear, friends

I can tell 3 titles via PRG, can you please tell me how?

Waiting, thanks.

Code: Select all  Expand view

Function Main(_desig_, _arq_, _fastRep_, _tit01_, _tit02_, _tar01_, _arai_ )
local oWnd, oFrPrn
usuario := "ADM"

if empty(_arq_)
   quit
Endif

REQUEST DBFCDX
use (_arq_) alias tmp
tmp->( browse() )

oFrPrn := frReportManager():new()
oFrPrn:SetTitle( "Teste Title not visible in relat  1" )         //título da janela do FRH
oFrPrn:SetIcon(1)                                                     //ícone da janela do FRH
oFrPrn:LoadLangRes( "brazil.xml")                            //arquivo de idioma
oFrPrn:SetWorkArea("tmp", 1 )
oFrPrn:SetTitle( "Teste Title not visible in relat 2" )         //título da janela do FRH
oFrPrn:SetDefaultFontProperty("Name", "Lucida Console")
oFrPrn:SetDefaultFontProperty("Size", 08)

oFrPrn:LoadFromFile(_fastRep_)                           // para leitura direta de arquivo FR3
*oFrPrn:LoadFromResource('NOVO')                       // leitura dos recursos do relatório ( FR3 ) incluído no arquivo RES

oFrPrn:PreviewOptions:SetAllowEdit( .t. )             // inibe o botão de edição do relatório pelo usuário

if _desig_="S"
   oFrPrn:DesignReport()                        // aqui para "desenhar" o relatório
else
   oFrPrn:ShowReport()                       // aqui para gerar o preview do relatório.
endif

oFrPrn:DestroyFR()


RETURN NIL

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

Re: FastReport

Postby Otto » Sun Nov 29, 2009 9:18 am

Maybe you can use AddVariable.

Code: Select all  Expand view

 _tit01_   := "Demo Title_tit01_"
 _tit02_  := "Demo Title_tit02_"
 _tar01_  := "Demo Title_tar01_"


oFrPrn:AddVariable( "TITOL", "cTitol1", "'" + _tit01_ +"'")
oFrPrn:AddVariable( "TITOL", "cTitol2", "'" + _tit02_ +"'" )
oFrPrn:AddVariable( "TITOL", "cTitol3", "'" + _tar01_ +"'" )
 


Best regards,
Otto

Image

Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6329
Joined: Fri Oct 07, 2005 7:07 pm

Re: FastReport

Postby Kleyton » Sun Nov 29, 2009 1:48 pm

Thanks, Otto

Putting the field ReportTitle, will leave only on page one?

Now if I put in the "PageHeader" will go on every page, is it?
Kleyton
Fwh906
Brazil
Kleyton
 
Posts: 49
Joined: Thu Dec 22, 2005 12:50 pm

Re: FastReport

Postby Kleyton » Sun Nov 29, 2009 4:50 pm

I need to get the company logo and play in space and size set for her.

Playing directly from the designer fastreport is easy, I want to check for example C: \ LOGO \ LOGO.JPG, i will not need to be altering the logo for each company.
Kleyton
Fwh906
Brazil
Kleyton
 
Posts: 49
Joined: Thu Dec 22, 2005 12:50 pm

Re: FastReport

Postby Otto » Sun Nov 29, 2009 6:44 pm

Hello Kleyton,

You can insert a page which you use as your title page.
This prints a own page. If you want the title inside your first page change on this page

PrintOnPriviousPage to true.

Best regards,
Otto

Image

Image

Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6329
Joined: Fri Oct 07, 2005 7:07 pm

Re: FastReport

Postby Kleyton » Sun Nov 29, 2009 7:40 pm

Tank you, soluction found.
Kleyton
Fwh906
Brazil
Kleyton
 
Posts: 49
Joined: Thu Dec 22, 2005 12:50 pm

Re: FastReport

Postby Otto » Sun Nov 29, 2009 7:45 pm

Hello Kleyton,
Best regards,
Otto

Code: Select all  Expand view
oFr:AddVariable( "FIRMA", "Logo", "'C:\xwinhotel\LOGO\Logo.jpg'" )


Image


Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6329
Joined: Fri Oct 07, 2005 7:07 pm

Re: FastReport

Postby Kleyton » Sun Nov 29, 2009 8:06 pm

Hello Otto, tanks for help, got what I needed, see below.

Look at the field "filelink", see below.

Image

Tank you !!!
Kleyton
Fwh906
Brazil
Kleyton
 
Posts: 49
Joined: Thu Dec 22, 2005 12:50 pm

Re: FastReport

Postby Kleyton » Sun Nov 29, 2009 8:11 pm

Otto, Sorry, I posted my message and had not seen his last.

It will help me a lot, thanks.
Kleyton
Fwh906
Brazil
Kleyton
 
Posts: 49
Joined: Thu Dec 22, 2005 12:50 pm

Re: FastReport

Postby Otto » Sun Nov 29, 2009 8:23 pm

Hello Kleyton,

today I was searching some time to find out how to use the “Outline feature”.

Select “Report” then change OutlineVisible to True

Best regards,
Otto

Image

Image

Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6329
Joined: Fri Oct 07, 2005 7:07 pm

Re: FastReport

Postby Kleyton » Sun Nov 29, 2009 8:43 pm

My version is different, in Portuguese of Brazil. Version 4.8.33. Not found.
Then I look more calmly.

Thank you.
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: Google [Bot] and 83 guests