FPC:Lazarus 3.4
OS :Windows 10@64
Project: make a Record for print jobs one of the elements in PJob.Size:TPageSize;
Problem: PJob.Size.Text:=Printer.PaperSize.SupportedPapers.Text;
This is not a normal TStrings it has a lot of pointer variables.
Would like to
1) read the value of the Printer.Papersize store in PJob.Size (success)
2) change and send PJob.Size back to the Printer.Papersize (?)
pJob.Size:=DMPAPER_LETTER; //Identifier not found:ERROR
----------UPDATE
hack around and found a work around
Change pJob.Size : TPaperSize; to pJob.Size : Integer;
{ read Paper size }
pJob.Size:=Printer.PagerSize.SupportedPapers.IndexOf('Legal');
{Set Paper size}
Printer.PaperSize.SupportedPapers[pJob.Size];