Er is echter wel een klein probleem! Vermits de telenet server geen Microsoft platform is, kan er geen ActiveXObject aangemaakt worden. Dus dit voorbeeld is louter ter informatie.
Er wordt een excelsheet gecreeerd waarbij de eerste cel wordt opgevuld.
Je kan de plaats en naam van de excelsheet nog aanpassen. Druk daarna op de button!
Om het Excelbestand te controleren moet je wel eerst deze pagina sluiten.
function startExcel()
{
x = document.f1.xl.value
var ExcelSheet;
ExcelApp = new ActiveXObject("Excel.Application");
ExcelSheet = new ActiveXObject("Excel.Sheet");
// Make Excel visible through the Application object.
ExcelSheet.Application.Visible = true;
// Place some text in the first cell of the sheet.
ExcelSheet.ActiveSheet.Cells(1,1).Value = "Dit is de inhoud van kolom A, rij 1";
// Save the sheet.
ExcelSheet.SaveAs(x);
// Close Excel with the Quit method on the Application object.
ExcelSheet.Application.Quit();
}
Voor meer informatie zie : MSDN