Jump to content
Fórum Script Brasil
  • 0

(Resolvido) Tamanho papel da impressora


Question

5 answers to this question

Recommended Posts

  • 0
Em 27/07/2017 at 15:05, Jhonas disse:

já experimentou pegar o tamanho da folha padrão na impressora ?  ( Width e Length )

ou antes da impressão setar o tamanho da folha ? ( independente do que estiver setado como padrão )

Não, me manda um exemplo por favor.

 

Fiz o seguinte e funcionou.
Segue o código:

Código:
 
Printer.ActivePrinter.SelectDPI(1200, 1200);
   Printer.Title:= 'Documento do Sistema';
   Printer.Canvas.Fill.Kind := TBrushKind.Solid;
   Printer.BeginDoc;
DestRect := TRectF.Create(0, 0, Printer.PageWidth, Printer.PageHeight);
      Printer.Canvas.Font.Size:= 80;
 Printer.Canvas.FillText(DestRect,Lista.GetText,True,1,textFill,align,align);
Printer.EndDoc;

Resposta dada no Forum Activedelphi 28/07/2017

Link to post
Share on other sites
  • 0

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Cloud Computing


  • Forum Statistics

    • Total Topics
      148911
    • Total Posts
      644950
×
×
  • Create New...