Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
vercity
Posts: 27
Registered: ‎08-04-2010
My Device: Not Specified
Accepted Solution

how to create a Excel format file?

Hi all,

    I wanna to export an Excel format file(.xls), and i tried jxl but not worked because BlackBerry API lacks of java.XX class.

    So does anyone have other methods doing this?

    Thanks. 

Please use plain text.
Developer
peter_strange
Posts: 19,607
Registered: ‎07-14-2008
My Device: Not Specified

Re: how to create a Excel format file?

Will a csv file do?

Please use plain text.
Contributor
vercity
Posts: 27
Registered: ‎08-04-2010
My Device: Not Specified

Re: how to create a Excel format file?

Yes, I've tried it. But when it's opened by Excel 2007, some words don't be shown correctly.  Finally i used xml format for Excel 2007 and CSV for Excel 2003.

Please use plain text.
Contributor
akhilmuppa
Posts: 41
Registered: ‎11-18-2012
My Device: blackberry sms message making

Re: how to create a Excel format file?

Can i get your code for creating csv file

Please use plain text.
Regular Contributor
meghana_datar
Posts: 58
Registered: ‎11-24-2010
My Device: Not Specified

Re: how to create a Excel format file?

Hello, can you please share the code snippet , for how to write data to file. As i am not able to open CSV file created .Please help. ::Helpsmilie:

Please use plain text.
Developer
peter_strange
Posts: 19,607
Registered: ‎07-14-2008
My Device: Not Specified

Re: how to create a Excel format file?

Have you tried creating a csv file using a standard PC text editor and then displaying that using Excel?

 

You need to understand how to do that before you start trying to code the BlackBerry to write a similar file. 

Please use plain text.
Regular Contributor
meghana_datar
Posts: 58
Registered: ‎11-24-2010
My Device: Not Specified

Re: how to create a Excel format file?

Yes. But i am not able to open it in on my blackberry device where as when i tried to open its using windows excel. I did open.
Please use plain text.
Developer
peter_strange
Posts: 19,607
Registered: ‎07-14-2008
My Device: Not Specified

Re: how to create a Excel format file?

Do you have Excel on your BlackBerry?  How are you trying to open it?

Please use plain text.
Regular Contributor
meghana_datar
Posts: 58
Registered: ‎11-24-2010
My Device: Not Specified

Re: how to create a Excel format file?

No. I guess CSV file format is not supported on blackberry device.
Please use plain text.
Developer
peter_strange
Posts: 19,607
Registered: ‎07-14-2008
My Device: Not Specified

Re: how to create a Excel format file?

This Thread is talking about creating a file that can be opened by Excel running on a PC. 

Please use plain text.