Re: Datagrid rendering - XML and XLS export
| From: | (PHPDiscuss - PHP Newsgroups and mailing lists) | Date: | Mon, 28 Feb 2005 09:42:33 +0000 |
| Subject: | Re: Datagrid rendering - XML and XLS export | ||
| References: | 1 2 3 4 5 6 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-17722@lists.php.net to get a copy of this message | ||
Andrew Nagy wrote:
> PHPDiscuss - PHP Newsgroups and mailing lists wrote:
> > Andrew Nagy wrote:
> >
> >
> >>PHPDiscuss - PHP Newsgroups and mailing lists wrote:
> >> >
> >> > Well, i want XML or XLS from basic datas of my datagrid but i get HTML
> >> > from all my current page (not only the HTML datagrid).
> >
> >
> >>1. Make sure your $rendu variable has the correct value.
> >>2. Make sure you have XML_Util as well as Excel_Spreadsheet_Writer
> >>installed so that you can utilize those 2 renderers
> >
> >
> >
> >>When you try to output in XML or Excel, do you get blank HTML pages, or
> >>are they the same as the HTML output page?
> >
> >
> >>Andrew
> >
> >
> > Well, they are the same as the html output page ?
> > I use DO to bind the datagrid and I'm on a Windows platform (yes i know
> > :), mysql 4 apache 2 and php 4 up to date.
> > Packages XML Util and Excel_SW are installed and up to date too.
> >
> > JP
> Can you confirm that your $rendu variable is set correctly?
> Can you also try using the actual values of the constants instead of the
> constants themselves.
> DATAGRID_RENDER_TABLE = 'HTMLTable'
> DATAGRID_RENDER_XML = 'XML'
> DATAGRID_RENDER_XLS = 'XLS'
> Andrew
Hi,
My $rendu variable is set correctly and I've tried values instead of
constants with no success.
I've tried the example code in the datagrid package and it works with
table and dataobject datasources.
I can give you by mail all my page code if you want,
thx for the help,
JP