Why AlivePDF generate double header?

I'm trying to generate a simple table with alivePDF. This is my code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                                        xmlns:mh="mh.components.*"
                                        layout="absolute" width="500" height="500">
          <mx:Script>
                    <![CDATA[
                              import mx.collections.ArrayCollection;
                              import org.alivepdf.colors.RGBColor;
                              import org.alivepdf.display.Display;
                              import org.alivepdf.drawing.Caps;
                              import org.alivepdf.fonts.FontFamily;
                              import org.alivepdf.fonts.Style;
                              import org.alivepdf.grid.Grid;
                              import org.alivepdf.images.ImageFormat;
                              import org.alivepdf.layout.Orientation;
                              import org.alivepdf.layout.Resize;
                              import org.alivepdf.layout.Size;
                              import org.alivepdf.layout.Unit;
                              import org.alivepdf.pages.Page;
                              import org.alivepdf.pdf.PDF;
                              import org.alivepdf.saving.Method;
                              import org.alivepdf.visibility.Visibility;
                              import org.alivepdf.grid.*;
                              import mx.utils.ObjectUtil;
                              private var myPDF:PDF;
protected function savePDF(e:MouseEvent):void
                                        var myPDF:PDF = new PDF ( Orientation.PORTRAIT, Unit.MM);
                                        myPDF.setDisplayMode(Display.FULL_PAGE);
                                        myPDF.addPage();
                                        var dp:ArrayCollection = new ArrayCollection();
                                        dp.addItem( { firstName : "Bob", lastName : "Groove", city : "Paris" } );
                                        dp.addItem( { firstName : "Bob", lastName : "Wise", city : "Paris" } );
                                        dp.addItem( { firstName : "Bob", lastName : "Wise", city : "Paris" } );
                                        dp.addItem( { firstName : "Bob", lastName : "Wise", city : "Paris" } );
                                        myPDF.textStyle ( new RGBColor ( 0x0EEFF0 ) );
                                        trace(ObjectUtil.toString(dp));
                                        var grid:Grid = new Grid ( dp.toArray(), 200, 100, new RGBColor (0x000000),null,false,null,null,0,12,6,"0j");
                                        myPDF.addGrid( grid, 5, 5);
                                        myPDF.save( Method.REMOTE, "coldfusion/pdf.cfm", "inline", "test.pdf" );
                    ]]>
          </mx:Script>
          <mx:VBox width="100%" height="100%">
                    <mx:HBox width="100%" backgroundColor="#FFFFFF">
                              <mx:Spacer width="100%"/>
                              <mx:Button horizontalCenter="0" label="SavePDF" height="22"  click="savePDF(event)"  id="savePDFBtn" toolTip="SAVE TO PDF"/>
                    </mx:HBox>
          </mx:VBox>
</mx:Application>
The problem is that this generate a double header and I don't know why. You can see a live example here: http://docs.google.com/viewer?url=http://prestitiinpdap.biz/pdf/myPDF.pdf
Could you help me solve this error?
Thanks

Many thanks, but the support seems discontinued also in the forum.
I got an answers on http://stackoverflow.com/questions/14799768/why-alivepdf-generate-double-table-header

