Datagrid getting truncated during printing

Hi All,
I have a panel which contains the following items :-
1. A Header Label
2. A time slider
3. A combo box
4. A view stack which has a chart at index 0 and a data grid at index 1
5. Some buttons
For the datagrid(which is inside a VBox,whose height is 100% and verticalScrollPolicy is "on"), I have set the following attributes:-
1.variableRowHeight = true
2.rowCount = "{gridDataProvider.length}"
3.verticalScrollPolicy = "off"
4. wordWrap = true
5. dataProvider = "{gridDataProvider}"
6. updateComplete = "onUpdateComplete()"
The function onUpdateComplete is:-
private function onUpdateComplete() : void
               var  newHeight : Number;
                if ( this.gridDataProvider )   
                    this.dataGrid.headerHeight=50;
                    newHeight = dataGrid.measureHeightOfItems(0, this.gridDataProvider .length) + this.dataGrid.headerHeight ;
                    this.dataGrid.height = newHeight;
                    this.dataGrid.validateNow();
While printing, I am having a printVBox which contains all these components and its height = dataGrid.height + some buffer height for accomodating the height of other components in the panel.
I am able to print all the components, both before and after the datagrid, but the content of the datagrid is getting truncated, many rows are not printed.
Please help. Thanks in advance !!
Regards,
Rudhir

Hi Rudhir,
You should do something like below:
private function doPrint(event:Event):void
    var printJob:FlexPrintJob = new FlexPrintJob();
    if(printJob.start() != true) return;
    try
     var originalDGHeight:int = dataGridId.height;
     //Increasing the height of the desired component to be printed without scroll.
     //Here Check  which one is giving you total height dataGridId.measuredMinHeight or dataGridId.measuredHeight
     dataGridId.height = dataGridId.measuredMinHeight;
     //dataGridId.height = dataGridId.measuredHeight;
     dataGridId.verticalScrollPolicy = "off";
     //Adding the resized Component to our FlexPrintjob and then sending the print request
     printJob.addObject(printVBox,FlexPrintJobScaleType.MATCH_WIDTH);    
     printJob.send();
     //Resizing the component back to normal size
     dataGridId.height = originalDGHeight;
     dataGridId.verticalScrollPolicy = "auto";    
    catch(error:Error)
                 trace("Error : " + error.message);
Thanks,
Bhasker

