The following is the code, in summary, I used with NO success.
printerGetOptions(PtrInfo) -> PrtInfo dynarray[]anytype
PtrInfo.view() -> to view settings
PtrInfo ["PaperSize"] = prnLegal -> select paper size
PtrInfo.view() -> to verify changes
If printerSetOptions(PtrInfo) then
message("Printer Setup Complete")
; Open form, add data, print.(*)
Else
Errorshow()
Endif
(*) we have preprinted multipart forms, the data varies depending on the job.
I debugged my test program and the paper setting changed as I would expect them to. But when I actually printed the data, the printer paper size defaulted to 'Letter'
I have resolved to not fully automate the printing.
I gave up on coding it at all since that did not work.
Now the user will open Pdox, run form, then print it.
No object pal for printing is involved.
I have not been able to set a named setting that keeps the Letter paper size. HELP!
I tried manipulating the registry with no luck. If I can call a named setting or the techs, using the print menu "menuaction(menuFilePrint)" can select it, my problem would be solved.
Any help would be appreciated.
Thanks
Nestor