• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

After updating air from 1.5 to 2.0.3: table not printed correctley

New Here ,
Sep 06, 2010 Sep 06, 2010

Copy link to clipboard

Copied

After updating adobe air from version 1.5 to 2(.0.3 ) when I print a table that is showed correct on screen, not everything (data in cell) is printed out.

The table is set up with variableRowHeight="true" wordWrap="true". When a cell contains more then one line of data, everything is shown correctly on screen but when I print this table, everything is printed but the last line of data. So a cell containing 3 lines of text shows 3 lines on screen but only prints 2 lines.

If the cell only contains 1 line, everything prints just fine.


The print funtion:

private function printMe():void{

var printJob:FlexPrintJob = new FlexPrintJob();
if(printJob.start()){
printJob.addObject(myScreen, FlexPrintJobScaleType.MATCH_WIDTH);
printJob.send();
}
}

Everything worked perfectly with adobe air 1.5... so now I use the old version of adobe air until I have a sollution for this problem.

Something must have changed but I can't find out what it is. Someone here who can help me to solve this?

Greetz

TOPICS
Performance issues

Views

1.3K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Sep 09, 2010 Sep 09, 2010

Are you using Flex Builder 3 for your production environment?  If so, you might have some luck updating the version of the Flex SDK to 4.1.  Here's an article that gives some simple steps on accomplishing that:  Using Flex Builder 3 with the Flex 4 SDK

Chris

Votes

Translate

Translate
Adobe Employee ,
Sep 07, 2010 Sep 07, 2010

Copy link to clipboard

Copied

Thanks for bringing this up.  I was able to reproduce it today with both AIR 2.0.2 and 2.0.3.  I'm going to investigate if this is an active bug and if not, I'll enter it.  More details to follow.

Chris

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Sep 07, 2010 Sep 07, 2010

Copy link to clipboard

Copied

This issue has been entered internally as bug #2713603.  As a possible workaround, I updated my test app's SDK's from Flex 3.5/AIR 1.5.3 to Flex 4.0/AIR 2.0.2 and printing is fixed with the 2.0.3 runtime.

Thanks,

Chris

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Sep 07, 2010 Sep 07, 2010

Copy link to clipboard

Copied

One additional question.  What OS are you seeing this occur on?  I've been able to consistently get this to reproduce on Mac, but it appears to work fine on Windows.

Chris

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 07, 2010 Sep 07, 2010

Copy link to clipboard

Copied

My air application is running on windows XP. Tested with windows 7: same problem. Haven't tested on windows vista yet.

Greetz

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Sep 08, 2010 Sep 08, 2010

Copy link to clipboard

Copied

Thanks for the update, would it be possible to get a copy of your AIR app or a sample that illustrates the problem on Windows?  Please feel free to email me at ccampbel@adobe.com if you'd prefer.

Thanks,

Chris

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Sep 08, 2010 Sep 08, 2010

Copy link to clipboard

Copied

After further investigation, this appears to be an older problem that is appearing under AIR 2.0 and later because AIR now prints at a higher resolution.

In our test app, the data grid that was printed scales to fill the width of the page.  We ask the OS to render the text at this resolution, which is different than what you see on the screen.   The OS will determine how the text wraps and how many lines will fit within the requested rectangle.  This can be problematic.  I was actually able to get this issue to reproduce with the 1.5.3 runtime by simply changing to a different paper size (US Letter to A3 in my case.)

If possible, I'd recommend updating to the Flex 4.x SDK and retesting.  My test project was originally built using Flex 3.5/AIR 2 and I could see the printing issue with either 1.5.3 or 2.0.3 runtimes, depending on the page size, orientation, or resolution.  Once I changed the project to Flex 4.0 (with Flex 3 compatibility mode on) printing worked properly with AIR 2.0.3.

Chris

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 09, 2010 Sep 09, 2010

Copy link to clipboard

Copied

Changing the project to Flex 4 (don't know if I checked the flex 3 compatibility mode) and using air 2.0.3 did the trick for the printing problem.

Since I used the evaluation version of Flash builder 4, transfering the complete project to flex4 is not an option right now.

Sending you a copy of my complete project is not possible cause it works with private mysql data on a LAN network.

If you still want a test app, I can try to extract some parts of my project.

Greetz

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Sep 09, 2010 Sep 09, 2010

Copy link to clipboard

Copied

Are you using Flex Builder 3 for your production environment?  If so, you might have some luck updating the version of the Flex SDK to 4.1.  Here's an article that gives some simple steps on accomplishing that:  Using Flex Builder 3 with the Flex 4 SDK

Chris

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 10, 2010 Sep 10, 2010

Copy link to clipboard

Copied

LATEST

I tested using Flex builder 3 with flex 4.1 sdk installed as mentioned your post. Printing is working correct with adobe air 2.0.3.

I just need to look into some minor things in my project that I have to fix.

Thanks for helping me out and finding a usable fix for me!

Greetz

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines