realbasic-nug
[Top] [All Lists]

Re: Printing, Reports etc ? with DB apps

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Printing, Reports etc ? with DB apps
From: Youri <lystes at free dot fr>
Date: Sat, 30 Dec 2006 16:05:17 +0100
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <6253599 dot 117461167472060871 dot JavaMail dot webmail at ps2zhh dot bluewin dot ch>

Shawn,


Please update me with your example, I can't wait to see such solution.

Cheers,

Youri


shawngiese at bluemail dot ch wrote:
Hello Youri,

I just wrote a sample application showing you the basics of what I meant (xml report with css built-in). I don't know how to pass a string of text to the htmlviewer of Realbasic so I had to save it as an external file. It seems that the htmlviewer, at least in windows, already has a print preview which I did not know about. I will let you know the link once I have loaded the realbasic file somewhere. Using it you would build the xml file yourself from the output of a sql query or somesuch, tagging the files as you see fit (table, header, totals) and apply formatting through the css code inside the html file itself (which is in the XSL). You would save one file as preview.html and after letting the user see it, prompt them with a dialog to save it to their own html file.

I will try to document it as much as I have time for. This is my last day of vacation and I am hoping to find some snow nearby to take the kids out :)

There's tons of stuff you can do with the css (spacing, fonts, colors, alternating row colors). I do not know if the builtin htmlviewer supports floats and divs (really nice for formatting).

Sincerely,
Shawn

_______________________________________________
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>


<Prev in Thread] Current Thread [Next in Thread>