opening sod in xls format.
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
|