[REBOL] Re: Printing
From: greggirwin:mindspring at: 12-Sep-2003 13:35
Hi Matt,
MM> Ok, this stuff is all kinda new to me, how exactly do I use what you gave
MM> me? There is not really any sophisticated data to render, just a couple of
MM> strings, so anyway to do it is fine. Let me know,
Ah, sorry, I forgot you're kind of new to REBOL. You would need
View/Pro or Command to call DLL functions in any case, then the
declarations I posted could be used, but still may not solve your
problem.
The issue is that if you want Windows to handle things, you may have
to do more work. There are lots of ways to do it though. If you use
something like the ShellExecute API (again requiring View/Pro) you can
write the data out to a file and let the app registered to that type
print it.
You can also write the data out to an LPT port, but that may not work
too well. Others may know more than I do about that approach.
Writing HTML and letting the browser print it may be a good bet in
your case. Going to more complex APIs for rendering to DCs is going to
be painful.
I've used Gabriele's PDFMaker to write files and the print them
automatically. Kind of a pain IIRC, because of some issues with
Acrobat itself.
Hey, RT! What about a /PRINT refinement on BROWSE to do that kind of
thing silently?
-- Gregg