Zoom em HBPrint

Projeto MiniGui - Biblioteca visual para Harbour/xHarbour

Moderador: Moderadores

mmaciel11
Usuário Nível 2
Usuário Nível 2
Mensagens: 69
Registrado em: 23 Mar 2006 11:16
Localização: sao luis
Contato:

Zoom em HBPrint

Mensagem por mmaciel11 »

boa tarde,

como faço pra dar definir um zoom nos meus relatorios quando coloco o preview na tela

pois a letra esta muito pequena.


meu codigo:

Function BTN_Imprimir_FOLHA()
Local nLinha := 0
Local nPagina := 1

Wcodfolha := _codfolha
Wapres := substr(_apres,3,4)+substr(_apres,1,2)

DbSelectArea('RepMov')
OrdSetFocus('RepMov1')
RepMov->(DbGoTop())
Seek Str( Wcodfolha, 2 )+Wapres
If !found()
MsgStop("Não existe dados pra imprimir !!!")
Endif

PRIVATE aPrinters, aports

INIT PRINTSYS
GET PRINTERS TO aprinters
GET PORTS TO aports
RELEASE PRINTSYS

INIT PRINTSYS

SELECT BY DIALOG PREVIEW

// chama caixa de dialogo do windows
// com PREVIEW

If HBPRNERROR>0
return
Endif

* Retrato Set Page orientation DMORIENT_PORTRAIT papersize DMPAPER_A4 font "f0"
*DMORIENT_LANDSCAPE
Set Page orientation DMORIENT_LANDSCAPE papersize DMPAPER_A4 font "f0"

define font "f0" name "courier new" size 12 bold
define font "f1" name "courier new" size 10 bold
define font "f2" name "times new roman" size 30 width 30 bold italic underline strikeout
define font "f3" name "times new roman" size 30 bold
define font "f4" name "times new roman" size 12 bold

define pen "p0" style PS_SOLID width 1 color 0x000000
define pen "p1" style PS_SOLID width 10 color 0xFF0000
define pen "p2" style PS_NULL

define brush "b0" style BS_SOLID color 0xCCFFAA
define brush "b1" style BS_HATCHED color hbprn:dxcolors("YELLOW") hatch HS_DIAGCROSS
define brush "b2" style BS_NULL

Select font "f0"
Select pen "p0"

START DOC NAME "FOLHA"
SELECT PEN "P1"
SELECT BRUSH "B0"

START PAGE
Cab_RESUMO(nPagina)
Rod_RESUMO()
END PAGE
END DOC

RELEASE PRINTSYS
RETURN

*---------------------------
Function Cab_Resumo(pPagina)
@ 01, 05 Say 'TESTE' FONT 'f0' to print
@ 02, 05 Say 'TESTE' FONT 'f0' to PRINT
Return(Nil)
*---------------------------
Function Rod_Resumo()
@ 66, 05, 66, 150 LINE PEN 'P1'
@ 67, 05 Say 'Impresso em '+DtoC(Date())+' as '+Time() TO PRINT
Return(Nil)
*---------------------------------------------------------------------------
HBMake v1.55 - xHarbour Make
xHarbour build 0.99.60 (simplex)
Borland c++ 5.5.1
mmaciel11
Usuário Nível 2
Usuário Nível 2
Mensagens: 69
Registrado em: 23 Mar 2006 11:16
Localização: sao luis
Contato:

Re: Zoom em HBPrint

Mensagem por mmaciel11 »

alguem responde ???
HBMake v1.55 - xHarbour Make
xHarbour build 0.99.60 (simplex)
Borland c++ 5.5.1
Avatar do usuário
RamonXHB
Usuário Nível 3
Usuário Nível 3
Mensagens: 159
Registrado em: 03 Mar 2007 14:55

Re: Zoom em HBPrint

Mensagem por RamonXHB »

Tem no Help...
HBprinter...
SET PREVIEW SCALE <scale> : Sets scale for print preview
SET PREVIEW SCALE 2.3
Ramon A. Körber Jr.
Harbour 3.2 MiniGUI Extended Edition
xDevStudio v0.70 - BCC 5.82 - Lazarus FreePascal
Firebird
AdoDB - ODBC
Windows - Linux
Linux User Number 404280
MSN - ramon15061959@hotmail.com
Skype - ramon15061959
ICQ - UIN 82580595
Responder