always getting a corrupt file when using to-xls converter...Orbeon Forms 3.5.1.200703310056

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

always getting a corrupt file when using to-xls converter...Orbeon Forms 3.5.1.200703310056

richhl
would you please give me any advise?

i'm doing it with same approach than employees example.

    <!-- Convert to XLS -->
    <p:processor name="oxf:to-xls-converter">
        <p:input name="config">
            <config template="oxf:/apps/xforms-ehistoria/escalas/export_excel/cuestionarios.xls">
            </config>
        </p:input>
        <p:input name="data" href="#instance"/>
        <p:output name="data" id="binario-xls"/>
    </p:processor>

    <!-- Serialize -->
    <p:processor name="oxf:http-serializer">
        <p:input name="data" href="#binario-xls"/>
        <p:input name="config">
            <config>
                <header>
                    <name>Content-Disposition</name>
                    <value>attachment; filename=cuestionarios.xls</value>
                </header>
            </config>
        </p:input>


attached template and corrupt file that results...it opens with no content with openoffice2.3 and it claims to be corrupted and not able to open with Excel 2003.

thx

P.D: I've tried to with a 'static' excel with no parametrized cells in it.

--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

cuestionarios.xls (29K) Download Attachment
cuestionarios_rendered.xls (23K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: always getting a corrupt file when using to-xls converter...Orbeon Forms 3.5.1.200703310056

Erik Bruchez
Administrator
Richard,

We have to say that we haven't touched that code (oxf:to-xls) in a  
long time, and it probably never worked quite right. We consider this  
as being deprecated.

So the only advice we can give is "use the source, Luke" ;-)

-Erik

On Feb 5, 2008, at 3:51 AM, Richard C. Hidalgo Lorite wrote:

> would you please give me any advise?
>
> i'm doing it with same approach than employees example.
>
>    <!-- Convert to XLS -->
>    <p:processor name="oxf:to-xls-converter">
>        <p:input name="config">
>            <config template="oxf:/apps/xforms-ehistoria/escalas/
> export_excel/cuestionarios.xls">
>            </config>
>        </p:input>
>        <p:input name="data" href="#instance"/>
>        <p:output name="data" id="binario-xls"/>
>    </p:processor>
>
>    <!-- Serialize -->
>    <p:processor name="oxf:http-serializer">
>        <p:input name="data" href="#binario-xls"/>
>        <p:input name="config">
>            <config>
>                <header>
>                    <name>Content-Disposition</name>
>                    <value>attachment; filename=cuestionarios.xls</
> value>
>                </header>
>            </config>
>        </p:input>
>
>
> attached template and corrupt file that results...it opens with no  
> content with openoffice2.3 and it claims to be corrupted and not  
> able to open with Excel 2003.
>
> thx
>
> P.D: I've tried to with a 'static' excel with no parametrized cells  
> in it. <cuestionarios.xls><cuestionarios_rendered.xls>
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

re: Re: always getting a corrupt file when using to-xls converter...Orbeon Forms 3.5.1.200703310056

richhl
In reply to this post by richhl
>Richard,
>
>We have to say that we haven't touched that code
>(oxf:to-xls) in a   long time, and it probably never worked
>quite right. We consider this   as being deprecated.
>
>So the only advice we can give is "use the source, Luke"

and trust the 'force'? :-) well, i'm not specially
interested in supporting a propietary format...it was only a
way to 'impress' a client...but think I can use CSV
export....maybe we can support in the future a way to
produce OpenCalc files...

thx!


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: re: Re: always getting a corrupt file when using to-xls converter...Orbeon Forms 3.5.1.200703310056

Erik Bruchez
Administrator

On Feb 6, 2008, at 12:52 AM, [hidden email] wrote:

>> Richard,
>>
>> We have to say that we haven't touched that code
>> (oxf:to-xls) in a   long time, and it probably never worked
>> quite right. We consider this   as being deprecated.
>>
>> So the only advice we can give is "use the source, Luke"
>
> and trust the 'force'? :-) well, i'm not specially
> interested in supporting a propietary format...it was only a
> way to 'impress' a client...but think I can use CSV
> export....maybe we can support in the future a way to
> produce OpenCalc files...
Yes CSV export can work in some situations. If you set the appropriate  
content-type, you may even be able to open Excel or similar when  
loading a CSV file from a web browser.

-Erik

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws