We have a form in our software that prints on an 6 x 12 sheet of paper. When you select that paper size in the Windows Printer Defaults pop-up box, how do I get that information to my program?? Right now it still prints as the 8 1/2 x 11 default.
Is there something I set before I call "PC_PRINTER_INFO_DOTNET"?
I should also note that I can't hard code anything in here specifically for the 6 x 12 because this code is in a print copybook that ALL of our programs that print use.
This is my code:
declare status-code as binary-long.
declare testdelegate as type PrinterInfoDelegate.
set testdelegate to
delegate(gr as type Graphics,
pb as type Rectangle,
ps as type PageSettings,
uo as object)
end-delegate.
call "PC_PRINTER_INFO_DOTNET" using by reference PRINTER-HANDLE
by value testdelegate
by value "TestText"
returning status-code.




