Ask a Question related to ASP.NET General, Design and Development.
-
Anne #1
Multiple Excel Files
hie, in my web application, i have a dropdownlist, and a
button. i want to be able to select from the list, and
whatever item that i have selected, i want to use the item
value for manipulation. once i have selected from the
list, the button is clicked and the application will
display an excel file. for example, i chose number 8 in my
dropdownlist, and the application will display the excel
file with the number 8. i also need to use the item
selected to search for my excel files. How can i code this
function? i've tried coding it as below, but got an error
when i tried to append the item selected to a string
(strExcel). what can i do to make my program works as i
want it to? anybody got an idea on how to solve this?
thanx!
Private Sub btnOK_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles btnOK.Click
Dim WW As New ListItem()
WW = wwList.SelectedItem()
strMyPath = "C:\Inetpub\wwwroot\Final_MR"
If fso.FolderExists(strMyPath) Then
fso.GetFolder(strMyPath)
For Each sFl In fso.GetFolder(strMyPath).Files
If sFl.Name Like ".xls" Then
strtmp = fso.GetFileName(sFl.Name)
intlngth = Len(strtmp) - 5
strName = Microsoft.VisualBasic.Left
(strtmp, intlngth)
strExcel = strName & WW & ".xls"
End If
Next
Response.Redirect
("C:\Inetpub\wwwroot\Final_MR\" & strExcel)
End If
End Sub
Anne Guest
-
Acrobat 8 Combine Files - Word, Excel = "Problem Files" Any help?
Hello, I just puchased Acrobat 8 for the Mac specifically to combine multiple files from different programs into one professional document... -
Create Multiple Sheets in Excel with CFCONTENT
Hello, I am able to create an Excel Workbook using the CFCONTENT tag, but am wondering what is the secret to having multiple sheets within the... -
Load ASP in Excel with Multiple Worksheets
I have the basics working as is described in KB199841. I currently have my ASP page loading into Excel by setting the ContentType of the page:... -
Need better solution to export from sql server to multiple worksheets in excel in vb.net app
I have a VB.NET Web application. I have to export data from SQL Server to excel. I have 3 Select statements and the results need to go in 3... -
Publishing multiple Excel pages on the Web (dynamically)
I am sure this is very possible, but I've already wasted a lot of time trying to find the feature. I have automated producing management reports... -
Anne #2
Multiple Excel Files
it's ok..i got it 2 work like i wanted. thanx anyway...
item>-----Original Message-----
>hie, in my web application, i have a dropdownlist, and a
>button. i want to be able to select from the list, and
>whatever item that i have selected, i want to use themy>value for manipulation. once i have selected from the
>list, the button is clicked and the application will
>display an excel file. for example, i chose number 8 inthis>dropdownlist, and the application will display the excel
>file with the number 8. i also need to use the item
>selected to search for my excel files. How can i code>function? i've tried coding it as below, but got an error
>when i tried to append the item selected to a string
>(strExcel). what can i do to make my program works as i
>want it to? anybody got an idea on how to solve this?
>thanx!
>
>Private Sub btnOK_Click(ByVal sender As System.Object,
>ByVal e As System.EventArgs) Handles btnOK.Click
> Dim WW As New ListItem()
> WW = wwList.SelectedItem()
>
> strMyPath = "C:\Inetpub\wwwroot\Final_MR"
>
> If fso.FolderExists(strMyPath) Then
> fso.GetFolder(strMyPath)
> For Each sFl In fso.GetFolder(strMyPath).Files
> If sFl.Name Like ".xls" Then
> strtmp = fso.GetFileName(sFl.Name)
> intlngth = Len(strtmp) - 5
> strName = Microsoft.VisualBasic.Left
>(strtmp, intlngth)
> strExcel = strName & WW & ".xls"
> End If
> Next
> Response.Redirect
>("C:\Inetpub\wwwroot\Final_MR\" & strExcel)
> End If
>End Sub
>
>.
>Anne Guest



Reply With Quote

