Results 1 to 6 of 6
  1. #1
    Join Date
    Dec 2005
    Location
    Mississippi Gulf Coast
    Posts
    3

    Unanswered: Pdox 11 Printer settings error

    I'm testing Pdx 11.0.0411, in XP pro SP2, i have an app that sets the specified printer for Legal size printing. using printerGetoptions and printerSetOptions I see the code works but when i print the printer defaults to Letter. Does anyone know a work around for this? thanks

  2. #2
    Join Date
    Aug 2003
    Location
    Bologna - Italy
    Posts
    209
    What OPAL code do you use to set up the printer?
    The only failure is not trying to do it.

  3. #3
    Join Date
    Dec 2005
    Location
    Mississippi Gulf Coast
    Posts
    3
    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

  4. #4
    Join Date
    Sep 2003
    Location
    Dallas
    Posts
    182

    Change the Order

    Opening the form results in the form changing the print options to those saved with the form when it was created. So all your hard work goes for naught. Do this:

    Open the Form;
    Add the Data
    If printerSetOptions(PtrInfo) then
    Form.print()
    Else
    Errorshow()
    Endif

  5. #5
    Join Date
    Dec 2005
    Location
    Mississippi Gulf Coast
    Posts
    3
    man, I thought your solution was simple enough,
    it should work. I made the necessary mods and...
    I uttered an explicitive...
    it still defaulted to Letter size.

    Thanks Maroonotmoron for you suggestion.
    Have you got any others up your sleeve?

  6. #6
    Join Date
    Sep 2003
    Location
    Dallas
    Posts
    182

    Just a thought.

    does your printer have more than one bin. If the default is not set to auto then even changing paper type could result in it pulling paper from a default bin. (perhaps the one holding letter size.) Check to see if one of the choices is bin and then modify that in print info to make sure it is pulling the correct paper size from the correct bin.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •