Printing issue with 2.9...worked fine in 2.8.1

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
no1g8tor
Posts: 62
Joined: Fri Nov 23, 2007 3:01 pm

Printing issue with 2.9...worked fine in 2.8.1

Post by no1g8tor » Tue Jun 17, 2008 1:00 am

I have a progam that prints out card using the following code and It looks normal on paper under 2.8.1, but as soon as I install 2.9 the fonts look tiny on the paper.

Code: Select all

  answer printer
  Put the number of cards of stack"PrintSingle" into pnt_card_calc
  go invisible to stack"PrintSingle"
  go to the first card
  go to next card
  open printing
  Repeat with crds = 2 to pnt_card_calc
    print this card into 0,0,(8.5*72),(11*50)
    print break
    go to next card
  end Repeat
  close printing
I know 2.9 uses some new print commands, but It seems to do everything right except everything is tiny.

Thanks for the help

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Post by Janschenkel » Tue Jun 17, 2008 1:00 pm

Is everything scaled down, or just the fonts?
Also try to put the target rectangle into a variable beforehand, to ensure that the parser isn't confused.

Code: Select all

put 0,0,(8.5*72),(11*50) into tPageRect
answer tPageRect  -- just checking
repeat with crds = 2 to pnt_card_calc
  print this card into tPageRect
  print break
  go to next card
end repeat
Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

no1g8tor
Posts: 62
Joined: Fri Nov 23, 2007 3:01 pm

Post by no1g8tor » Tue Jun 17, 2008 2:58 pm

Jan,

Thanks for the help. Everyhting is spread across the paper correctly but the fonts are tiny. Its not like someone took the original and reduced it on a copier. Everything is proportionate, just tiny. When I switch back to ver 8 it prints perfect.

Hope I described it ok

Thanks

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Post by Janschenkel » Wed Jun 18, 2008 12:40 pm

Is this on MacOSX, Windows, Linux?

If you're using Windows, you should look at the 'formatForPrinting' stack property. Windows uses different fonts for display on screen and printing on paper. Maybe Rev 2.9 is more senstive, as they reworked the printing aspects of the engine.

Maybe if you could reduce it to a simple example, and post that to the Quality Center, Revolution can figure out if they need to update the engine.

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

no1g8tor
Posts: 62
Joined: Fri Nov 23, 2007 3:01 pm

Post by no1g8tor » Wed Jun 18, 2008 2:25 pm

It is on a windows based machine.

I do have the formatForPrinting property set to true and its wierd, it prints perfect under the old version.

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Post by Janschenkel » Thu Jun 19, 2008 12:56 pm

As a long shot, are the fonts you're using in the stack listed in the result of calling

Code: Select all

fontNames(printer)
- that's just about all we can check before handing this over to the RunRev Quality team...

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

Post Reply