Visualizzazione dei risultati da 1 a 6 su 6

Discussione: ASP e excell

  1. #1

    ASP e excell

    Ciao a tutti,
    volevo sapere se è possibile creare tramite una pagina asp un file excell o word da allegare ad una e-mail inviata tramite un altro file asp.

    Spero di essermi spiegato bene!!!

    Fatemi sapere.
    Grazie mille!

  2. #2
    Utente di HTML.it L'avatar di heroes3
    Registrato dal
    Aug 2001
    Messaggi
    2,483
    si se cerchi in freeasp.html.it
    trovi tutto quello che ti serve e le spiegazioni necessarie


  3. #3
    Ho fatto una ricerca dentro freeasp.html ma non mi ha dato alcun risultato utile nè con excell ne con word(apparte password).
    Dove devo guardare?

  4. #4
    Utente di HTML.it L'avatar di heroes3
    Registrato dal
    Aug 2001
    Messaggi
    2,483
    negli articoli e negli scripts

  5. #5
    Utente di HTML.it L'avatar di willybit
    Registrato dal
    May 2001
    Messaggi
    4,367
    avendo excell installato nel server
    puoi creare e salvare su disco un file xls così
    codice:
    <% 
    Dim ExcelApp 
    Set ExcelApp = CreateObject("Excel.Application") 
    ExcelApp.Application.Visible = True 
    Set ExcelBook = ExcelApp.Workbooks.Add 
    
    ExcelBook.Worksheets(1).Cells(2, 2).Font.Name = "Verdana" 
    ExcelBook.Worksheets(1).Cells(2, 2).Font.Size = 10 
    ExcelBook.Worksheets(1).Cells(2, 2).Font.Italic = true 
    ExcelBook.Worksheets(1).Cells(2, 2).Value="Hello world" 
    ExcelBook.Worksheets(1).Cells(2, 2).HorizontalAlignment = 1 
    ExcelBook.Worksheets(1).Cells(2, 2).Font.Color = RGB(0,0,0) 
    
    ExcelBook.SaveAs "c:\yourfile.xls" 
    ExcelApp.Application.Quit 
    Set ExcelApp = Nothing 
    %>
    se invece vuoi fare una pagina asp che restituisce un file xls (senza avere excell installato)
    codice:
    <% 
        Dim FileName 
        FileName="test.xls" 
    
        response.buffer = true 
        response.ContentType = "application/vnd.ms-excel" 
        response.AddHeader "content-disposition", "inline; filename=" & FileName 
    
        response.write "<table border=1>" 
        response.write "<tr>" 
        for i = 1 to 15 step 3 
            response.write "<td>" 
            response.write i * i 
            response.write "</td>" 
        next 
    
        response.write "<td width=40>=SOMMA(A1:E1)</td>" 
        response.write "</tr>" 
        response.write "</table>" 
    
        response.flush 
        response.end 
    %>

  6. #6
    Grazie mille, provo e controllo subito!!

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.