Similar Messages

  • Long Text getting truncated in IW32

    We are using BAPI_ALM_ORDER_MAINTAIN to createa orders with long text.
    When reviewing the long text in the Office integration screen, We can see that all text is there.
    If, a user modifies the long text in the long text window of IW32, any text that does not display is lost when the order is saved
    If a user modifies teh long text in the office integartion screen, no text is lost.
    Any help on the cause and how to prevent this would be appreciated.
    Scott

    hi ,
    thanx for the reply,
    text gets truncated in print preview itself.
    i put breakpoint in  se38  and in sapscript.
    in se38 the variable shows full text, but in sapscript, it gets truncated.
    coding in sapscript
    /:           POSITION WINDOW
    /:           POSITION XORIGIN '-0.5' CH YORIGIN '-0.10' LN
    /:           SIZE WIDTH '+0.3' CH HEIGHT +0.85 LN
    /:           BOX HEIGHT '9.0' LN FRAME 10 TW
    /:           PERFORM PO_TEXT_DISP IN PROGRAM ZTEST_DRIVER
    /:           USING  &EKKO-EBELN&
    /:           CHANGING &PO_TEXT&
    /:           ENDPERFORM
    /:           IF &PO_TEXT& NE ''
    S7           &PO_TEXT&
    /:           ELSE
    /:           ENDIF
    regards
    senthil

  • 4:3 video gets truncated on TV

    Hi All
    I have recently encoded a 4:3 video using iDVD. I have selected the 4:3 option in iDVD. Much to my surprise, I realized that the sides of the video gets truncated during playback on a TV. I have checked the TV setting is at 4:3 too.
    What puzzles me was that playback on a PC was absolutely fine!
    Anyone has a means of resolving ?
    Jojo

    The audio from the movie clips was the problem. The audio seemed to slip behind the video each transition. I was combining 15 video podcasts to try and work round the lack of a playall feature.
    I wanted to select the transition time to zero but could not find this option. The manual button did not seem to allow this? I played around with a few settings, different transitions different intervals but the problem always showed when looking at the final burnt DVD on a standalone player. Frustrating.
    I ended up having to go back to imovie and find out that combining projects is also impossible, so had to export each podcast in turn and then recombine in a new project. Very very tedious so if you have any other ideas then let me know.
    I'm steadily converting to DVDSP and FCP as imovie/idvd although easy to use are actually quite disappointing in the long run. I wouldn't have minded if they had called it 'imovie lite' or 'imovie basic'. I might have picked up the warning that 'they' actually wanted me to spend more money. Of course I will reevaluate that thought if someone can explain why technically this is difficult/impossible ro acheive but lack of a play all function in iDVD and/or combining projects in iMovie seems a obvious omission. I was not annoyed that the import movies to slideshow workaround in iDVD did not work as it wasn't really intended to do this. Just a bit irritated as it worked fine in preview mode and only became apparent in the final burnt version
    Anyway far to long a rant. back to some work

  • How do I get the "auto portrait/landscape" option to show during printing in Adobe Reader Touch

    When I print using Adobe Reader Touch, the "auto portrait/landscape" options does not show up.  As a result, all pages in a document are printed in the same orientation even if they are not all of the same orientation in the file itself.  I don't believe this is a printer issue because if I use Adobe Reader X (v. 10.1.6) on the same computer/printer, the auto option does show up and the documents print as desired.  I use Windows 8.  As the video quality of Adobe Reader X is extremely blurry in Windows 8, I would like to be able to use Adobe Reader Touch exclusively.  How do I get the latter to give me the "auto portrait/landscape" option during printing?
    Thank you,
    Pelle

    Hello Pelle,
    Thanks for the feedback. Our printing code in Adobe Reader Touch doesn't have that capability right now, but since you mention it we should probably do what you're requesting by default. I'll put that into our backlog for a future update, but I can't say yet when it will be available.
    In the interim, if you have pages that are different orientations, you can print them in blocks manually to get what you want, but I understand that's a hassle.
    Dennis

  • Spool Output getting truncated

    Hi,
        I am using ALV grid display in a report.When we schedule the report in background and check the spool,The output is getting truncated (For eg Customer number is getting truncated ).I have checked the print parameters of background job,The format is passed as 'X_PAPER'.
    Pls suggest.
    Thanks
    Rakesh.

    Hi Rakesh,
    In SM36 during the Job creation Click on Print Specifications , Properties, Double click on Format value and change it to the required width.
    Use transaction SPAD to create width if it isn't available.
    Vijay

  • Error printing Check - "Missing Parameter Values. Error During Printing"

    Dear friends,
    Our client is in SAP B1 8.81 Pl07 and is facing an error while printing checks designed in Crystal Reports. As soon as they click on "Print" button, we are getting an error "Missing Parameter Values. Error During Printing".
    We have checked the Crystal Reports and all the parameters are given.
    Can anyone help me regarding this?
    Thanks and regards,
    Bharath S

    hi,
    Quoted from Note 1555170
    1555170 - Error 'Missing parameter values' printing with CR layout
    Symptom
    When you print on add any stock transactions document, with Crystal report layout, you receive error message:'Missing parameter values' and then 'Error during the printing; ensure all parameters are defined'
    Step by Step scenario:
    1.Go to Administration / System Initialization / Print preferences and select the tab per document.
    2.Select the document stock transfer and tick the box print document when adding document and click on update.
    3.Go to stock management / stock transactions / stock transfer
    set the Crystal report template as default.
    Note:
    - The issue is reproduced also for Goods Receipt and Good Issue.
    - The issue is reporduced with any Crystal Report Template  for the     above documents.
    Cause
    Program error
    Solution
    This issue is candidate for a change in a future release of SAP Business One.
    Workarounds:
    1.Use PLD for printing the stock transactions.
    2.Convert the PLD layout to Crystal reports with Crystal converter.
    3.Print the document after adding it.
    Other terms
    sap business one, printing issues, good issue, good receipt, stock transfer, crystal report, print preferences, print when adding, dockey, missing parameter
    Header Data
    Released on     07.02.2011 13:27:30
    Release status     Released for Customer
    Component     SBO-REP-CR Crystal Reports 2008 for SAP Business One
    Other Components     
    SBO-GEN-PRT Printing Issues
    Priority     Correction with low priority
    Category     Program error
    Validity
    Software Component
    Version
    SAP BUSINESS ONE
    8.8
    8.81
    you can download the PLD to Crystal Converter [here|http://www.sdn.sap.com/irj/scn/downloads?rid=/library/uuid/108305a7-1555-2d10-8289-9a178d441c71]
    regards,
    Fidel

  • In Read_text FM, the data after 256 characters gets truncated

    Hi All,
    In this FM, the internal table can't have string type field. In my case the data is in multiple lines of internal table and I am concatenating into a single field which is of type DESCRIPTIONS(string). I am passing this data to a table in smartform.Only 255 characters are printed, remaining data gets truncated. I am using CONVERT_OTF and SX_TABLE_LINE_WIDTH_CHANGE FMs to create PDF. Is it the limitation or I am incorect here?

    Your posting title is misleading; there's nothing wrong with FM READ_TEXT.  Yes, it returns a table of type TLINE, as you've noted.  Perhaps you could close this post and repost in FORM PRINTING with an appropriate title like: Can't show more than 255 characters of text.....but search first, because you cannot be the first person to encounter this limitation.

  • Running Mavericks OS on MacBookPro...had some hard crashes past 24 hours...now can't print in Office or Firefox.  Both crash during print dialog - changing printer.  Printed fine before.   Ideas?

    Running Mavericks OS on MacBookPro...had some hard crashes past 24 hours...forced reboots....now can't print anything from Office or Firefox.  Both crash during print dialog - changing printer causes instand crash.  My system printed fine before the crashes yesterday.  I can print from the Stickies app and safari printed fine.  I did a full Shutdown/restart and that didn't work.  Ideas on how to get PPT files to print again or print from firefox??

    Error log from PPT:
    Microsoft Error Reporting log version: 2.0
    Error Signature:
    Exception: EXC_BAD_ACCESS
    Date/Time: 2014-03-25 22:12:04 +0000
    Application Name: Microsoft PowerPoint
    Application Bundle ID: com.microsoft.Powerpoint
    Application Signature: PPT3
    Application Version: 14.3.9.131030
    Crashed Module Name: CoreFoundation
    Crashed Module Version: 855.14
    Crashed Module Offset: 0x00012192
    Blame Module Name: Microsoft PowerPoint
    Blame Module Version: 14.3.9.131030
    Blame Module Offset: 0x002a285e
    Application LCID: 1033
    Extra app info: Reg=en Loc=0x0409
    Crashed thread: 0

  • Leading zeros getting truncated in plsql report

    Hi,
    I've a requirement of a plsql report with an excel output. When i see the output in excel, the leading zeros get truncated. Is there any suggestion for this, other than enclosing within ' '. Because this particular solution prints the output along with quotes which is not acceptable. Please help me with this.
    -Divya Goteti

    Just prefix with =" and " at teh end of column. like
    select '="' || bank_account_no || '"' from employee_bank_list
    but if you are using same report for pdf also then use decode in pre/postfix.
    Imran

  • Problem in SAP Script - Paragraph AS - Chars getting truncated at end of

    Output for one of script is not getting printed correctly.
    When i see output of Script, text is printing beyond the end of line and last few characters are getting truncated.
    For ex:
    xxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.Purc
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    For instance it was suppossed to show Purchase order in second line. But half of letter is truncated.
    I want Purchase order to be printed on 3rd line automatically is enough space is not available on second line.
    Please provide some useful solution for this
    Thanks in advance
    Umesh
    Message was edited by:
            umesh sn

    if you want to print purchase order on next line do it like this...
    Ex,
    &var1& &var2& &var3&
    Purchase Order &P_ORDER&.
    Here, variable 1, 2 & 3 will be displayed in line 1 and purchase order will be displayed in line 2... now if you think data of variable 1 2 and 3 are getting truncated.. use tab spaces between this variables...define tab spaces in your paragraph format.
    Ex:
    &var1&,, &var2&,, &var3&
    Note: if you think variable is too long use offset...
    Ex: &var1(20)&
    Close the thread if your question is answered.
    Regards,
    SaiRam

  • CRM ICWEB "END CALL" tab getting truncated in IE8

    Hi,
    We have CRM 6.0 (2007) running on IE6 and planning to upgrade the browser to IE8. During testing, found that "EndCall" tab on Identification screen is getting truncated after clicking on it. Upon click the tab moves up into the header area and gets truncated. This problem is happens only on IE8 browser. Also we implemented all IE8 related SAP notes and they did not fix the issue.
    Any inputs appreciated.
    regards,
    Venky Bogam

    Hi,
    We seem to be experiencing a similar problem when we upgrade to IE8.
    In CIC0 we have an Overview tab with which we can view information from the SAP ISU system.
    The tab consists of 2 html frames, but the top frame now only shows the html code instead of the html page itself.
    When I copy and paste the html in a separete file to open it in IE8.
    IE8 shows the page the way CIC0 should which means there's nothing wrong with the HTML code.
    Our GUI 640 has been upgraded to 720 and we tried the compatibility mode and lower security settings in IE8.
    We also installed all the SAP notes related to the IE8 issues.
    But nothing seems to work.
    Regards,
    Mark Manders

  • Image cropped during printing!

    Hello,
    I have a tiff image that is 13 x 48 inches @ 300 dpi, that keeps getting cropped to 8 x 11 inches during printing. I do not understand what is happening.
    I have an Epson Stylus Photo 1400 printer. I set my paper size in the "manage custom sizes" dialogue box, double and triple check all of my settings, previews and every maddening, minute detail, but it keeps cropping my images and I have wasted a plethora of ink and beautiful handmade paper.
    I have done everything imaginable to try and remedy this problem. I have updated my printer driver, researched forums, spoke to support, had my friends look at my Photoshop settings, gone through every setting and tool and nothing is working.
    I can't help but think it is something so painfully obvious and simple. Any ideas? Could it be my screen resolution, some obscure setting in Photoshop?
    Thank-you for any ideas...

    What is the size of your paper?  What are the pixel dimensions of the file?  How much RAM and how much available disk space do you have?
    What exact version of Photoshop are you running, 12.0.2?  What exact version of the OS, 10.6.7 ?
    Have you downloaded and installed the latest version of the Epson driver for your printer?
    Can you post a screen shot of what the print dialog box looks like in Photoshop?
    Wo Tai Lao Le
    我太老了

  • Error during printing.

    I seem to have a weird error. Whenever I print system reports or preview them on the server it works just fine but if I go to print them or preview them on a terminal server I get an error. When I go to print I get the error "Error during printing; ensure all parameters are defined". When I preview them I get asked for the database login. I've put in the correct login and tried integrated security to no avail. I have looked at the self help application and tried both Case 1 and Case 2 under Environmental issue and I've done the Appendix. I have never seen had this problem before. Any suggestions?
    SAP Version: 8.81 PL10
    Server OS: Windows 2008 R2
    SQL Server: 2008 R2
    Terminal Server OS: Windows 2003

    This problem is due to mismatch between too servers. You may have to modify registration keys to make is work.
    Search (x86) in registry and/or user profile to find all Crystal Report related entries on the Terminal Server to correct.

  • Error during printing: Ensure all parameters are defined

    Forum,
    I have the following issue on 8.81 PL08. When trying trying to print from the Outgoing Payment screen we get the following message: Error during printing: Ensure all parameters are defined.
    What parameters specifically would it be referring to?
    Regards,
    Juan

    Hi,
    IS the error occurred only in outgoing payment? or what changes have you done?
    Try to create new PLD copy from system PLD then edit the field.
    Everytime you inserted a fields try to run the PLD so that we can determine the problem.
    Thanks.
    Clint

  • Data gets truncated when flows on the new page ?

    I have data from about 5 tables displayed in this report.
    There is one row which fetches all the required data and displayed there. This is a repeating frame in a group. The group is then again on a repeating frame which is on a group.
    At the end of this in the overall group frame, there is a row which has summary columns.
    the problem: When the rows of the innermost repeating frame are a lot in number, such that they exceed the page and overflow to the next page, the extra records do not get displayed. they are truncated and the next record starts on the new page. if i fiddle with the properties of the frames. the other scenario i get is, now i get the same number of rows as before, only, this time the summary row is also displayed at the end of this page. and like before a new record starts on the new page.
    I tried many possible comninations with the properties, but i cannot get the data to flow over to the next page.
    Any comments as to why this is happening ?

    Hi,
    It does sound like it's probably related to your print conditions. If you have not already had a look, I would highly recommend looking at the restrictions in the on-line help for the Print Object On property.
    It's difficult to say without seeing the report itself. What it sounds like to me is that a detail repeating frame has been set to All Pages. Let's say its master repeating frame is the Base Printing Object for the detail repeating frame. If the master only has a couple of lines of data to itself (ie the department name and id or location) then it likely does not have enough data to go to an additional logical page. All Pages for the detail repeating frame means that it will print on and only on All logical pages that the Base Printing Object will appear on. Therefore, as it would only appear on one page, the detail will get truncated to just that one page.
    I suspect this is likely to be what it going on here, however, without the actual report, it will be difficult to tell exactly which object is causing the problem. If after reading the doc on this you still have trouble figuring out which frame is causing the problem (it may be repeating or a group frame) then I'd suggest contacting Oracle Support for further hands on assistance.
    Hope that helps,
    Toby

Maybe you are looking for

  • Connecting fiber modem to wifi router

    I am usually pretty savvy with networking but this one really has got me.  I have searched all over teh Intarwebs with no success solving it.  I need the help of my fellow Mac-o-philes. Basically, here's the issue.  I'm in Mexico, and I want to set u

  • Missing Bookmarks/Table of Contents

    Hi I opened an Adobe document today and went to the bookmarks for the table of contents and they are no longer visable. Played about with it for an hour but no joy. What have I done ? John

  • Using Remote Desktop - Windows RT 8.1

    Hello, I was directed here from the Microsoft Answers community site about my issue regarding Remote Desktop on my Surface 2 RT. I am trying to connect my Surface 2 to my Windows 8.1 Pro desktop (it has Media Center on it as well). The problem that k

  • Putting in a memory card

    Can't seem to get back off

  • Problem in eclipse ??

    hello friends .. can any body can help me in eclipse.. i m using draw2d library for my drawing , n facing some probs regarding putting scrollbar over canvas.. i found org.eclipse.draw2d.ScrollPane class to use but cn't implement it.. there r certain