BIRT Exchange Forum: opening sod in xls format. - BIRT Exchange Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

opening sod in xls format. Rate Topic: -----

#1 User is offline   Nandha 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 10
  • Joined: 23-December 08

Posted 13 January 2009 - 02:42 AM

Hi,

I am new to espredengine API , i have designed some reports in spreadsheet when i tried open it in XLS format from my appliction i have some problem.

The size of the file reduced and i was not able to reuse the SOD file and i couldnt get the XLS file also my code is

import java.io.File;
import com.f1j.ss.*;
import java.io.*;
public class sod
{
public void doGet() throws Exception
{Document doc = null;
FileOutputStream fos = new FileOutputStream ("c:\\cash.sod");
DataOutputStream out = new DataOutputStream(fos);
try {
File templateFile = new File("c:\\cash.sod");
doc = new Document(null, templateFile, new DocumentOpenCallback());
doc.getLock();
doc.fileSaveAs(out, DocumentType.EXCEL_97_REPORT_VIEW, newDocumentSaveCallback()); }
catch (Exception e){System.out.println(e.getMessage()); }}
public static void main(String args[ ])
{ try{ sod m=new sod(); m.doGet();}
catch (Exception e){System.out.println(e.getMessage());}}}

Kindly help me in solving this issue.
Thanks in advance
Nandha
0

#2 User is offline   rmurphy 

  • Senior Member
  • Group: Members
  • Posts: 307
  • Joined: 09-August 07

Posted 13 January 2009 - 09:09 AM

In your code you are reading in C:\cash.sod, and attempting to write out an XLS 97 file to C:\cash.sod which is the same file you read. Change the file extension of you output file to be xls instead of sod.

Rob
0

#3 User is offline   Nandha 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 10
  • Joined: 23-December 08

Posted 13 January 2009 - 10:22 AM

Hi,

I changed the code as u said now, iam getting this error,there is no jdbc class files in the given jar.

do we need to create the datasource in the coding or it will use wt is available in the sod file.

My xls is generated with 0 kb

I have also attached the error log that i got.

Kindly help me in solving this issue.

Regards,
Nandha

Attached File(s)


0

#4 User is offline   rmurphy 

  • Senior Member
  • Group: Members
  • Posts: 307
  • Joined: 09-August 07

Posted 13 January 2009 - 10:44 AM

The report that you have designed uses the Actuate Data Direct driver to access Oracle. You need to include the N_oracle.jar file in your application's classpath. You can find this jar file in the extensions directory of your e.Spreadsheet Designer installation.

Rob
0

#5 User is offline   Nandha 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 10
  • Joined: 23-December 08

Posted 14 January 2009 - 10:58 PM

Rob still the problem exists , i have added the jar in the jdk exyensions even though i get this error

In the jar the classes are like com.actuate.actuatedd.jdbc.*

Is this the problem were could i get that jar file.

Kindly help me in sorting this issue.
0

#6 User is offline   Nandha 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 10
  • Joined: 23-December 08

Posted 15 January 2009 - 06:16 AM

i solved this issue by using genric driver instead of Oracle(actuate) while creating the datasource in sod design time.
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users