Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
if (saveFileDialog1.ShowDialog() == DialogResult.OK)
{
string Zieldatei = saveFileDialog1.FileName;
Excel.Application app = new Excel.ApplicationClass();
Excel.Workbook wb;
Excel.Worksheet ws;
wb = app.Workbooks.Add(Type.Missing);
ws = (Excel.Worksheet)wb.Worksheets.Add(Type.Missing, Type.Missing, Type.Missing, Type.Missing);
ws.Cells[1,1] = "Zeit";
ws.Cells[1,2] = "Winkel";
ws.Cells[1,3] = "YHacken";
ws.Cells[1,4] = "XLaufkatze";
ws.Cells[2,1] = "[s/10]";
ws.Cells[2,2] = "[°]";
ws.Cells[2,3] = "[cm]";
ws.Cells[2,4] = "[cm]";
OleDbConnection conn5 = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=Datenbank.mdb");
OleDbCommand cmd5 = new OleDbCommand();
cmd5.Connection = conn5;
cmd5.CommandText = "SELECT * FROM Kran";
conn5.Open();
int max = cmd5.ExecuteNonQuery();
conn5.Close();
for (int i=1; max<=100; i++)
{
// DB Anfarge
int x = i+3;
ws.Cells[x,1] = Convert.ToString(i);
ws.Cells[x,2] = Convert.ToString(Winkel);
ws.Cells[x,3] = Convert.ToString(YHacken);
ws.Cells[x,4] = Convert.ToString(XLaufkatze);
}
app.ActiveWorkbook.SaveCopyAs(@Zieldatei);
wb.Close(false, Type.Missing, Type.Missing);
app.Quit();
}