Ask a Question related to ASP, Design and Development.
-
Luke Zhang [MSFT] #1
RE: Export to Excel sheet
You may refer to this KB article:
[url]http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q288130[/url]
Luke
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Luke Zhang [MSFT] Guest
-
How to get the name of an Excel sheet?
It's a COM call via CFObject but be warned - if there are External Links in the spreadsheet or VBA code, you could have issues. I'll post some code... -
Export to Excel shows an empty sheet
When I run my Export to Excel, the Spreadheet is empty. Anyone know what may cause this? Here is my code: Response.Clear() Response.Charset = ""... -
Excel sheet creation from ASP
Hi. Simple ASP creates Excel file on C drive: Dim xls Set xls = CreateObject( "Excel.Application") xls.Workbooks.Add... -
Export IPTC-Headers into Excel-Sheet
I would like to Export IPTC-Header-information to an Excel-Sheet from about 300 Photoshop-jpg-Files. Any idea how? Rike -
Excel Sheet Export
Hi All, I have an Excel sheet which I recieve every week. Its not too much data and the present process is to manually load that data into a SQL... -
Lin Ma #2
Re: Export to Excel sheet
Thanks XR.
The function code works great. It fix my problem when user has a line break
in the text box.
Thanks a lot.
Lin
"XR" <xrongg@yahoo.com> wrote in message
news:0b7a01c33cb6$e2467a90$a401280a@phx.gbl...> [CSV use , as default dilimiter. ]
>
> iID = rs("ID")
>
> sTemp = iID & "," & stringTOCSV(rs("taname")) & ",," &
> stringTOCSV(rs("Countryname"))
>
> f.writeLine(sTemp)
>
> '--------------------------
> ' Convert input string to fit the CSV formating '
> ' Returns formated input string '
> '--------------------------
>
> function StringToCSV(xIn)
> Dim xOut
> if not xIn = "" then
> xOut = Trim(xIN)
> xOut = replace(xOut, """", """""")
> xOut = """" & xOut & """"
> StringToCsv = xOut
> Else
> stringToCsV = xIn
> End if
> End function
>
>> more than one column?> >-----Original Message-----
> >Thanks. But it only write to one column. How to write> ("this is column> >
> >I try to use f.WriteLine ("The information you want") &> ("scripting.fileSystemObject")> >2")
> >
> >But it is not working.
> >
> >Thanks,
> >
> >Lin
> >
> >
> >"XR" <Xrongg@yahoo.com> wrote in message
> >news:026c01c33c1d$f0e60370$a501280a@phx.gbl...> >> sFName = "ReportCache\Report_time.csv"
> >>
> >> set fs = server.createObject> >> >> set f = fs.createTextFile(server.mappath(sFName))
> >> sql = your sql statement
> >> Set Rs = conn.execute(sql)
> >> if not rs.eof then
> >> do while not rs.eof
> >> f.WriteLine ("The information you want")
> >> rs.moveNext
> >> loop
> >> end if
> >> rs.close
> >> set rs = Nothing
> >>
> >> set f = Nothing
> >> set fs = Nothing
> >>
> >>
> >>
> >
> >.
> >
Lin Ma Guest
-
Lin Ma #3
Re: Export to Excel sheet
Thanks Curt.
Now I know how to convert a table into Excel. Cool.
Lin Ma
"Curt_C [MVP]" <Software_AT_Darkfalz.com> wrote in message
news:OvbDw$CPDHA.704@tk2msftngp13.phx.gbl...result> Using Excel from ASP
> [url]http://www.darkfalz.com/1085/[/url]
>
>
> --
> ----------------------------------------------------------
> Curt Christianson (Software_AT_Darkfalz.Com)
> Owner/Lead Designer, DF-Software
> [url]http://www.Darkfalz.com[/url]
> ---------------------------------------------------------
> ..Offering free scripts & code snippits for everyone...
> ---------------------------------------------------------
>
> "Lin Ma" <a@a.com> wrote in message
> news:#NmPfkBPDHA.2160@TK2MSFTNGP11.phx.gbl...> > Hi,
> >
> > From my asp page, after user run a search query, I need this query> to>> > be displayed in a spread sheet. A csv file?
> >
> > Does anyone know how to do?
> >
> > Thanks,
> >
> > Lin Ma
> >
> >
>
Lin Ma Guest



Reply With Quote

