hmmmm..
Just an idea:
It is possible to include a CSS for printing that sets all elements to
display:none except for a single control (by classname) and it's children.
If you did this and then set the classname of your table widget
manually... it *might* work. The user would then just be able to click
print and it would only print the table. It would still be at the same
size that it would be on screen though :(
As I said it's just an idea, perhaps other people will be able to extend
it a little further, ot come up with something better?
HTH,
Matt
Dacquay, Eric wrote:
> Hi Stefan,
>
> I thought of doing something like that but that would require
> duplicating some logic on the backend (in C++) which is already on the
> browser side (in javascript) to generate the report. I am most likely
> going to be going that route in the future but I was hoping to avoid
> doing this initially as it would require more time than I really have to
> work on this app.
>
> Thanks
>
> Eric
>
> On 12/3/2008 11:24 AM, Stefan Volbers wrote:
>> Hi Eric,
>>
>> not quite the same thing but somewhat comparable:
>> having to produce a printable report out of my qooxdoo app, I have an
>> event listener on a clickable button which opens an external native
>> browser window with the location of a (PHP-) script like
>>
>> var reportbutton = new qx.ui.form.Button("Create report");
>> reportbutton.addListener("execute", function() {
>> var url = "http://" + location.host + reportpath +
>> "report.php?target=" + target;
>> window.open(url, "_blank");
>> }, this);
>>
>> This in turn (mis-)uses my RPC classes to retrieve the database
>> information needed in the report and thus creates a PDF from the
> results.
>> So I'm creating the external page not with qooxdoo, but with PHP, and
>> the result is not HTML, but PDF. Nonetheless I get printable results
> in
>> an external page.
>> I am sure anything similar could be achieved with any server scripting
>> language like Perl or Java or Ruby or whatever.
>>
>> If you definitely need to create the page with qooxdoo means, I'm
> afraid
>> I can't help you there - I am not so sure about the printability of
>> qooxdoo-apps anyway... can anyone comment on that?
>>
>> Bye,
>> Stefan
>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel