Legal Paper
Hello,
I have a report template with a page setup for legal size paper. When I
print the report, the report is reduced in size, and prints on letter size
paper from the default bin.
How do I cause the report to use legal size paper first, if it is loaded?
Thank you.
--
Michael Malinowski
GIS Ltd.
I have a report template with a page setup for legal size paper. When I
print the report, the report is reduced in size, and prints on letter size
paper from the default bin.
How do I cause the report to use legal size paper first, if it is loaded?
Thank you.
--
Michael Malinowski
GIS Ltd.
This discussion has been closed.
Comments
You can control the printer bin using the Report.PrinterSetup.BinName
property. Something the following:
var
lsBinName: String
begin
lsBinName := Report.PrinterSetup.BinNames[1];
if Report.PrinterSetup.PaperName = 'Legal' then
Report.PrinterSetup.BinName := lsBinName;
The above example assumes the Legal bin is 2nd in the list (remember its a 0
based index). To account for different print drivers, you could search for
the 'Legal' bin in code by performing a search on the printer's available
bin names:
for liBin := 0 to ppReport1.PrinterSetup.BinNames.Count-1 do
if Pos('legal', ppReport1.PrinterSetup.BinNames[liBin]) > 0 then
begin
lsBinName := ppReport1.PrinterSetup.BinNames[liBin];
break;
end;
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com