Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-20643

Exception and invalid image when PrintJob.addPage() throw an exeption (scaleType != 'none')

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Adobe Flex SDK 3.3 (Release)
    • Fix Version/s: None
    • Component/s: Print Management
    • Labels:
      None
    • Environment:
      Affected OS(s): Windows
      Affected OS(s): Windows XP
      Browser: Internet Explorer 7.x
      Language Found: Russian

      Description

      Steps to reproduce:
      1. Invalid driver for printer.
      2. FlexPrintJob.addPage(myComponent, FlexPrintJobScaleType.SHOW_ALL)

      Actual Results:
      Get error and myComponent scaleX and scaleY changed, prepareToPrint() called, but finishPrint() not called.

      Error: Error #2057: Не удалось добавить страницу в список заданий на печать.
      at Error$/throwError()
      at flash.printing::PrintJob/addPage()
      at mx.printing::FlexPrintJob/addObject()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\printing\FlexPrintJob.as:384]

      Expected Results:
      Error but myComponent have original visual parameters.

      Workaround (if any):
      It' possible to create a handle for this Error and manually reset scaleX and scaleY and call finishPrint(), but it's impossible to get data, which is saved in prepareToPrint().

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              adobejira Adobe JIRA
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: