Set the margin for a report using FASTREPORT? (SOLVED)

Set the margin for a report using FASTREPORT? (SOLVED)

Postby Armando » Mon Oct 31, 2016 4:36 pm

Hi Friends:

From code, I need to set the margins for a report made with fastreport, anyone know how?

I have this code:

Code: Select all  Expand view

    oFr := frReportManager():New()
    oFr:LoadLangRes("SPANISH.Xml")
    oFr:SetIcon("AppLogo")

    oFr:AddPage("Pagina")

    oFr:AddBand("Header","Pagina",frxPageHeader)
    oFr:AddBand("MasterData","Pagina",frxMasterData)
    oFr:AddBand("Footer","Pagina",frxPageFooter)
 


Then I need to define the LeftMargin, RightMargin, TopMargin, RightMargin, Orientation, Font,
Font size, Page size.

Thanks for your help.

Regards
Last edited by Armando on Tue Nov 01, 2016 2:13 pm, edited 1 time in total.
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
User avatar
Armando
 
Posts: 3223
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México

Re: How I can set the margin for a report using FASTREPORT?

Postby Horizon » Mon Oct 31, 2016 7:59 pm

Hi,

Did you try this?

Code: Select all  Expand view
oFr:SetProperty("pagina", "LeftMargin", 2)
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

How I can set the margin for a report using FASTREPORT? (SOL

Postby Armando » Mon Oct 31, 2016 11:34 pm

Horizon:

Thanks a lot.

Best regards
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
User avatar
Armando
 
Posts: 3223
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 114 guests