Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-27-2006, 10:02 AM
Member
 
Join Date: Oct 2004
Posts: 53
Default writing to excel file

i have tried almost every possible way to write to an excel but no success
if anybody can guide where i am going wrong. here is the code. thanks

Code:
excel = new ActiveXObject("Excel.Application");
excel.Visible = true;
excel.Workbooks.Add();

// Bind to worksheet.
objSheet = excel.ActiveWorkbook.Worksheets(1);
objSheet.Name = "User Groups";

//objSheet.Cells.Item(2, 2).value = "Last Name"
//objSheet.ActiveSheet.Cells(1, 1) = "Last Name"
//objSheet.worksheets("User Groups").Range("A1").Value = "Last Name"
//objSheet.Range("A1").Value = "Last Name"
//objSheet.ActiveSheet.Range("A1").Value = "Last Name"

excel.ActiveWorkbook.SaveAs("c:\\test.xls");

excel.quit();
Reply With Quote
  #2 (permalink)  
Old 12-29-2006, 12:30 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:writing to excel file

We will test it and try to resolve the problem.
Reply With Quote
  #3 (permalink)  
Old 01-18-2007, 10:52 AM
Member
 
Join Date: Oct 2004
Posts: 53
Default Re:writing to excel file

???
Reply With Quote
  #4 (permalink)  
Old 01-27-2007, 11:34 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:writing to excel file

Please use the "value2" property instead. The "value" property has two parameters since excel 2002.
Reply With Quote
  #5 (permalink)  
Old 01-29-2007, 09:01 AM
Member
 
Join Date: Oct 2004
Posts: 53
Default Re:writing to excel file

i tried to use "value2" property also, but no results.
i would appreciate if you could post the edited the code for me.

thanks in advance

Reply With Quote
  #6 (permalink)  
Old 01-30-2007, 05:45 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:writing to excel file

Code:
objSheet.Cells.Item(2, 2).value2 = "Last Name"
Reply With Quote
  #7 (permalink)  
Old 02-08-2007, 08:35 AM
Member
 
Join Date: Oct 2004
Posts: 53
Default Re:writing to excel file

thanks for this.

but now why this does not work

Code:
objSheet.Shapes.AddPicture("c:\\test.jpg", false, true, 160, 40, 70, 70);
Reply With Quote
Reply

Was this information helpful?    Yes No



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

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



All times are GMT. The time now is 04:00 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.