printing from Runrev - another person with same request

Chris Sheffield revlist at cableone.net
Mon Mar 29 14:54:37 EST 2004


Pat,

FWIW, here is what I've come up with to handle my printing.  So far it's
working well.

if the platform is "Win32" then
  answer printer
  if the result is "Cancel" then
    exit DoPrint
  else
    open printing
  end if
else
  open print with dialog
  if the result is "Cancel" then
    exit DoPrint
  end if
end if


This is in a handler called DoPrint, in case you hadn't figured that out.
:-)  It's a bit ugly, but because of the differences between platforms, I'm
not sure there is really a better way to do it.  After all this, I'm just
using various print, revPrintField, and revPrintText commands.  Because the
revPrintField and revPrintText commands use some different routine for
printing, each call displays it's own little progress bar when sending to
the printer.  This isn't really so bad though, at least not for me, since
I'm printing several separate pages, or documents, anyway.  I didn't even
make use of revShowPrintDialog at all because its setting do not apply when
using the print command after it.  But using answer printer or open printing
with dialog to apply their setting to revPrintField and revPrintText.  Be
sure to issue a close printing command after you've used print card or
something similar.

Hope that all makes sense.  I would really like to see a more standardized
method for printing.  This is so confusing.  Maybe it's not possible because
of the platform differences?  Anyway, hope I've helped out a bit.  And using
Richard's suggestions for sending print jobs to PDFs is a great way to save
paper and ink.

Chris Sheffield
Software Development
Read Naturally


-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Pat Trendler
Sent: Sunday, March 28, 2004 12:08 AM
To: use-revolution at lists.runrev.com
Subject: re: printing from Runrev - another person with same request



>>Thanks,

I have also been trying to work this out - in the process have used a lot of
paper. I'd be happy just to get a list of steps. The more I read the docs
the more confused I get.


Hoping somebody can help,

patrend(at)bigpond.com

_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.639 / Virus Database: 408 - Release Date: 3/22/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.639 / Virus Database: 408 - Release Date: 3/22/2004
 



More information about the use-livecode mailing list