Go Back   Forum - BIRT Exchange > Spreadsheets in Java Forums > Designing e.Spreadsheet Reports
FAQ Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-03-2008, 02:50 PM
Junior Member
 
Join Date: Nov 2008
Posts: 3
Default Can we create .sod programitcally?

Hi,
I am new to espreadsheet. I have requirement that user provides the attribute of spreadsheet in screen and then we have to generate the report.
Can we create the .sod programitcally?

Can someone help me.....Please

Thanks
Sandip
Reply With Quote
  #2 (permalink)  
Old 12-03-2008, 03:49 PM
Senior Member
 
Join Date: Jul 2007
Posts: 365
Send a message via Yahoo to vdodson
Default e.Spreadsheet Engine

Hi Sandip,

Yes, you can dynamically create either the XLS file... or spreadsheet design file (SOD) directly with the e.Spreadsheet Engine APIs. There is more information at Spreadsheet Reporting - BIRT Wiki - BIRT Exchange
__________________
~Virgil
Reply With Quote
  #3 (permalink)  
Old 12-04-2008, 05:48 AM
Junior Member
 
Join Date: Nov 2008
Posts: 3
Default

Thanks Virgil.

Correct me if I am wrong

this is the way you do the same...

doc.fileSaveAs(new java.io.File("path/filename"), DocumentType.ACTUATE_9_WORKBOOK, new DocumentSaveCallback());.

right, ofcourse, you have other ways to...

Also I have another question, if I generate the report with .sod, can users update the values of the generated report, which I woulld like to save in the database?


Thanks again for your great help.

Sandip
Reply With Quote
  #4 (permalink)  
Old 12-04-2008, 11:33 AM
Senior Member
 
Join Date: Aug 2007
Posts: 153
Default

There is nothing in e.Spreadsheet that will automatically write values back to a database. However, this can be accomplished in a variety of ways depending on your applicaiton. If you are delivering an XLS file to your users, you could pass through a VB Macro that would make calls back to a server which would update values based on users actions. The following DevShare post describes passing VB Macros through to a XLS file.

Including VBA functionality in e.spreadsheet report - Tips & Tricks - BIRT Exchange

You could also allow your users to upload their XLS file and use e.Spreadsheet to parse the file and programmatically update the database.

If you are using e.Spreadsheet in a Java GUI applicaiton, you can capture Java Events (i.e. start edit, end edit, etc) and programmatically update the database.

Rob
Reply With Quote
  #5 (permalink)  
Old 12-04-2008, 12:21 PM
Junior Member
 
Join Date: Nov 2008
Posts: 3
Default

Thanks Rob,

We are using J2EE so we should be able to capture the events.

Thanks again.
Reply With Quote
  #6 (permalink)  
Old 12-04-2008, 12:57 PM
Senior Member
 
Join Date: Aug 2007
Posts: 153
Default

Sandip,
The events I was referring to are Java AWT/Swing events. Not J2EE based events such as JMS.

Rob
Reply With Quote
Reply


Thread Tools
Display Modes




All times are GMT -7. The time now is 06:20 PM.


Content Relevant URLs by vBSEO 3.1.0