Hi,
It is simply like this.
static void toexcel(Args _args)
{
COM ExApp, wbb,wb,Wss,Ws;
COM Cells,Cell;
int i;
;
ExApp = new COM("Excel.Application");
ExApp.UserControl(True);
wbb=exapp.workbooks();
wb=wbb.add();
Wss = wb.WorkSheets();
Ws = Wss.Item(1);
Cells = ws.Cells();
cell=cells.Range("A1");
Cell.Value2("Header1");
cell=cell.next();
cell.Value2("Header2");
cell=cell.next();
i = 1;
while select InventTrans
{
i++;
cell=cells.Range("A"+int2str(i));
Cell.Value2(int2str(i-1));
cell=cell.next();
Cell.Value2(InventTrans.itemid);
cell=cell.next();
}
ExApp.Visible(true);
}
Ahmet
On Wed, Feb 11, 2009 at 11:39 AM, suneel babu <[email protected]> wrote:
>
> Hi.,
> Is Any one have code for Export to excel?
>
>
> Regards
> Suneel.
> __________________________________________________________
> Plug in to the MSN Tech channel for a full update on the latest gizmos that
> made an impact.
> http://computing.in.msn.com/
>
> [Non-text portions of this message have been removed]
>
>
>
--
Ahmet TÜTÜNCÜLER
[Non-text portions of this message have been removed]