Similar Messages

  • Unable to resize the location toolbar. Double headed error appears but doesn't work. Toolbar is minimum length, no text visible.

    The location toolbar is very short and not expandable using the double headed arrow bars.

    I did some more accurate tests with gvfs-mtp and with jmtpfs. MTP with the phone works very slow and I see some file as corrupts, but it works; but tablet is not recognized by libmtp (DAMN! I used to move file in and out of it before fresh install! WHY?!) and neither by libmtp-git so i can't do anything.
    Device 0 (VID=054c and PID=06ac) is UNKNOWN.
    Please report this VID/PID and the device model to the libmtp development team
    Last edited by Mons1990 (2014-03-09 11:39:11)

  • Why do we need header datasource?

    I just got confused?  Why do we need header data table if line items datasource contains all the field of header datasource?   Another thing is that should we create different ODS'  for each?

    Hi George..
    Choosing an header or a line item data source depends on the reporting requirements which is the very initial phase in any implementation project.. There, if the requirement is to develop a report at the header level (which will be summarized eg: Reports based on Sales Organization or for a particular Sold to party) then you go in for a Header level data source... but if the requirement is such that the report will have to display each and every line item (detailed eg: all the materials ordered during a sale order creation), then you go in for a line item level datasource...
    Hope it clears your doubt..
    Regards
    Manick
    PS: Assign points if useful..

  • Why should we load header data first and then we load item level data?

    Hi BW guru`s,
    I have small confusion about the data loading.
    Why should we load header data first and then we load item level data?
    Is there any particular reason?
    Scenario: 1st I have uploaded 2LIS_11_VAHDR sales document header data from R/3 to BW by using LO-Cockpit extraction. Then I loaded 2LIS_11_VAITM.This is the norma procedure which we use to follow.
    I have a question. If I load 2LIS_11_VAITM data 1st from R/3 to BW and then I will load 2LIS_11_VAHDR by using LO-Cockpit extraction. what will happen?
    Regards,
    Venkat
    Edited by: VENKAT BOORUGADDA on Aug 12, 2008 11:51 AM

    There is no difference in doing it the other way.
    The load sequence will come into play only during activation where if you map the same fields from the two datasources, you might want to have the previous value overwritten by data from the next datasource.
    That is when you should care about loading one datasource before the other.
    To your question it is not arule that header data should come first.

  • Why when I double click an image in "pictures" does it always open into Elements 10 ?

    Why when I double click an image in "pictures" does it always open into Elements 10?

      Only if you set Elements as the default application e.g. for opening all jpeg files.
    You can make file associations via the control panel.
     

  • Why was i double billed?

    why was i double billed by adobe?  how can I get a refund for one of those billings which was erronious applied to me?

    HI morebullagain,
    I'm sorry that happened. The easiest way for you to get your refund is by chatting with Adobe Customer Support: click the Chat link at https://www.acrobat.com/misc/en/contact-support.html: Chat is available from 5am – 7pm PST.
    Best,
    Sara

  • EWT - disabling generated dynpro header

    Hi!
    We are using EWTs which are migrated from the external to the internal ITS (WAS 7.00).
    Now we have to disable the generated dynpro header (menu bar, titlebar, SAP-logo).
    Does anybody knows how this is posibile. We are using no html-templates, the service-parameter "~GENERATEDYNPRO=1".
    Thanks for any hints!
    Peter

    Hi Peter,
    I'm afraid that there is no supported way (e.g. service parameter) to disable the header.
    Best regards,
    Sabine

  • Double Header in ALV Report

    Hi,
    Is there any way of putting double headers to an ALV report?.
    Example:
              JANUARY
    WEEK1     WEEK2     WEEK3     WEEK4
    Rgds,
    Jose

    Hi Jose,
    ALV Header
    http://abap4.tripod.com/download/alvstub.txt
    http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_endlist.htm
    If using OOPs approach Refer Sample code:
    data: o_html             TYPE REF TO cl_dd_document.
    CLASS lcl_event_receiver IMPLEMENTATION.
    *-- Top of Page
      METHOD handle_print_top_of_page.
      ENDMETHOD.                    "handle_print_top_of_page
      METHOD handle_top_of_page.
      ENDMETHOD.                    "handle_top_of_page
    ENDCLASS.               "lcl_event_receiver IMPLEMENTATION
    DATA: lws_text  TYPE sdydo_text_element.
      IF cl_gui_alv_grid=>offline( ) IS INITIAL.
    *-- Object for HTML top container
        CREATE OBJECT o_html
            EXPORTING style            = 'ALV_GRID'
                      background_color = 35.
    *-- Top of Page
        CALL METHOD o_alvgrid->list_processing_events
          EXPORTING
            i_event_name = 'TOP_OF_PAGE'
            i_dyndoc_id  = o_html.
    *-- Total Record Text
        CALL METHOD o_html->add_text
          EXPORTING
            text         = text-012
            sap_emphasis = text-015.
        CALL METHOD o_html->add_gap
          EXPORTING
            width = 8.
    **-- Total record Value
        lws_text = cnt_total.
        CALL METHOD o_html->add_text
          EXPORTING
            text         = lws_text
            sap_emphasis = text-015.
        CLEAR  lws_text.
        CALL METHOD o_html->new_line
          EXPORTING
            repeat = 1.
    Reward Points if this Helps.
    Manish

  • I want to ask why my invoice lost header title..in my mac i can see my invoice title..but when i open file lost my office name and address on number

    my invoice got my company name and address..when i see in my macbook can see the title..but when i open file to edit lost my title.many customer ask me why..
    i just know lost title.i did't change other setting in my number..hope can gv me answer..last week i use still ok..now lost it.

    Possible problem: You designed the invoice using Numbers '09 but you are now editing it in Numbers 3.  The company name and address are in a page header or footer, something Numbers 3 does not have so it deletes it from the document.
    Possible solution: Return to using Numbers '09.  It should still be in the Applications forlder on your computer.
    Another Possible Solution: Use a text box for your company name and address.
    If you are trying to use Numbers 3, you might want to see if your invoice will print correctly (with or without the company name and address)

  • APEX generating double quotes in queries

    When APEX generates a query, it puts double quotes around the database objects.
    For instance when it uploads Oracle forms xml or when you are making a query in the query builder of the SQL workshop.
    Personally I don't like it. Because of the case sensitivity.
    Maybe I am old school, but I prefer the database object names being stored in uppercase in the database.
    Does anyone know if there is an APEX setting (APEX default, Application Builder default, Developer preference, etc...) that would disable the adding of the double quotes?
    If not, would this be a good suggestion as an improvement?
    Regards,
    Mathieu

    Hi
    I agree with this wholeheartedly. I can think of a few instances where it could be handy but, in general, I don't like it at all.
    I wouldn't suggest that the default is changed, merely that we have the option to change it (I'm not aware of a way to do this).
    Cheers
    Ben

  • Why not generating adf bc projects and components from offline database

    I imported offline database objects from my production database that is big. I would like designing some business components without necessarily the database running and be connected.
    Is it a reason why an adf bc project may necessarily connect to an on line database ?
    Why it is not possible to generate adf bc components from off line database objects ?

    The ADF BC design time has always required a database connection, to be able to test the validity of expert-mode SQL statement for one reason, but not the only one. We have not lifted that requirement in the 11g release.
    I filed ER# 6056701 to track your request. Thanks.

  • Why does my group header keep repeating?

    Hi,
    I can't figure this out.  My group header appears on the first page as it should.  It doesn't appear on the second page.  Then it appears on the third page and all subsequent pages for that group.
    In my example group #1 is the invoiceID.  For each invoiceID, there would be some header information that should display on the first page of that invoice.  Then come the details. 
    For some reason, the invoice header information keeps reappearing on every page of that invoice as the details continue along the bottom.
    I have no formulas set up for my group header.  The group itself is the same.  There is enough room for the group header on the first page, and it doesn't seem to matter what boxes I check and uncheck; I get the same result.  Any ideas on what might have been done to cause this?
    Thanks
    Edited by: plynch on Feb 21, 2012 5:04 PM

    Hi,
    So, the Group Header (for the same group) appears on every page except for the 2nd page. Which means you've got the 'Repeat Group Header' on each page' option ON under Group Options.
    Why it doesn't come on the 2nd page? Could you check if you've got a conditional suppression formula on the Group Header. Go to Section Expert > Group Header > check if you have formula under 'Suppress'.
    -Abhilash

  • Every inlineframe generates HTML, head and body tag - how to remove it

    Hi,
    I am using inlineframe for adding HTML content. For every inlineframe, HTML, head and body tag is generated.
    How to get rid out of those HTML, head and body tags?
    please suggest
    Edited by: user10302920 on Feb 2, 2011 3:59 AM

    Hi,
    not sure the component is generating this. Must come from the HTML source you reference. If however it is the inline frame then this is not configurable
    Frank

  • Generating double impulse signal

    Hello everybody,
     i'm about to
    generate a function which acts as a double pusle signal in which
    changing the time  of each interval is possible
      i can see the signal and the changes of the time interval on the wavediagram of the frontpanel
    but the problem that i don't
    get the expected signal at the digital output line17 from the DAQmx
    actually there is no output at all from line17  however there is no error message in the code when i run the simulation
    i chose another output as an alternative but  still there is no
    output signal too  however i checked these outputs with another
    code
     to test them if they work or not and the answer was positive also
    with the testpanel  they  react with the changes which means
     that configurations of the DAQmx is right
    in my code i changed the rate many times to be able to see signal on
    the oscilliscope not only in µs but also in different dimentions of time
      but still there is no output
    all of this mean only i have something in the code which i don't know is the reason of  not getting the output signal
    i
    send my code as an attachement may be you can  try it 
    and  tell me  where is  the reason  for not getting
    this siganl as an output signal ?????????????
    i have labview version 7.1
    my device is NI-PXI 6259, it has 32 bit port
    thank you very much
    Satrinay
    Attachments:
    Correlated_digital_output1.vi ‏143 KB

    Hello,
    I build a vi which creates a twinpuls. If you look into the SubVI Twinpulse_train_generate.vi you see how to generate such a twinpuls signal.
    The structure of the puls is:
    low ticks 1 --> high ticks 1 --> low ticks 2 --> high ticks 2.
    The Puls width is: (1/rate)*(high ticks 1)
    In the Zip file are:
    1. Twinpulse_train.vi
    2. _Utility.llb (Get Terminal Name with Device Präfix and DWDT Boolean Array to Digital)
    3. Twinpulse_train_generate.vi
    To start it use the Twinpulse_train.vi (build with LabVIEW 7.1)
    regards
    Fabian Kinzelmann (NI Germany)
    Attachments:
    Twinpulse.zip ‏89 KB

  • Why is text double underlined when I use dictation?

    Does anyone know why my text appears with a double underline when using Dictation enhanced?
    Thank you.

    It means the words were unclear. Click the underlined text for alternative interpretations.

Maybe you are looking for

  • Browse and power search crashes itunes

    I do not understand. I am using itunes 5 (I don't want to upgrade to 6) and everytime I click "Browse" or "power search" in the itunes store window, itunes crashes. I tried uninstalling Quicktime, and itunes, then installing quicktime standalone, reb

  • Doing a software update, error occurs with message.

    The message is as follows:- "The following install step failed: run preupgrade script for AppleMobileDeviceSupport. Contact the software manufacturer for assistance." Can anyone offer advice on how I can overcome this problem.

  • Use DSAdd Group for adding several groups at the same time

    Good Afternoon!, As is written in my book: "By leaving the DN parameter empty, at which point you can type the DNs one at a time at the keyboard console of the command prompt. Press Enter after each DN. After the last DN, press Ctrl+Z, and then press

  • Printing on A3 format

    Hello. I need to allow SAP report to be printed on A3 paper. How to configure through tcode: SPAD. May I know the steps required?

  • Problem changing displayed component smoothly

    I have the following problem that I cannot resolve. Background : I have two display components which my app must alternate between showing. One is a JScrollPane holding a JTextPane, the other a canvas. The canvas in turn holds an animation. In my fir