Click here to Skip to main content
15,903,388 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: div Pin
Mircea Grelus15-Jul-06 13:06
Mircea Grelus15-Jul-06 13:06 
Questiondisplaying html file on webpage Pin
pawanmishraji15-Jul-06 2:01
pawanmishraji15-Jul-06 2:01 
AnswerRe: displaying html file on webpage Pin
enjoycrack15-Jul-06 20:02
enjoycrack15-Jul-06 20:02 
GeneralRe: displaying html file on webpage Pin
RichardGrimmer17-Jul-06 2:57
RichardGrimmer17-Jul-06 2:57 
QuestionAllow Service to interact with Desktop Pin
Kapil Thakur15-Jul-06 1:45
Kapil Thakur15-Jul-06 1:45 
AnswerRe: Allow Service to interact with Desktop Pin
led mike15-Jul-06 16:55
led mike15-Jul-06 16:55 
AnswerRe: Allow Service to interact with Desktop Pin
stan_p21-Dec-10 0:56
stan_p21-Dec-10 0:56 
QuestionExcel Problum Pin
kirthikirthi14-Jul-06 23:30
kirthikirthi14-Jul-06 23:30 
Hi all
I am trying to save data in Excel
I have 2 arrays in 1st array fields 2nd array data is there
Iam using this code

MYCODE
--------

Dim i As Integer
Dim strLine As String, filePath, fileName, fileExcel, link
Dim objFileStream As FileStream
Dim objStreamWriter As StreamWriter
Dim nRandom As Random = New Random(DateTime.Now.Millisecond)
Dim fs As Object, myFile As Object
fileExcel = "Results.xls"
If Not Directory.Exists(("c:\WeatherWizard")) Then
Directory.CreateDirectory(("c:\WeatherWizard"))
End If
filePath = ("c:\WeatherWizard")
fileName = filePath & "\" & fileExcel
objFileStream = New FileStream(fileName, FileMode.OpenOrCreate, FileAccess.Write)
objStreamWriter = New StreamWriter(objFileStream)
----------------ARRAY 1
Dim str1 As New ArrayList
str1 = (Session("str"))
For i = 0 To str1.Count - 1
strLine = strLine & str1(i).ToString & Chr(9)
Next
objStreamWriter.WriteLine(strLine)
strLine = ""
-----------------ARRAY 2
Dim j
Dim ia33 As New ArrayList
ia33 = (Session("ia11"))

For j = 0 To ia33.Count - 1
strLine = strLine & ia33(j) & Chr(9)
Next

objStreamWriter.WriteLine(strLine)
strLine = ""

objStreamWriter.Close()
objFileStream.Close()
---------------------------------------------------------
But its is not saving properly Plz can any one help Me

OR CAN U GIVE ME AN IDEA TO SAVE ARRAY's DATA IN EXCEL SHEET

THX

asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
AnswerRe: Excel Problum Pin
Mircea Grelus15-Jul-06 0:16
Mircea Grelus15-Jul-06 0:16 
Questionhow can i delete from multiple table on a single button click Pin
Amit Agarrwal14-Jul-06 23:22
Amit Agarrwal14-Jul-06 23:22 
AnswerRe: how can i delete from multiple table on a single button click Pin
Reza Raad15-Jul-06 0:20
Reza Raad15-Jul-06 0:20 
GeneralRe: how can i delete from multiple table on a single button click Pin
Amit Agarrwal15-Jul-06 0:27
Amit Agarrwal15-Jul-06 0:27 
AnswerRe: how can i delete from multiple table on a single button click Pin
Reza Raad15-Jul-06 1:30
Reza Raad15-Jul-06 1:30 
QuestionFirst time site upload Pin
Maurader14-Jul-06 22:55
Maurader14-Jul-06 22:55 
AnswerRe: First time site upload Pin
Saifi Hasan15-Jul-06 21:29
Saifi Hasan15-Jul-06 21:29 
GeneralRe: First time site upload Pin
Maurader15-Jul-06 23:19
Maurader15-Jul-06 23:19 
QuestionEditItemTemplate in vb.net 1.1 Pin
amaneet14-Jul-06 22:10
amaneet14-Jul-06 22:10 
AnswerRe: EditItemTemplate in vb.net 1.1 Pin
RSArockiam15-Jul-06 20:43
RSArockiam15-Jul-06 20:43 
QuestionHow can I declarate class in JSctrpt Pin
alexan0814-Jul-06 20:56
alexan0814-Jul-06 20:56 
AnswerRe: How can I declarate class in JSctrpt Pin
led mike15-Jul-06 16:57
led mike15-Jul-06 16:57 
AnswerRe: How can I declarate class in JSctrpt Pin
enjoycrack15-Jul-06 20:08
enjoycrack15-Jul-06 20:08 
AnswerRe: How can I declarate class in JSctrpt Pin
RichardGrimmer23-Jul-06 8:48
RichardGrimmer23-Jul-06 8:48 
QuestionMake text of HTML Button Bold Pin
varun_khanna1714-Jul-06 20:42
varun_khanna1714-Jul-06 20:42 
AnswerRe: Make text of HTML Button Bold Pin
Amit Agarrwal14-Jul-06 21:46
Amit Agarrwal14-Jul-06 21:46 
AnswerRe: Make text of HTML Button Bold Pin
Mircea Grelus15-Jul-06 0:53
Mircea Grelus15-Jul-06 0:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.