Printdatagrid variableRowHeight="true" and multipage

Hi All,
I've been searching for a fix or workaround to what seems to be a long time bug with printing.
When my PrintDataGrid is set to have variableRowHeight="true" wordWrap="true" and there is a need for multipage, the last row is cut off.
This basically means that I cannot print properly a DG that contains text wrapping in certain rows.
I've seen posts as far back as 2007 about this, I would have assumed that this would of been fixed, but it seems that the problem is still lurking.
Anyone have a solution for this?
Thank-you in advance, I appreciate it.

Hi there,
I found this bug report with some workarounds that don't really always work:
https://bugs.adobe.com/jira/browse/SDK-14174
thank-you!

Similar Messages

  • Need for a Datagrid with variableRowHeight="true" and custom Item Renderer to display exact rows

    Hi again, developers:
    I'm in a search of a datagrid  with certain characteristics:
         - variableRowHeight = "true"
         - only one column
         - each row must have a custom item renderer with possibly different heights, and a fixed width
         - the datagrid must show always every item in the data provider with no vertical scroll bars, what means that the datagrid height must have always the exact height sum of all the item renderers it is displaying.
         - and no extra empty rows must appear in the last positions of the datagrid
    The last two requirements are something difficult to achieve... for some reason, empty rows appear at the last positions of the datagrid. I post what i've managed to get:
    <mx:Script>
         <![CDATA[
         private function resize():void
                    if (dg.dataProvider)
                        var h:Number = dg.measureHeightOfItems( -1, dg.dataProvider.length);
                        dg.height = h;
         ]]>
    </mx:Script>
    <mx:DataGrid id="dg" width="530" horizontalCenter="0" verticalScrollPolicy="off"
            dataProvider="{dp}"
            wordWrap="true" variableRowHeight="true" showHeaders="false" dataChange="resize()" height="{dg.measureHeightOfItems(-1,dg.dataProvider.length)}" click="Alert.show(dg.rowCount.toString());">
            <mx:columns>
                <mx:DataGridColumn headerText="ID" width="50">
                    <mx:itemRenderer>
                        <mx:Component>
                            <mx:TextArea height="{Math.random()*100}" wordWrap="true" backgroundColor="{Math.random() * 16777216}" paddingTop="0" paddingBottom="0"/>
                        </mx:Component>
                    </mx:itemRenderer>
                </mx:DataGridColumn>
            </mx:columns>
        </mx:DataGrid>

    Thanks Harui, but it doesn't help. If the border is set it will help, but the very big problem is the empty rows that appear at the end of the datagrid... I can't find a way of measuring correctly the height of the itemRenderers!
    I'll update this thread if I manage to do it.

  • Spark Datagrid - Show all rows using requestedRowCount & variableRowHeight=true

    I have a Spark Datagrid that has variableRowHeight=true. I also have the requestedRowCount set to the length of the dataProvider. So, in theory the rows shown should be the same number in the dataprovider(Arraycollection). However, the problem is that due to having variableRowHeight=true and some rows being multiline,  in some instances, all of the rows are not getting shown. 
    Suggestions on how I can fix this issue?
    Thanks, in advance.

    Does anyone have a solution for this? I have exactly the same problem.
    Datagrid with requestedRowCount="-1" and variableRowHeight="true"
    No issue with autoexpanding the grid - and no issue with autoexpanding the row height with word-wrapped text.
    But when combined - a grid that has 5 elements in dataprovider will only show 3 - if one row has been expanded to handle the word-wrapped data.
    Is it possible to count the rowheights and override the measure function with minheight or measuredminheight?
    Or do I need to call something other than invalidateDisplayList after dataprovider changes?
    Any suggestions or sample code would be welcomed.

  • DataGrid when set variableRowHeight=true, the Image in the itemRenderer can't show up

    http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Live Docs_Book_Parts&file=cellrenderer_072_28.html
    the above is the flex example. I did my code almost same as
    this example. But I do different way in renderer code.
    The example:
    <?xml version="1.0"?>
    <mx:HBox xmlns:mx="
    http://www.adobe.com/2006/mxml"
    horizontalAlign="center" >
    <mx:Image id="albumImage" height="175"
    source="{data.Cover}"/>
    </mx:HBox>
    My code:
    <?xml version="1.0"?>
    <mx:VBox xmlns:mx="
    http://www.adobe.com/2006/mxml"
    dataChange="init();">
    <mx:Script>
    <![CDATA[
    public function init():void{
    releasedBox.removeAllChildren();
    if(data.releasedImage){
    var hbox:HBox = new HBox();
    var img:Image = new Image();
    var lbl:Label = new Label();
    img..source = data.Image;
    lbl.text = data.Revision;
    hbox.addChild(img);
    hbox.addChild(lbl);
    releasedBox.addChild(hbox);
    ]]>
    </mx:Script>
    <mx:HBox id="releasedBox">
    </mx:HBox>
    </mx:VBox>
    The different is I add my image in AS code but not in mxml
    code. And the problem is when I set variableRowHeight=true, the
    datagrid can display my label, but image can’t display. And
    when mouse over, the data line is blinking. When you click one
    line, there can show the image for 1 sec.
    If I set variableRowHeight=false. It works fine.
    Anyone knows what’s this problem? Thanks

    Check in the Store menu at the top of your iTunes application on the computer rather than visiting the iTunes Store..

  • Datagrid scrolls unnecessarily when variableRowHeight=true

    I have a custom component that includes a DataGrid component.  I want to set variableRowHeight to true to avoid truncating data within a cell.  When I do, the dataGrid shows only so many rows then the user must scroll to see the rest even though there is room in the container the dataGrid could use.  It appears that the measured height of the dataGrid does not include the extra height required by the rows of variable height causing the scrollbars to appear unnecessarily.
    I am doing this with the mxml shown below
    I am using a custom skin to remove the column header
    I am not using an itemRenderer and can't seem to get that to work
    <s:DataGrid  id="contentDataGrid" dataProvider="{transposedDP}" skinClass="widgets.Query.QueryDGHeaderSkin" resizableColumns="false" variableRowHeight="true" width="100%"> <s:columns> <s:ArrayList>
    <s:GridColumn dataField="Value"/> </s:ArrayList> </s:columns> </s:DataGrid> <s:GridColumn dataField="Property"/>

    This is a common problem.  Word-wrapping text can be in any dimension so you usually need to set the width of the text widgets accurately otherwise they will report some other height.

  • VariableRowHeight="true" not working in advanced datagird

    I have a advanced datagird that uses custom icons in grouped collection level 1. However all the other rows in level to have the same row height as the one with the largeish icon even though I have variableRowHeight="true"
    Any help good people?

    Did you use some container to arrange these images? Maybe container isn't increasing with a image contained inside it, then the row will think that all are accommodated.  Put your container renderer height and width to 100%.

  • I was told by Borders customer service that I have to add them as a "trusted site" to avoid an error message when sttempting to use the shopping cart. Is this true, and how do I do it?

    When I go to "checkout" on Borders.com, I get an error message. The message is as follows:
    [ServletException in:/ConsumerDirectStorefrontAssetStore/ShoppingArea/ShopcartSection/body.jsp] null'
    I have tried refreshing, clearing cookies, and everything I can think of. Customer service told me it had to do with security settings, and that I had to add it to my trusted sites. I have never had to do this before, so I'm jsut wondering if this was true, and how to do it.

    Are they multi-function units? Do they include a scanner? Most people call these multi-function copiers, not printers. Printers don't have a scanner in them.
    Give us some specifics as to the brands and models you have tried.

  • Hi...lags animations in games and messages and album pic..when disable assistive touch,it's true and fix..please release update to fix this in ios 7.1..i need assistive touch and fast game and animation booth!!

    Hi...lags animations in games and messages and album pic..when disable assistive touch,it's true and fix..please release update to fix this in ios 7.1..i need assistive touch and fast game and animation booth!!

    No Apple here, user to user forum.
    I will not be releasing any version of iOS ever.

  • I have an ipod touch 4g. I want to use our internet hdtv as a monitor so others can see my screen in 40". Sony guy said that can do it wirelessly through the internet router instead of Hdmi without the need for an apple tv.Is this true and how do I do it?

    As I said above, I want to view my iPod screen on our new 40" Sony Internet full HD TV.
    I know that you can do this via HDMI but a Sony guy said that you should be able to do this wirelessly by going through the router. Is this true and can I do this without the need for the Apple TV?
    We are soon going to get the airport extreme, so will it work with that?

    1. Is it a smart TV?
    2. If so.... Is the TV connected to the Internet?
    3. If it is.... Check if your iPod and your TV share the same IP address (Wi-Fi network)
    4. If they do.... Then you should go to wherever your "Other Media" tab is.
    5. After that.... Search for you iPod. Because it is connected to the same network, it should recognize the device they same way AirPrint does.
    6. If you happen to see this fail, then try this method:
    1. Do you have a Bluetooth-enabled computer/laptop?
    2. If so.... Enable the bluetooth on the computer/laptop as well as your iPod.
    3. After that.... Your iPod should be actively searching and it should find the computer/laptop.
    4. If it did.... Transfer the file onto Windows/Mac (preferably Mac) and find the program to open the file.
    5. After doing so.... Connect your computer/laptop to the TV via HDMI Output Cable.
    6. Now it should work!

  • My favicons are not showing up for all my imported bookmarks as well as certain current bookmarks and when I open the about:config it says "browser.chrome.favicons;false". Shouldn't this be true and how to I change it?

    I had to rebuild my computer and when I imported all of my bookmarks they had no favicons. I started getting some of the favicons when I would go to the websight it would reconnect, but now I can't seem to see almost any of them. I did a search on Google and one tech site suggested the about:config file and that the "browser.chrome.favicons;false" should be set to true. But when I toggle it to true and restart Firefox it is once more set to false. I know it doesn't seem like much, but it is really annoying not having those favicons.
    Help me Obi Wan Firefox you are my only hope.

    The browser.chrome.favicons preference should be set to true, as it is not retaining the value when you restart Firefox, see the [[Preferences are not saved]] article for possible causes.

  • I have a macbook pro and aphotosmartD110 wireless printer.  I was told that if I install the printer software on my computer, it will no longer print wirelessly.  Is that true and how do I scan wirelessly without loading in the software?

    I have a macbook pro and a photosmart D110 printer.  I was told that if I load the software for the printer onto my mac that it will no longer print wierlessly.  Is that true and how can I scan wirelessly without loading the software? Also, can I just connect my mac to the printer with a cable and scan or do I need that software loaded onto the mac?  Thanks for all help!

    If you are running Lion then all drivers are distributed through Software Update. You do not need to install anything, other than to install the printer in System Preferences > Print & Scan. If you already added the printer while it was connected using USB, you might want to delete it and set it up again wirelessly to avoid confusion. Or, give them two distinct names e.g. "Photosmart D110 (USB)" and "Photosmart D110 (wireless)".
    All scanning functions are now performed using Preview, but you can also access the scanner through the same Print & Scan preference pane, or with Image Capture.
    This HP document may help explain how driver software is distributed now:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03079365&cc=us&dlc=en&lc=en &product=4144493&tmp_track_link=ot_search#N108

  • Problem with return true and if statement

    I'm making a
    ship shooter
    game and I have a problem with the collision detection for the
    corners of the stage. When you hold down two of the arrows to move
    the ship into the corners of the screen, the ship will go past it.
    The function bellow is what I'm using to detect this collision. The
    reason I'm using a function is because it's used for the ship and
    for all the balls from the cannons (as shown in the last two lines
    of the attached code). This is the reason I need the return true,
    so the if statement can be evaluated to true and then unload the
    movieclip of the cannon ball. When I remove the return true, the
    collision works fine, but obviously my cannon balls all get stuck
    on the edges.
    Any ideas?

    Well the function is called every frame, for the ship and for
    every cannon ball that's on the screen. So it could be called about
    4 times or so per frame. The problem is that ship goes through the
    corners of the stage (btw, the green background is the stage area)
    when you go in a diagonal direction.
    Just curious...what's the unnecessary code you're talking
    about?

  • HT1386 I tried syncing my iPad to my computer but it says it's synced with another computer. This is not true and I verified in iTunes preferences that my ipad's name appears in the devises list. Can anyone help?

    I tried synI tried syncing my iPad to my computer but it says it's synced with another computer. This is not true and I verified in iTunes preferences that my ipad's name appears in the devises list. Can anyone help?cing

    See if this is what you are experiencing ad try the solution in this article if you are.
    http://itsmichaelw.com/tutorials/this-computer-has-been-previously-synced-with-a n-iphone-or-another-ios-device/

  • Using separate_frame=true and trying to close the applet window after...

    We are using separate_frame=true and trying to close the applet window (the one with the large gray box) after using the following post-form trigger:
    if :system.last_form = 0 then     
         message('Please wait while Forms closes - '||:system.last_form);     
         web.show_document('/forms/html/close.htm','_self');     
    end if;
    This works fine for the first form we open, but if that same form using Open_Form to open a child form we have a problem. When the child form is closed the user is returned to the parent calling form (which is expected), but then when the parent form is closed the separate applet window fails to close. Any suggestions?

    I guess you mis-interpreted the value of :SYSTEM.LAST_FORM. From the online-help:
    SYSTEM.LAST_FORM represents the form document ID of the previous form in a multi-form application, where multiple forms have been invoked using OPEN_FORM.So LAST_FORM shows always the ID of the last activated form, and this will never be 0 if you issued one OPEN_FORM in your application.

  • Bug Report: enum metadata containing 'true' and 'false' string values not displaying unless "goosed"

    I have metadata whose value is 'true' but the corresponding enum title is not being displayed. If I set it explicitly to 'true' it will be displayed even though the value is the same as it was.
    Likewise for 'false'.
    I do not have this problem with enums that have any other string values i.e. 'yes' and 'no' function properly, but 'true' and 'false' do not.
    Rob

    Due to better understanding on my part, and the fixes in Beta 2.2, the
    issues raised in this thread are put to rest.
    Abe White wrote:
    >
    We'll investigate further. Stay tuned...
    "David Ezzio" <[email protected]> wrote in message
    news:[email protected]..
    Abe,
    Actually, it doesn't make sense. The first iteration shows
    jdoPostLoad is called just prior to using the fields of Widget and Box.
    After the commit, the instances are not cleared. So far, so good.
    In the second iteration, we see that jdoPreClear is called, but
    jdoPostLoad is not called. Yet the values are there for use during the
    call to Widget.toString() and Box.toString() within the iteration. How
    did that happen?
    On the third iteration, now the value of name is null, but last we
    looked it was available in the second iteration. Other than that, I
    agree that the third iteration looks ok, since it is being cleared and
    loaded prior to use. But in the jdoPreClear, the values should be there
    since the values were used in the previous iteration and are not cleared
    at transaction commit due to retainValues == true.
    David
    Abe White wrote:
    David --
    I believe the behavior you are seeing to be correct. Section 5.6.1 of
    the
    JDO spec outlines the behavior of persistent-nontransactional instancesused
    with data store transactions. As you can see, persistentnon-transactional
    instances are cleared when they enter a transaction; thus the calls to
    jdoPreClear. When the default fetch group is loaded again (like whenyou
    access the name of the widget) a call to jdoPostLoad is made.
    You are seeing the name of one instance as 'null' in the third iterationof
    your loop because the instance has been cleared in the second iteration,and
    the jdoPreClear method is not modified by the enhancer (see section10.3).
    Make sense?

Maybe you are looking for