Page 1 of 1

Question about TPrinter?

Posted: Wed Mar 26, 2008 6:34 pm
by JC
Hi my friends.... I have a new question for us!

When I'm preview a report.... with this configurations, I get the following images of a preview window under...

PS.: The square in the report should be occupying the whole area of the paper (A4)

The configurations ( the code is incomplete, but this the same ):

Code: Select all

oReport := PrintBegin( "Print Doc", .T., .T., , .T., .T. )

oReport:setFont(  )
oReport:SetSize( 800, 600 )
oReport:SetPage( 9 ) // A4 210 x 297 mm

IF EMPTY( oReport:hDC )
   MsgStop( "Printer is not avaiable!", "Attention!" )
   RETURN .F.
ENDIF

oPen:= TPen():New( , , , oReport )

oReport:StartPage()
nLinha := 0

oReport:Box( nLinha, 0, nMaximaLinha, 1810, oPen )

nLinha += 5
oReport:Say( nLinha, 10, "sample", TFont():New( "Arial", 20, 40,, .T. ), , CLR_BLACK, , , )

nLinha += 50
oReport:Box( nLinha, 12, nMaximaLinha - 15, 1800, oPen )

oReport:EndPage()

printEnd()
Image when a preview dialog is started:
Image

Image when I'm click on Zoom factor:
Image


Why this visualization is so small???

Thanks for all!!

Posted: Wed Mar 26, 2008 7:33 pm
by Kleyber
JC,

What if you cut the line:

oReport:SetSize( 800, 600 )

?


Regards,

Posted: Wed Mar 26, 2008 8:16 pm
by JC
Kleyber wrote:JC,

What if you cut the line:

oReport:SetSize( 800, 600 )

?


Regards,
Olá Kleyber... vc é de Slz? Sou de recife, podemos conversar em português ;)

Se vc achar interessante, adicione meu email para conversarmos via MSN tb!
Abraço!

PS.: Tenho família aí em Slz, em Vila dos Nobres!

Posted: Wed Mar 26, 2008 8:26 pm
by Kleyber
Blz,meu amigo. adicione ai: kleyberderick@hotmail.com

Abraços / Regards,