Lazarus

Programming => Packages and Libraries => LazReport => Topic started by: magleft on April 10, 2020, 04:40:41 pm

Title: [CLOSED] LazReport and Zebra Printers
Post by: magleft on April 10, 2020, 04:40:41 pm
Hi. I want to print labes with Zebra printers. The labels size is A7 105 x 75 mm. When select the zebra printer, the choises in page options is onle U.
I try put label size, but only accepted sizes is 29 x 21.
I tried to set page size on runtime   but is error.

Code: Pascal  [Select][+][-]
  1.    
  2.    frReport2.Pages.Pages[0].ChangePaper(0,100,75,poLandscape);
  3.     frReport2.LoadFromFile(ExtractFilePath(Application.ExeName)+'Reports\80165.lrf');
  4.     frReport2.ShowReport  ;
  5.  

Then Tried  the following code. Don' t give error, but don't change page size.


 
Code: Pascal  [Select][+][-]
  1.    
  2.     frReport2.LoadFromFile(ExtractFilePath(Application.ExeName)+'Reports\80165.lrf');
  3.     frReport2.Pages.Pages[0].ChangePaper(0,100,75,poLandscape);
  4.     frReport2.ShowReport  ;
  5.  

Any idea would help. Thanks in advance
Title: Re: [CLOSED] LazReport and Zebra Printers
Post by: magleft on April 26, 2020, 03:23:57 pm
After all, it's easier to use fortes4lazarus
TinyPortal © 2005-2018