The card is grey on printing!!

Gardner, Joseph A joe.gardner at nwa.com
Sun Feb 1 21:30:21 EST 2004


Jan and François,

I'm also having this problem when printing a field from OSX. Here's my button script:

on mouseUp
  put the backgroundColor of cd fld "FileContents" into tBC
  set the backgroundColor of cd fld "FileContents" to white
  revPrintField ("field" && quote & "FileContents" & quote)
  set the backgroundColor of cd fld "FileContents" to tBC
end mouseUp

The field _still_ prints in a gray rectangle. I checked the button syntax by setting the field to BLACK and while the field flashes black for a second while the print command runs, the printout is _still_ black text on a gray background. Is this a bug? Any advice on how to get the field to print black text on a pure white background?

TIA...

joe.

<previously>

--- François Cuneo <francois.cuneo at cuk.ch> wrote:
> Hello everybody!
> 
> When I print a card with 2 fields (text black on
> background white), the
> printing zone is grey.
> 
> And the printing zone is with a big margin on top
> and another big on left
> 
> Why?
> 
> Amicalement
> François
> 

Bonjour François,

I guess you're printing from Windows or *nix ?
The default bakcgroundcolor of the cards on those
systems is gray instead of white, and Rev's printing
is WYSIWYG for that color ;-)

Put the following before your print command
  put the backgroundcolor of this stack into tBC
  set the backgroundcolor of this stack to white
and the following after your print command
  set the backgroundcolor of this stack to tBC

Hope this helped,

Jan Schenkel.

</previously>


More information about the use-livecode mailing list