Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Share Your Creations
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Share Your Creations Show your developed application to Basic4ppc community. Please include source code if possible.

ExcelWriter Module v1.0

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-09-2010, 10:23 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default ExcelWriter Module v1.0

Hi Guys....

Been playing around with this module this week....
It's main purpose is to generate .XLS files from Basic4PPC...
This is v1.0, therefore the funcionality of this module is Basic, but still capable of creating very atractive and complete excelfiles.

A few Bugs have been caught, but still have to workaround them.
The Help File has been updated.
A Demo file has been added...

I hope to have a better working module by the end of the week....But would like to also know what you think of this...
if this is something worth the time, and what features you think a more advanced module sould, if possible, incorporate...

What I KNOW NOT TO BE POSSIBLE!:

Add pictures, not possible with xml parsing...
Charts are possible but are a bit tricky....will take longer to figure out..

Plase do feedback

EDIT: v1.1 is up, this is a much better version as a few new props were introduced...
Contiguous cells can now be populated, and columns can be resized.
This is without a demo file, as I am mind busted to think of a cool speadsheet to generate.
Maybe tomorow.

EDIT: Both a very Basic and Advanced Demos Apps are in the zip.Also the Module has suffer a light revision, and does work better now.
The enclosed AdvDemo.xls HAS been produced with the advDemo.spb
Untill some feedback is given, I am happy with this and will NOT update this unless I need to for personal purposes.
Attached Files
File Type: zip DEMO.zip (20.0 KB, 107 views)
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!

Last edited by Cableguy : 07-15-2010 at 04:07 PM. Reason: Updated .Chm file
Reply With Quote
  #2 (permalink)  
Old 07-11-2010, 05:48 PM
Junior Member
 
Join Date: Apr 2010
Location: Portsmouth,UK
Posts: 38
Default

Excel-lent work! I'll give this a try tomorrow.
Reply With Quote
  #3 (permalink)  
Old 07-13-2010, 04:41 PM
Junior Member
 
Join Date: Jun 2007
Location: Austria - Oberwölz
Posts: 49
Default Do i make a mistake, or...

Does it only work with the newest version of Basic4ppc (i have 6.80).
I get so much errors..
(all about the arrays)

Sorry!
Tim
Reply With Quote
  #4 (permalink)  
Old 07-13-2010, 06:09 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

I have no way of testing this under any other than 6.90...sorry...
It uses a lot of AddArrayList, and I cannot remember if this is a new keyword or not, but the main reason may be that I am passing more than one value on each sub call....


Any way, new updated version is up!

EDIT: I think Now I know why it doesn't work with 6.80...
From the "What's new..."

"- Improved syntax for working with dynamic objects and dynamic controls.
Instead of writing Control(ControlName, ControlType), it is now possible to write ControlType(ControlName). "
I use alot of Arraylist(arrayname).dosomething instead of Control(Arrayname, ArrayList).dosomething...
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!

Last edited by Cableguy : 07-13-2010 at 06:27 PM.
Reply With Quote
  #5 (permalink)  
Old 07-14-2010, 03:06 PM
Junior Member
 
Join Date: Jun 2007
Location: Austria - Oberwölz
Posts: 49
Default It works in 6.90, but....

Hi Paulo,
You're right. It works in 6.90. But when i create a simple sample. Everything went well, but the Excelsheet is corrupted. (as i try to open it in Excel).
First i get an "maybe" security warning.
Afterwards i get a logfile, like this

=======
XML-PARSERINGSFOUT: Ontbrekende eindcode
De fout treedt op onder of op deze elementstapel:
<ss:Workbook>
<ss:Worksheet>
<ss:Table>
====

All the code i used;

Sub Globals
'Declare the global variables here.
End Sub
Sub App_Start
excelwriterv11.CreateWorkBook("test")
excelwriterv11.AddWorkSheet("blad1")
excelwriterv11.CreateXlsFile
End Sub

Do you have a sample sbp for me (us?)
I realy hopes it'''s going to work, i like the excellink thing......
Regards,
Tim
Reply With Quote
  #6 (permalink)  
Old 07-14-2010, 06:59 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Tomorow I will post a fairly complex demo, and will add a "Basic" one too.
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #7 (permalink)  
Old 07-15-2010, 04:16 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

A BasicDemo.spb is made available as well as an advDemo.spb.

The BasicDemo only produces a Blank WorkBook, with the given Name and up to 3 Worksheets.

The AdvancedDemo Produces more complete Workbooks, as the AdvDemo.xls file.
You start of by Naming the WorkBook, and fill-out some OPTIONAL Props.
This Demo produces a WorkBook with one WorkSheet, and the data is taken from a pre-filled table.
Then You need to create some Styles to use in the WorkSheets thus formating the data.
You may need several styles to acomplish the desired effect.After each style is named and created it is added to a combobox, above the Table.
There is an UP/Down control to select the Row, the use the combobox to choose the Style for that particular row.
In this example I am only giving the user the power to change a row, but at code level you can format individual cells with a particular style.
When all rows are given a style, then you can create your XLS file.
And that's that!
See the #1 post for some more info regarding development...
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Properties module - useful module for working with properties / ini files Erel Code Samples & Tips 2 10-13-2011 09:02 PM
Module Change Name doesn't (quite)! agraham Bug Reports 1 12-06-2009 05:29 PM
Results To Other Module ceaser Questions (Windows Mobile) 7 05-29-2009 04:10 PM
FolderChooser als Module Paulsche German Forum 2 04-03-2009 08:39 PM
Storage of module klaus Beta Versions 6 08-31-2008 02:36 PM


All times are GMT. The time now is 12:39 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0