an xls file with the content.
>
> Any help is appreciated,
>
> Thanks in advance,
>
> Wadi
>
>
>
--
View this message in context:
http://www.nabble.com/How-To-Download-Excel-File--tp22806518p22808994.html
Sent from the W
Another way I'm using is like this (it works best if your clients have excel
installed of course)
Markup: http://pastebin.com/m41ee5cbe
Java: http://pastebin.com/m488291d4
With the most important bits being:
@Override
protected void configureResponse() {
super.configureRespons
These responses were great! I learned something from almost each variant of
the answer.
For what its worth, depending on how the app will be used - one might need
to be careful about writing files to the filesystem ... but again, thanks
for all the great examples listed here.
-Luther
On Tue, M
hola wadi
to generate the excel file, have a look at the poi apache project:
http://poi.apache.org/spreadsheet/index.html
then you will need to create a resource for that file / byte array.
you might find some inspiration from this pastie:
http://paste.pocoo.org/show/110449/
finally, use
new Re
I could be wrong - but maybe the question is about how best to structure
this in Wicket ..
it's just that easy (this is Scala, not Java):
add( new Link( ImageLink.ID_LINK ) {
def onClick = {
val resourceStream = new ByteArrayResourceStream(
xlsExporter.createExcel, "a
Hi Wadi,
The easy way is to have the conversion to xls occur within the link
action (extracting from db and storing to a temporary file in XLS format).
then you can use a DownloadLink with the model set to the File
(generatedXLSFileName).
If it is not tied to some other process you will hav
Hi,
> I could be wrong - but maybe the question is about how best to structure
> this in Wicket ..
it's just that easy (this is Scala, not Java):
add( new Link( ImageLink.ID_LINK ) {
def onClick = {
val resourceStream = new ByteArrayResourceStream(
xlsExporter.createExcel, "
I could be wrong - but maybe the question is about how best to structure
this in Wicket ..
Should it be a bookmarkable link? Should it be an action link? If I do the
work in my Action style link, how does one directly return content from an
action link as opposed to setting page response, etc.
-L
Not related to Wicket, but this might be a start: http://api.openoffice.org/
Regards,
Linda
Wadi Jalil Maluf wrote:
Hi All, I would like to know how can I put a link into a page so when the
user clicks I fetch some data from database , export it to Excel so the user
directly downloads an xls fi
Hi All, I would like to know how can I put a link into a page so when the
user clicks I fetch some data from database , export it to Excel so the user
directly downloads an xls file with the content.
Any help is appreciated,
Thanks in advance,
Wadi
10 matches
Mail list logo