Thanks for info. Will try.
Boris
On 6 apr 2006, at 11:34, Peter De Berdt wrote:
On 06 Apr 2006, at 10:20, Boris Segerstahl wrote:
I am under the impression that RB offers no way to print a page from
HTMLViewer. Do I have to export the page to, e.g., Safari if I want
to print it?
Ah, a long wanted feature, I remember putting up a request back when
RB 2005 was initially released. My hopes are that when Cocoa support
is available, RS will have an easy way to implement this feature by
letting the system handle the printing. Now, for your question, you
could write the html source to a temporary file, launch it with Safari
and if you can inject the print() javascript command into the body
onload event of your html file, Safari will automatically show a print
dialog (should work, haven't tested it with realbasic, I'm using this
in our web apps and it works perfectly):
<body onload='print();'>
Best regards
Peter De Berdt
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>