Incorrect output in PrintDataGrids

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default Incorrect output in PrintDataGrids

    Hello Flex Community,

    I have an exciting problem and hope anybody can help me. My application does
    the following:

    1. I have a panel with two DataGrids one below the other, which are filled
    with more than 100 rows.
    2. I want to print these DataGrids. I tried to do this - as decribed in the
    LiveDocs - with PrintDataGRids.
    3. I want that the first DataGrid is printed completely on multiple pages and
    finally the second DataGrid.

    My problem is that each printed page visualizes both PrintDataGrids with 10
    items in each case. And that is done for the next 10 pages.

    Question: How can I enforce that Flex prints at first the one DataGrid
    completely on multiple pages and then the second one???

    Gru? Greenhorn

    Smily1979 Guest

  2. Similar Questions and Discussions

    1. #40037 [NEW]: Incorrect output from strtotime, when timestr is used with a relative term this
      From: shruti224 at yahoo dot com Operating system: ES4 PHP version: 5.2.0 PHP Bug Type: Date/time related Bug description: ...
    2. #39830 [NEW]: Incorrect (float) variable output after using setlocale
      From: ipa at beta dot lt Operating system: Linux 2.6.10 PHP version: 4.4.4 PHP Bug Type: Variables related Bug description: ...
    3. Newbie Using Arrays--Array Runs But Output is Incorrect
      I'm trying to build a dynamic table with a 2D array. My array runs, but the output which should be 00 is 000000000. My goal is to output a table...
    4. #24433 [Com]: Incorrect version-output
      ID: 24433 Comment by: kuraman10 at yahoo dot com Reported By: sandro dot mathys at blappy dot com Status: Bogus...
    5. #20382 [Com]: strtotime ("Monday", $date) can produce incorrect output
      ID: 20382 Comment by: pierre dot baudracco at aliacom dot fr Reported By: nickj-phpbugs at nickj dot org Status: ...
  3. #2

    Default Re: Incorrect output in PrintDataGrids

    This is a major feature of Flex - inability to print.

    You've bumped into the problem that assigning 100% height to the PDG gets you
    into the described case.
    FlashPLayer uses 2 passes to layout the elements. So, at the first pass you've
    got 2 PDGs with 100% height and this thing drives FP nuts.

    As a solution you have to manually calculate available height and set
    PDG.height to that value, one PDG at a time.

    In my project I am using N-pass technique to layout all elements correctly,
    but still I can't overcome all the problems with mighty "Flex Printing Engine"

    PS I am inclined to think that server-side printing solution is the way to
    go.(like PDFLib)

    Cheers,
    Dmitri.




    Mitek17 Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139