ICEpdf
  1. ICEpdf
  2. PDF-51

PrintHelper services array can be incorrectly arranged

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.1
    • Component/s: API
    • Labels:
      None
    • Environment:
      -

      Description

      In the RI class PrintHelper constructor, can you rearrange the services array so that the default service is in the zeroeth position? In the method PrintHelper.getSetupDialog(), you call ServiceUI.printDialog(), but since the service array is in "random" order, the "default" printer is also random.

        Activity

        Hide
        Patrick Corless added a comment -

        PrintServiceLookup has two lookup calls one for all services and one for the default service. I couldn't find any documentation about the services array from PrintServiceLookup.lookupPrintServices being random but I can take their word for it. Adding code that will swap the default service with which ever service at index 0.

        Show
        Patrick Corless added a comment - PrintServiceLookup has two lookup calls one for all services and one for the default service. I couldn't find any documentation about the services array from PrintServiceLookup.lookupPrintServices being random but I can take their word for it. Adding code that will swap the default service with which ever service at index 0.
        Hide
        Patrick Corless added a comment -

        Checked in RI code, marking as fixed.

        Show
        Patrick Corless added a comment - Checked in RI code, marking as fixed.
        Hide
        Patrick Corless added a comment -

        ICEpdf 3.1.0 has been released, closing issues.

        Show
        Patrick Corless added a comment - ICEpdf 3.1.0 has been released, closing issues.

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Tyler Johnson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: