Recent

Author Topic: Setting custom papersize ?  (Read 2515 times)

k1attila1

  • Full Member
  • ***
  • Posts: 105
Setting custom papersize ?
« on: April 30, 2017, 07:59:48 am »
hello

Could anybody tell me an idea, how i can change a selected printer papersize ? (width,length)
Is there buil-in lazarus solution ? Or i have to use Windows api ?

thanks Attila

balazsszekely

  • Guest
Re: Setting custom papersize ?
« Reply #1 on: April 30, 2017, 11:05:01 am »
Hi Attila,

Are you using some kind of reporting tool?
1. Fortes report has a SetPaperSizeMethod, use it like this:
Code: Pascal  [Select][+][-]
  1. uses RLPrinters;
  2.  
  3. procedure TForm1.Button1Click(Sender: TObject);
  4. begin
  5.   RLPrinter.SetPaperSize(...);
  6. end;
2. Lazreport has a ChangePaper method.
and so on...

k1attila1

  • Full Member
  • ***
  • Posts: 105
Re: Setting custom papersize ?
« Reply #2 on: April 30, 2017, 05:56:59 pm »
Thank you Getmem,

but i think this doesn't change the printer papersize, only print at the adjusted size if this setting meet the printer supperted papersize .

Attila

 

TinyPortal © 2005-2018