Hi!

Anybody interested in pdf print script via wicket?

**
Martin

2010/2/28 nino martinez wael <nino.martinez.w...@gmail.com>:
> Yeah I agree this is the way it should be done. Works like a charm! And then
> just have a simple js like this:
>
> <script language="Javascript1.2">
>  <!--
>  function printpage() {
>  window.print();
>  }
>  //-->
> </script>
>
> on or link button or whatever..
>
>
>
> 2010/2/28 Riyad Kalla <rka...@gmail.com>
>
>> This is what I've done in the past as well, allows your user to just
>> "print"
>> the page they are staring at and have the browser do the right thing in
>> using an alternative style sheet for rendering the page -- this includes
>> using a lot of display:none to trim down the parts of the page that you
>> don't want printing. This way all you need on your page is a "Print" link
>> that invokes the Print dialog, no other popups ontop of popups.
>>
>> Some info:
>> http://www.scottklarr.com/topic/15/css-create-a-style-sheet-for-print-only/
>>
>> <
>> http://www.scottklarr.com/topic/15/css-create-a-style-sheet-for-print-only/
>> >
>> http://webdesign.about.com/cs/css/a/aa042103a.htm
>>
>> On Sat, Feb 27, 2010 at 4:54 PM, Alex Rass <a...@itbsllc.com> wrote:
>>
>> > Josh,
>> >
>> > This doesn't answer your question directly (about a popup).
>> > But a MUCH simpler way is to make your page printer friendly by supplying
>> > an
>> > alternative CSS for printing format (google on that). Makes life much
>> > easier.
>> >
>> > When you tell your page which css to use, you can say "use this CSS for
>> > printing only". All transparent to the user.
>> >
>> > - Alex
>> >
>> >
>> > -----Original Message-----
>> > From: Josh Chappelle [mailto:jchappe...@4redi.com]
>> > Sent: Friday, February 26, 2010 4:09 PM
>> > To: users@wicket.apache.org
>> > Subject: Print friendly panel
>> >
>> > Hi,
>> >
>> >
>> >
>> > Does anyone know of a suggested method to render a printer friendly panel
>> > to
>> > a separate browser window so that user's can print? The only thing I have
>> > found is the following article and it looks a little clunky.
>> >
>> >
>> >
>> > http://cwiki.apache.org/WICKET/rendering-panel-to-a-string.html
>> >
>> >
>> >
>> > Basically I just need to be able to place a link that when clicked will
>> pop
>> > up a new browser window with only the contents to the target panel. That
>> > way
>> > users can print that panel from there.
>> >
>> >
>> >
>> > Thanks,
>> >
>> >
>> >
>> > Josh
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> > For additional commands, e-mail: users-h...@wicket.apache.org
>> >
>> >
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to