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

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.

Similar Messages

  • Error "Terminal type 202: Incorrect output destination/message type TERM"

    Hi:
        We actually are using SRM v. 5, and we detected an intermiteng error in SM21, it says
       <b>Terminal type 202: Incorrect output destination/message type TERM</b>
       It is generated at Client 000 and relates to program BBP_BGRD_APPROVAL. The actual output of the log is described:
                   <b>Terminal type 202: Incorrect output destination/message type TERM
                   No Active Link Found in the Link Table                           
                   > Conversation ID: 39968053                                      
                   > CPI-C function: ?                                              
                   No Active Link Found in the Link Table                           
                   > Conversation ID: 39968053                                      
                   > CPI-C function: CMRCV                                          
                   Delete session 001 after error 004            </b>
           What we are worried about, is that the final error, relates to a user session end =(.
           We were looking for some information on SAP Notes and forums, but we didn't find any useful info.
           Does any one know what is this error about? We will appreciate any comments.
                        Thanks in advance, Abrahamdelgdaov

    Hi,
    This kind of error message usually arises if a program wants to send
    data to the partner program which will be identified via the
    conversation ID, but this conversation ID is not in the list of
    active RFC links.
    This always happens when one of the two partner programs finishes the
    conversation and informs the remaining partner program.
    Also included in this information is that the gateway already deletes
    the communication entry in the communcication table and conveys the
    message to the partner program.
    This partner program in turn accepts the message but still wants to
    send a receipt or something else to the program that is already finished
    Another send after you've received the close of the connection is not
    allowed.
    Therefore the messages you are seeing in the syslog are definitely ha
    rmless because even if the send would go through, the receiver is not
    able to receive the message.
    Check if there are any other network related errors in the system.
    Regards,
    Marcelo

  • Smu 236 incorrect output

    Hi 
    I am using a Kiethly 236 SMU to measure IVs this normally works fine, but appears to have an intermittent fault.
    Sometimes when performing a series of measurements the first outputted current file is correct, however all subsequent files give the same dataset with a random offset. Restarting the pc seems to resolve the issue.
    I have recently discovered that a colleague has been altering the pc date and time settings, could this somehow account for the incorrect data?
    Any help or ideas would be gratefully received.
    Thanks

    What programming environment are you using?
    I don't beleive the time and date have soemthing to do with this but you mention a current file. Is that file still correct or is there no change when a new file should be selected.
    If you are programming in LabVIEW add the program so we can see what is going on.
    greetings from the Netherlands

  • Incorrect output scaling on Officejet 7612

    I bought this printer last weekend and it has installed fine.  I have updated the drivers and it will both print and scan.  But I have found that the print output is incorrectly scaled.  I have a PDF document that contains a 12" line that is printed only 11.6" long.  The problem is the same both horizontally and vertically.  I can fix the problem by setting the print scaling in the Adobe Reader to 103.9%.I had planned to use this printer for my landscape designs but without an accurate output, the printer won't be acceptable and will need to be returned.My plans are generated using Vectorworks and the same problem occurs there so I know this is not an Adobe problem.

    The paper type does not matter. The size of the paper does not matter. Choosing borderless or not does not matter. Ditto for margins. I tried it any number of ways and the scaling still came out wrong.
    I set up a layout with the certificate at a specific size and to print on letter sized paper. I saved the document as a PDF and printed out a sample of it where I work, in this case, on a Ricoh laser printer. It came off that printer scaled to the proper size with nothing cut off. Is there an understandable reason that it would not print out at that same correct size, on an 8.5 X 11 sheet at home on this color inkjet? I used both Acrobat Reader and Acrobat Pro, and it still was not correct. I actually had to "fudge" the percentage at the Acrobat Pro stage to even get a print I could use! Even it wasn't an accurate size.
    If there is a solution, I want to know. If this is an issue that hasn't been resolved, it urgently needs to be, for the sake if anyone who spends money on HP printers in the future, and expects to complete a project with accurate results, without hacking.  Hacking is not a solution, it is a disappointing workaround.
    If it's a driver issue, it should be fixed. If a bug that was not fixed, has it been fixed since? Do HP's new printers all do the same thing or are some printing properly to scale and others not ? Please inform me what HP's expectation is for this particular model. Finding that this machine cannot print properly is not acceptable and the product should either be fixed or discontinued.

  • MOD() function - incorrect output

    The following bit of SQL uses the mod() function to determine modulus 2 of two large numbers
    13:37:20 SQL>set echo on
    13:37:24 SQL>@mod_test
    13:37:25 SQL>
    13:37:25 SQL>
    13:37:25 SQL>
    13:37:25 SQL>select mod(power(2,127)-1,2) from dual
    13:37:25 2 /
    MOD(POWER(2,127)-1,2)
    1
    1 row selected.
    13:37:25 SQL>
    13:37:25 SQL>select mod(power(2,128)-1,2) from dual
    13:37:25 2 /
    MOD(POWER(2,128)-1,2)
    -1
    1 row selected.
    13:37:25 SQL>
    Notice that mod(power(2,128)-1,2) returns an incorrect answer, while the
    answer for mod(power(2,127)-1,2) is correct.
    Does someone here know why?
    Is it a limit?
    Or is it a bug?
    Please supply an explanation and/or URL for your answer. :)

    Must be due to the fact the scale for a NUMBER can range from -84 to 127, and Floating Point Number Limits are:
    Value                         Binary-Float          Binary-Double
    Maximum positive finite value 3.40282E+38F  1.79769313486231E+308
    Minimum positive finite value 1.17549E-38F  2.22507485850720E-308

  • Incorrect output formatting when report send directly to printer

    Hi All,
    We have developed a report in report 6 and initially configured to send output to file and then open in notepad and then send this output to dot matrix printer. In this case the output prints correctly. Now we want to send this putput directly to laser printer but when we send this output to laser printer extara baln line are printing and due to this output is printing on two pages which we previously prinig on one page which is the requiremnt. Can anyone help me to identify what wrong is going?
    regards,
    Muhammad Asif

    Hi,
    there is a reports forum where this question is handled best. Though Forms is the initiator of Reports, it has nothing to do with the formatting.
    Frank

  • Incorrect output

    public class AraiseB {
         public static void main (String args[])
              int a = 3;
              int b = 2;
              int z;
                                               z = raise(a,b);
              System.out.println(a +" to the power of " + b + " is " + z);
         public static int raise(int a, int b)
              z = a ^ b;
              return z;
    }The correct output is 9, but when I run it, I get 1. Anyone know why?
    Thanks

    OOps, thanks.
    but where do i find documentation for the math library.
    I tried z=Math.pow(a,b);
    return z;
    and gave me an error.
    ^ is the 'exclusive or' operator.
    http://java.sun.com/docs/books/tutorial/java/nutsandbol
    s/bitwise.html
    Use Math.pow()

  • Incorrect output with SPELL_AMOUNT

    hi friends, i am using SPELL_AMOUNT in a smartform. but the output is not correct. if the value is like :
    1,4310,551.80
    in words : US dollar four milion three hundered ten thousand five hundered fifty one and eighty thousand cents only.

    part of my code is :
    clear : W_T685T.
    *data :l_effective like komv-kwert.
    clear : l_effective.
    loop at IT_T685T into W_T685T.
    l_effective = l_effective + W_T685T-kwert.
    endloop.
    data : amount type P DECIMALS 4.
    data  :var type P DECIMALS 2.
    amount = l_effective.
    if ZXEKKO-waers = 'INR'.
        CALL FUNCTION 'HR_IN_CHG_INR_WRDS'
          EXPORTING
            AMT_IN_NUM         = amount
          IMPORTING
            AMT_IN_WORDS       = in_words-word
          EXCEPTIONS
            DATA_TYPE_MISMATCH = 1
            OTHERS             = 2.
    CALL FUNCTION 'ZMMF_HR_IN_CHG_INR_WRDS'
    EXPORTING
    AMT_IN_NUM         = amount
    IMPORTING
    AMT_IN_WORDS       = in_words-word
    EXCEPTIONS
    DATA_TYPE_MISMATCH = 1
    OTHERS             = 2.
    *end
    else.
    CALL FUNCTION 'SPELL_AMOUNT'
    EXPORTING
    AMOUNT    = amount          "changed amount to var
    CURRENCY  = ZXEKKO-waers
    LANGUAGE  = SY-LANGU
    IMPORTING
    IN_WORDS  = in_words
    EXCEPTIONS
    NOT_FOUND = 1
    TOO_LARGE = 2
    OTHERS    = 3.
    endif.
    select single * from TCURT into wa_tcurt where spras = sy-langu and WAERS =
    ZXEKKO-waers.
    condense in_words-word.
    condense in_words-decword.
    if ZXEKKO-waers <> 'INR'.
    translate in_words-word to lower case.
    translate in_words-decword to lower case.
    translate in_words-word(1) to upper case.
    concatenate wa_tcurt-ktext in_words-word 'and' in_words-decword 'only'
    into in_words-word
    separated by space.
    find substring 'cents' in in_words-word.
    if sy-subrc = 0.
    replace substring 'cents' in in_words-word with space.
    endif.
    find substring 'only' in in_words-word.
    if sy-subrc = 0.
    replace substring 'only' in in_words-word with space.
    endif.
    concatenate in_words-word 'cents' 'only'
    into in_words-word
    separated by space.
    else.
    find substring 'Paise' in in_words-word.
    if sy-subrc = 0.
    replace substring 'Rupees' in in_words-word with 'and'.
    else.
    replace substring 'Rupees' in in_words-word with space.
    endif.
    translate in_words-word to lower case.
    translate in_words-word+0(1) to upper case.
    concatenate 'Rupees' in_words-word 'only' into in_words-word separated
    by space.
    *    translate in_words-word to lower case.
    *    translate in_words-word(1) to upper case.
    endif.

  • Incorrect outputs for grade program

    This is a secondary problem I am having to the first question I posted. The program runs but when I type in a letter grade this is my output regardless of the letter grade I put in:
    The score for the grade 'A' is 4.0
    Here is my code:
    #define_CRT_SECURE_NO_WARNINGS
    #include<stdio.h>
    #include<stdlib.h>
    voidmain()
    charGrade;
    printf("Enter a grade [A,B,C,D,F]");
    scanf("%c", &Grade);
    if(Grade ='A'||
    'a')
    printf(("The score for the grade 'A' is 4.0\n"));
    else
    if(Grade ='B'||
    'b')
    printf(("The score for the grade 'B' is 3.0\n"));
    else
    if(Grade ='C'||
    'c')
    printf(("The score for the grade 'C' is 2.0\n"));
    else
    if(Grade ='D'||
    'd')
    printf("The score for the grade 'D' is 1.0\n");
    else
    if(Grade ='F'||
    'f')
    printf(("The score for the grade 'F' is 0.0\n"));
    system("pause");

    On 3/20/2015 3:48 PM, leosucksatc wrote:
    if(Grade ='A'||'a')
    = is assignment. == is equality comparison. You had that right in your previous post.
    Also, the || operator doesn't work the way you think it does. Make it
    if (Grade == 'A' || Grade == 'a')
    Igor Tandetnik

  • Persistence - incorrect output.

    Hello
    I have three entity classes: Foo, Bar and Cow. The relations are:
    Foo---Bar---Cow
       1 1   1 1In the following code, I persist a Foo with a Bar with a Cow. Second, I remove the foo, so only Bar and Cow remain.
    import javax.persistence.EntityManager;
    import javax.persistence.Persistence;
    public class Main {
        private static EntityManager em;
        private static Foo foo;
        public static void main(String[] args) {
           em = Persistence.createEntityManagerFactory("TestPU").createEntityManager();
           createFoo();
           em.refresh(foo);
           Cow cow = foo.getBar().getCow();
           removeFoo();
           em.refresh(cow);
           System.out.println(cow.getBar().getFoo());
        private static void createFoo() {
           foo = new Foo();
           Bar bar = new Bar();
           Cow cow = new Cow();
           bar.setCow(cow);
           foo.setBar(bar);
           em.getTransaction().begin();
           em.persist(foo);
           em.getTransaction().commit();
        private static void removeFoo() {
           em.getTransaction().begin();
           em.remove(em.merge(foo));
           em.getTransaction().commit(); 
    }The output of this code is: +Foo[id=852]+ But Foo was already removed. Why is this? Looking in the database, I see that foo indeed is removed. But the cow object says otherwise.
    I use Toplink and MySQL. Additional code:
    //Imports
    @Entity
    public class Foo implements Serializable {
        private static final long serialVersionUID = 1L;
        @Id
        @GeneratedValue(strategy = GenerationType.AUTO)
        private Long id;
        @OneToOne(cascade={CascadeType.PERSIST,CascadeType.MERGE,CascadeType.REFRESH})
        private Bar bar;
        //Getters, setters and toString
    //Imports
    @Entity
    public class Bar implements Serializable {
        private static final long serialVersionUID = 1L;
        @Id
        @GeneratedValue(strategy = GenerationType.AUTO)
        private Long id;
        @OneToOne(mappedBy="bar")
        private Foo foo;
        @OneToOne(cascade={CascadeType.PERSIST,CascadeType.MERGE,CascadeType.REFRESH})
        private Cow cow;
       //Getters, setters and toString
    //Imports
    @Entity
    public class Cow implements Serializable {
        private static final long serialVersionUID = 1L;
        @Id
        @GeneratedValue(strategy = GenerationType.AUTO)
        private Long id;
        @OneToOne(mappedBy="cow")
        private Bar bar;
        //Getters, setters and toString.
    }Thanks for the feedback.
    Vincent

    You may need to check the Job Services logs which will be named as "server_messages_JobService.log"
    Also you could check if it runs fine as a BQY in web client or HTML mode. If there are any error in connection or in the parameters then the Job can fail.
    The email cycle failure can also be a cause.

  • Linux net command showing incorrect output if executing from java.

    I am trying to execute a net rpc registry on red hat linux box from java using Runtime. I have stored the command in a String variable. When the execute the command from java it throws an error saying that "Invalid registry path" however the same command works fine when executed from linux command terminal.
    CODE
    import java.io.*;
    public class ChkBpower {
         public static void main(String[] args) {
         checkBpower(128);
         public static void checkBpower (int TTL){
              int ttl = TTL;
              System.out.println("Hello3");
              String ip = "20.198.36.28";
              String[] reg={"\\","HKLM","\\","SOFTWARE","\\","Marimba"};
              System.out.println(reg);
              String credentials ="bpwrlab/Administrator%Confmgmt1";//"asiapac/gjagdeosingh%M@nu2281";
              String chkBcmd = "net rpc registry enumerate '\\HKLM\\SOFTWARE\\Marimba' -I " + ip + " -U " + credentials ;
              String chkBstatus = "net rpc service status cscmarimba -I " + ip + " -U " + credentials + "| grep -b 'service' | awk '{print $4}'";
              String startBpower = "net rpc service start cscmarimba -I " + ip + " -U " + credentials;
              if (ttl>=100 && ttl<=128){
              System.out.println(ttl);     
              System.out.println(chkBcmd);
              try {
                   Runtime r = Runtime.getRuntime();
                   Process p = r.exec(chkBcmd);
                   InputStream stderr = p.getErrorStream();
         InputStreamReader isr = new InputStreamReader(stderr);
         BufferedReader br = new BufferedReader(isr);
         String line = null;
         System.out.println("<ERROR>");
         System.out.println(br.readLine());
         while ( (line = br.readLine()) != null)
         System.out.println(line);
              System.out.println("</ERROR>");
              int exitVal = p.waitFor();
              System.out.println("Process exitValue: " + exitVal);
              catch (Throwable t)
         t.printStackTrace();
    }

    Use exec(String[]), not exec(String), whenever you have argue,nets. Saves all that mucking around and second-guessing and escaping ...

  • Values are aggregated at query end hence key fig gives incorrect output

    Hi expert,
    Support team have faced the issue at query level. The system is migrated from 3.5 to 7.0.
    We have 3 key fig as A1, A2, A3 and it contains zero as well as non-zero values.
    We need to ignore zero values and only non-zero values should be considered to calculate the KF.
    Please suggest.
    Thanks in advance.

    Amar,
    It's ok supress and delete the records which have zero KF values.
    there is no purpose in having them in the cube if you don't use them for the reporting (cumulation of the all the records)
    as far the facts are empty in the report, neither they help in decision making nor  they  add any significance.
    So why just have the data for characteristics which doesn't have facts (key figure values). use Zero elimination technique as i said.
    it will also reduce the datavolume in the cube.
    Regards,
    Sudheer.

  • Incorrect output by SDO_GEOM.SDO_DISTANCE

    I am trying to calculate the difference of two points on earth, but is not giving me correct result
    SELECT SDO_GEOM.SDO_DISTANCE(
    SDO_GEOMETRY(2001,8307,SDO_POINT_TYPE(28.66667,77.43333,NULL),NULL,NULL),
    SDO_GEOMETRY(2001,8307,SDO_POINT_TYPE(30.45,77.61667,NULL),NULL,NULL),
    0.0001,'unit=km') AS DISTANCE_BETWEEN_POINTS
    FROM DUALI tested it against http://www.movable-type.co.uk/scripts/latlong.html
    Query is returning me 47.6389006
    but the actual distance is: 199.1
    Please help me out.

    I also tested it by
    sqrt(x * x + y * y) * 1.609344 // for KM
    where x = 69.1 * (lat2 - lat1) and y = 53.0 * (lon2 - lon1)
    There is still a lot of difference.
    SQL> SQL> SQL> SELECT SDO_GEOM.SDO_DISTANCE(
    SDO_GEOMETRY(2001,8307,SDO_POINT_TYPE(28.66667,77.43333,NULL),NULL,NULL),
    SDO_GEOMETRY(2001,8307,SDO_POINT_TYPE(30.45,77.61667,NULL),NULL,NULL),
    0.0001,'unit=km') AS DISTANCE_BETWEEN_POINTS
    FROM DUAL  2    3    4    5  ;
    DISTANCE_BETWEEN_POINTS
                 47.6389006
    SQL> SELECT
    sqrt(69.1 * (30.45 - 28.66667) * 69.1 * (30.45 - 28.66667) + 53.0 * (77.61667 - 77.43333) * 53.0 * (77.61667 - 77.43333))  * 1.609344
    FROM DUAL  2    3  ;
    SQRT(69.1*(30.45-28.66667)*69.1*(30.45-28.66667)+53.0*(77.61667-77.43333)*53.0*(
                                                                          198.932013Please help....

  • Incorrect output for Min,Max, & Avg loops

    This code is mostly working to compute the average and to get the maximum but it is taking 12 inputs and not 10 as required. I'm a bit unsure how to implement the Min into this as well. I would appreciate any guidance that can be provided on this as I'm stumped. Thank you.
    import java.util.Scanner;
    public class Main {
        public static void main(String[] args) {
            int maxGrade = 0;
            int minGrade = 0;
           int total = 0;
           int testScores = 0;
           int grade = 0;       
            Scanner scan = new Scanner( System.in );
    System.out.println ( "Please enter ten exam scores");
             for ( int i =1; i <= 10; i++ )
        testScores = scan.nextInt();
        total += testScores;
    maxGrade = scan.nextInt();
    grade = scan.nextInt();
    if ( grade > maxGrade )
        maxGrade = grade;
    System.out.println( "The average score is: " + ((double) (total) / 10));
    System.out.println( "The Maximum score is: " + maxGrade);
    }

    Suggestions:
    1) have your for loop go from 0 to i < 10. Since arrays are zero-based, this habit will help you in the future when you loop through arrays.
    2) Your code indentation is atrocious making it hard for us (and for you!) to understand your code. Fix it and you'll make your future coding a lot easier.
    3) Get the input only once in the for loop, and not outside and after the for loop as you are trying to to do here:
          maxGrade = scan.nextInt();
          grade = scan.nextInt();It makes no sense. Instead set the maxGrade and the minGrade both with the testScores entered the first time the for loop loops (when i equals 1 in your current code, but when i is 0 if you follow my recommendations). A simple if block -- if (i == 0) should work for this.
    4) Inside the for loop and after testScores is entered, check if it is > max or < min and change max and min accordingly. Again this must be done inside of the loop. In pseudo-code
    for i goes from 0 to less than 10:
       current score = get user input
       if i is 0
          set maximum score to current score
          set minimum score to current score
       end if
       if current score is less than minimum score
          change minimum score to current score
       end if
       if current score is greater than maximum score
          change maximum score to current score
       end if
    end for loopLuck!
    Edited by: Encephalopathic on Jul 10, 2010 7:43 AM

  • Output Issue in Delivery

    Hello Experts,
    I have assigned the Output type RD00  to Replishnment Delivery,Since i require the output for STO for cross company i have assigned the output type RD00 in the procedure but i am facing the below error.
    Output could not be issued
    Message no. VL086
    Diagnosis
    An error occurred in the message processing program.
    Procedure
    Contact your system administrator.
    What could be the issue
    Thanks
    Shri..

    The issue could be possibly because of incorrect Output determination procedure. Pls check again the output determination customization.
    Also put a breakpoint in the Entry form routine of the driver program and see if it actually calls the programs. If it calls the program debug more to see if there is any issue within the driver program which could be hindering the output.
    Thanks
    Arjun

Maybe you are looking for

  • Email search no longer works

    With the latest change of the email layout, besides being more cumbersome to use, searching doesn't work anymore. It does not retrieve all the instances of the search term. I tried the from name and the actual from email address and only 1 instance w

  • Screen dimming before sleep

    No matter how many times I check and uncheck the option to "reduce brightness before sleep" I find that a few days later the screen starts dimming again. When I go to see if the option is unchecked like it should be, it always is!! Anyone else having

  • Successful Windows XP Installation

    It's been a while since I installed XP on my iMac, but I thought I would describe my experience with installing Windows XP on my iMac. This information might be useful to others who are considering installing WinXP on their iMac. Back in November 07

  • HOW TO  CUSTOMIZE  MERGE  STATEMENT

    Hi Everybody, I want to create an interface that works as the sql statement shown below. How can i do this? merge into gecici.xx1 a using ( select * from gecici.xx2 ) b on ( a.verde_kod=b.verde_kod) when matched then update set A.ilk_kay_tar= ( case

  • "Not applicable (list geometry)" in a Bex Condition

    Hi All: I have defined a condition in a query in Bex. Basically I have formula that calculates the difference between two key figures. The condition is very simple: When this difference is positive (> 0), then the record should be listed. I execute t