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
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. 

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: how to create a Excel format file?

Will a csv file do?

Contributor
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.

Contributor
Posts: 41
Registered: ‎11-18-2012
My Device: blackberry sms message making
My Carrier: 9951111450

Re: how to create a Excel format file?

Can i get your code for creating csv file

Developer
Posts: 68
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. :

Developer
Posts: 19,636
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. 

Developer
Posts: 68
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.
Developer
Posts: 19,636
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?

Developer
Posts: 68
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.
Developer
Posts: 19,636
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.